Lines Matching refs:data_bytes

386     size_t data_bytes = data_count * camera_metadata_type_size[type];  in validate_and_calculate_camera_metadata_entry_data_size()  local
389 *data_size = data_bytes <= 4 ? 0 : ALIGN_TO(data_bytes, DATA_ALIGNMENT); in validate_and_calculate_camera_metadata_entry_data_size()
399 size_t data_bytes = data_count * in calculate_camera_metadata_entry_data_size() local
402 return data_bytes <= 4 ? 0 : ALIGN_TO(data_bytes, DATA_ALIGNMENT); in calculate_camera_metadata_entry_data_size()
682 size_t data_bytes = in add_camera_metadata_entry_raw() local
684 if (data_bytes + dst->data_count > dst->data_capacity) return ERROR; in add_camera_metadata_entry_raw()
694 if (data_bytes == 0) { in add_camera_metadata_entry_raw()
701 dst->data_count += data_bytes; in add_camera_metadata_entry_raw()
823 size_t data_bytes = calculate_camera_metadata_entry_data_size(entry->type, in delete_camera_metadata_entry() local
826 if (data_bytes > 0) { in delete_camera_metadata_entry()
829 uint8_t *end = start + data_bytes; in delete_camera_metadata_entry()
830 size_t length = dst->data_count - entry->data.offset - data_bytes; in delete_camera_metadata_entry()
840 e->data.offset -= data_bytes; in delete_camera_metadata_entry()
844 dst->data_count -= data_bytes; in delete_camera_metadata_entry()
866 size_t data_bytes = in update_camera_metadata_entry() local
875 if (data_bytes != entry_bytes) { in update_camera_metadata_entry()
877 if (dst->data_capacity < dst->data_count + data_bytes - entry_bytes) { in update_camera_metadata_entry()
902 if (data_bytes != 0) { in update_camera_metadata_entry()
907 dst->data_count += data_bytes; in update_camera_metadata_entry()
909 } else if (data_bytes != 0) { in update_camera_metadata_entry()
914 if (data_bytes == 0) { in update_camera_metadata_entry()