Lines Matching refs:data_count
101 metadata_size_t data_count; member
156 _Static_assert(offsetof(camera_metadata_t, data_count) == 24,
287 metadata->data_count = 0; in place_camera_metadata()
303 size_t data_count) { in calculate_camera_metadata_size() argument
310 memory_needed += sizeof(uint8_t[data_count]); in calculate_camera_metadata_size()
326 metadata->data_count); in get_camera_metadata_compact_size()
338 return metadata->data_count; in get_camera_metadata_data_count()
357 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count); in copy_camera_metadata()
361 metadata->data_count = src->data_count; in copy_camera_metadata()
367 sizeof(uint8_t[metadata->data_count])); in copy_camera_metadata()
376 size_t data_count) { in validate_and_calculate_camera_metadata_entry_data_size() argument
380 if (data_count != 0 && in validate_and_calculate_camera_metadata_entry_data_size()
381 camera_metadata_type_size[type] > (SIZE_MAX - DATA_ALIGNMENT + 1) / data_count) { in validate_and_calculate_camera_metadata_entry_data_size()
386 size_t data_bytes = data_count * camera_metadata_type_size[type]; in validate_and_calculate_camera_metadata_entry_data_size()
396 size_t data_count) { in calculate_camera_metadata_entry_data_size() argument
399 size_t data_bytes = data_count * in calculate_camera_metadata_entry_data_size()
482 if (header->data_count > header->data_capacity) { in validate_camera_metadata_structure()
485 __FUNCTION__, header->data_count, header->data_capacity); in validate_camera_metadata_structure()
608 if (src->data_count + dst->data_count < src->data_count) return ERROR; in append_camera_metadata()
611 if (dst->data_capacity < src->data_count + dst->data_count) return ERROR; in append_camera_metadata()
624 memcpy(get_data(dst) + dst->data_count, get_data(src), in append_camera_metadata()
625 sizeof(uint8_t[src->data_count])); in append_camera_metadata()
626 if (dst->data_count != 0) { in append_camera_metadata()
631 entry->data.offset += dst->data_count; in append_camera_metadata()
645 dst->data_count += src->data_count; in append_camera_metadata()
676 size_t data_count) { in add_camera_metadata_entry_raw() argument
680 if (data_count && data == NULL) return ERROR; in add_camera_metadata_entry_raw()
683 calculate_camera_metadata_entry_data_size(type, data_count); in add_camera_metadata_entry_raw()
684 if (data_bytes + dst->data_count > dst->data_capacity) return ERROR; in add_camera_metadata_entry_raw()
687 data_count * camera_metadata_type_size[type]; in add_camera_metadata_entry_raw()
692 entry->count = data_count; in add_camera_metadata_entry_raw()
698 entry->data.offset = dst->data_count; in add_camera_metadata_entry_raw()
701 dst->data_count += data_bytes; in add_camera_metadata_entry_raw()
712 size_t data_count) { in add_camera_metadata_entry() argument
724 data_count); in add_camera_metadata_entry()
830 size_t length = dst->data_count - entry->data.offset - data_bytes; in delete_camera_metadata_entry()
844 dst->data_count -= data_bytes; in delete_camera_metadata_entry()
859 size_t data_count, in update_camera_metadata_entry() argument
868 data_count); in update_camera_metadata_entry()
870 data_count * camera_metadata_type_size[entry->type]; in update_camera_metadata_entry()
877 if (dst->data_capacity < dst->data_count + data_bytes - entry_bytes) { in update_camera_metadata_entry()
885 size_t length = dst->data_count - entry->data.offset - entry_bytes; in update_camera_metadata_entry()
887 dst->data_count -= entry_bytes; in update_camera_metadata_entry()
904 entry->data.offset = dst->data_count; in update_camera_metadata_entry()
907 dst->data_count += data_bytes; in update_camera_metadata_entry()
920 entry->count = data_count; in update_camera_metadata_entry()
1102 metadata->data_count, metadata->data_capacity); in dump_indented_camera_metadata()
1139 if (entry->data.offset >= metadata->data_count) { in dump_indented_camera_metadata()
1143 metadata->data_count); in dump_indented_camera_metadata()