Lines Matching refs:camera_metadata_t

144 _Static_assert(offsetof(camera_metadata_t, size) == 0,
146 _Static_assert(offsetof(camera_metadata_t, version) == 4,
148 _Static_assert(offsetof(camera_metadata_t, flags) == 8,
150 _Static_assert(offsetof(camera_metadata_t, entry_count) == 12,
152 _Static_assert(offsetof(camera_metadata_t, entry_capacity) == 16,
154 _Static_assert(offsetof(camera_metadata_t, entries_start) == 20,
156 _Static_assert(offsetof(camera_metadata_t, data_count) == 24,
158 _Static_assert(offsetof(camera_metadata_t, data_capacity) == 28,
160 _Static_assert(offsetof(camera_metadata_t, data_start) == 32,
162 _Static_assert(offsetof(camera_metadata_t, vendor_id) == 40,
164 _Static_assert(sizeof(camera_metadata_t) == 48,
210 const camera_metadata_t *metadata) { in get_entries()
215 static uint8_t *get_data(const camera_metadata_t *metadata) { in get_data()
223 camera_metadata_t *allocate_copy_camera_metadata_checked( in allocate_copy_camera_metadata_checked()
224 const camera_metadata_t *src, in allocate_copy_camera_metadata_checked()
231 if (src_size < sizeof(camera_metadata_t)) { in allocate_copy_camera_metadata_checked()
240 camera_metadata_t *metadata = (camera_metadata_t*) buffer; in allocate_copy_camera_metadata_checked()
249 camera_metadata_t *allocate_camera_metadata(size_t entry_capacity, in allocate_camera_metadata()
255 camera_metadata_t *metadata = place_camera_metadata( in allocate_camera_metadata()
266 camera_metadata_t *place_camera_metadata(void *dst, in place_camera_metadata()
280 camera_metadata_t *metadata = (camera_metadata_t*)dst; in place_camera_metadata()
286 ALIGN_TO(sizeof(camera_metadata_t), ENTRY_ALIGNMENT); in place_camera_metadata()
298 void free_camera_metadata(camera_metadata_t *metadata) { in free_camera_metadata()
304 size_t memory_needed = sizeof(camera_metadata_t); in calculate_camera_metadata_size()
316 size_t get_camera_metadata_size(const camera_metadata_t *metadata) { in get_camera_metadata_size()
322 size_t get_camera_metadata_compact_size(const camera_metadata_t *metadata) { in get_camera_metadata_compact_size()
329 size_t get_camera_metadata_entry_count(const camera_metadata_t *metadata) { in get_camera_metadata_entry_count()
333 size_t get_camera_metadata_entry_capacity(const camera_metadata_t *metadata) { in get_camera_metadata_entry_capacity()
337 size_t get_camera_metadata_data_count(const camera_metadata_t *metadata) { in get_camera_metadata_data_count()
341 size_t get_camera_metadata_data_capacity(const camera_metadata_t *metadata) { in get_camera_metadata_data_capacity()
345 camera_metadata_t* copy_camera_metadata(void *dst, size_t dst_size, in copy_camera_metadata()
346 const camera_metadata_t *src) { in copy_camera_metadata()
356 camera_metadata_t *metadata = in copy_camera_metadata()
405 int validate_camera_metadata_structure(const camera_metadata_t *metadata, in validate_camera_metadata_structure()
453 if (expected_size != NULL && sizeof(camera_metadata_t) > *expected_size) { in validate_camera_metadata_structure()
455 __FUNCTION__, sizeof(camera_metadata_t), *expected_size); in validate_camera_metadata_structure()
460 camera_metadata_t headerCopy; in validate_camera_metadata_structure()
461 const camera_metadata_t *header; in validate_camera_metadata_structure()
463 memcpy(&headerCopy, metadata, sizeof(camera_metadata_t)); in validate_camera_metadata_structure()
602 int append_camera_metadata(camera_metadata_t *dst, in append_camera_metadata()
603 const camera_metadata_t *src) { in append_camera_metadata()
655 camera_metadata_t *clone_camera_metadata(const camera_metadata_t *src) { in clone_camera_metadata()
658 camera_metadata_t *clone = allocate_camera_metadata( in clone_camera_metadata()
672 static int add_camera_metadata_entry_raw(camera_metadata_t *dst, in add_camera_metadata_entry_raw()
709 int add_camera_metadata_entry(camera_metadata_t *dst, in add_camera_metadata_entry()
735 int sort_camera_metadata(camera_metadata_t *dst) { in sort_camera_metadata()
748 int get_camera_metadata_entry(camera_metadata_t *src, in get_camera_metadata_entry()
769 int get_camera_metadata_ro_entry(const camera_metadata_t *src, in get_camera_metadata_ro_entry()
772 return get_camera_metadata_entry((camera_metadata_t*)src, index, in get_camera_metadata_ro_entry()
776 int find_camera_metadata_entry(camera_metadata_t *src, in find_camera_metadata_entry()
809 int find_camera_metadata_ro_entry(const camera_metadata_t *src, in find_camera_metadata_ro_entry()
812 return find_camera_metadata_entry((camera_metadata_t*)src, tag, in find_camera_metadata_ro_entry()
817 int delete_camera_metadata_entry(camera_metadata_t *dst, in delete_camera_metadata_entry()
856 int update_camera_metadata_entry(camera_metadata_t *dst, in update_camera_metadata_entry()
1006 const camera_metadata_t *meta) { in get_local_camera_metadata_section_name()
1014 const camera_metadata_t *meta) { in get_local_camera_metadata_tag_name()
1022 const camera_metadata_t *meta) { in get_local_camera_metadata_tag_type()
1059 void set_camera_metadata_vendor_id(camera_metadata_t *meta, in set_camera_metadata_vendor_id()
1068 const camera_metadata_t *meta) { in get_camera_metadata_vendor_id()
1082 void dump_camera_metadata(const camera_metadata_t *metadata, in dump_camera_metadata()
1088 void dump_indented_camera_metadata(const camera_metadata_t *metadata, in dump_indented_camera_metadata()