Lines Matching refs:data_bytes
514 size_t data_bytes = data_count * in calculate_camera_metadata_entry_data_size() local
516 return data_bytes <= 4 ? 0 : ALIGN_TO(data_bytes, DATA_ALIGNMENT); in calculate_camera_metadata_entry_data_size()
529 size_t data_bytes = in add_camera_metadata_entry_raw() local
531 if (data_bytes + dst->data_count > dst->data_capacity) return ERROR; in add_camera_metadata_entry_raw()
541 if (data_bytes == 0) { in add_camera_metadata_entry_raw()
548 dst->data_count += data_bytes; in add_camera_metadata_entry_raw()
670 size_t data_bytes = calculate_camera_metadata_entry_data_size(entry->type, in delete_camera_metadata_entry() local
673 if (data_bytes > 0) { in delete_camera_metadata_entry()
676 uint8_t *end = start + data_bytes; in delete_camera_metadata_entry()
677 size_t length = dst->data_count - entry->data.offset - data_bytes; in delete_camera_metadata_entry()
687 e->data.offset -= data_bytes; in delete_camera_metadata_entry()
691 dst->data_count -= data_bytes; in delete_camera_metadata_entry()
713 size_t data_bytes = in update_camera_metadata_entry() local
722 if (data_bytes != entry_bytes) { in update_camera_metadata_entry()
724 if (dst->data_capacity < dst->data_count + data_bytes - entry_bytes) { in update_camera_metadata_entry()
749 if (data_bytes != 0) { in update_camera_metadata_entry()
754 dst->data_count += data_bytes; in update_camera_metadata_entry()
756 } else if (data_bytes != 0) { in update_camera_metadata_entry()
761 if (data_bytes == 0) { in update_camera_metadata_entry()