Lines Matching refs:data_bytes

372     size_t data_bytes = data_count * camera_metadata_type_size[type];  in validate_and_calculate_camera_metadata_entry_data_size()  local
375 *data_size = data_bytes <= 4 ? 0 : ALIGN_TO(data_bytes, DATA_ALIGNMENT); in validate_and_calculate_camera_metadata_entry_data_size()
385 size_t data_bytes = data_count * in calculate_camera_metadata_entry_data_size() local
388 return data_bytes <= 4 ? 0 : ALIGN_TO(data_bytes, DATA_ALIGNMENT); in calculate_camera_metadata_entry_data_size()
648 size_t data_bytes = in add_camera_metadata_entry_raw() local
650 if (data_bytes + dst->data_count > dst->data_capacity) return ERROR; in add_camera_metadata_entry_raw()
660 if (data_bytes == 0) { in add_camera_metadata_entry_raw()
667 dst->data_count += data_bytes; in add_camera_metadata_entry_raw()
789 size_t data_bytes = calculate_camera_metadata_entry_data_size(entry->type, in delete_camera_metadata_entry() local
792 if (data_bytes > 0) { in delete_camera_metadata_entry()
795 uint8_t *end = start + data_bytes; in delete_camera_metadata_entry()
796 size_t length = dst->data_count - entry->data.offset - data_bytes; in delete_camera_metadata_entry()
806 e->data.offset -= data_bytes; in delete_camera_metadata_entry()
810 dst->data_count -= data_bytes; in delete_camera_metadata_entry()
832 size_t data_bytes = in update_camera_metadata_entry() local
841 if (data_bytes != entry_bytes) { in update_camera_metadata_entry()
843 if (dst->data_capacity < dst->data_count + data_bytes - entry_bytes) { in update_camera_metadata_entry()
868 if (data_bytes != 0) { in update_camera_metadata_entry()
873 dst->data_count += data_bytes; in update_camera_metadata_entry()
875 } else if (data_bytes != 0) { in update_camera_metadata_entry()
880 if (data_bytes == 0) { in update_camera_metadata_entry()