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()
276 camera_metadata_t *metadata = (camera_metadata_t*)dst; in place_camera_metadata()
282 ALIGN_TO(sizeof(camera_metadata_t), ENTRY_ALIGNMENT); in place_camera_metadata()
294 void free_camera_metadata(camera_metadata_t *metadata) { in free_camera_metadata()
300 size_t memory_needed = sizeof(camera_metadata_t); in calculate_camera_metadata_size()
312 size_t get_camera_metadata_size(const camera_metadata_t *metadata) { in get_camera_metadata_size()
318 size_t get_camera_metadata_compact_size(const camera_metadata_t *metadata) { in get_camera_metadata_compact_size()
325 size_t get_camera_metadata_entry_count(const camera_metadata_t *metadata) { in get_camera_metadata_entry_count()
329 size_t get_camera_metadata_entry_capacity(const camera_metadata_t *metadata) { in get_camera_metadata_entry_capacity()
333 size_t get_camera_metadata_data_count(const camera_metadata_t *metadata) { in get_camera_metadata_data_count()
337 size_t get_camera_metadata_data_capacity(const camera_metadata_t *metadata) { in get_camera_metadata_data_capacity()
341 camera_metadata_t* copy_camera_metadata(void *dst, size_t dst_size, in copy_camera_metadata()
342 const camera_metadata_t *src) { in copy_camera_metadata()
348 camera_metadata_t *metadata = in copy_camera_metadata()
397 int validate_camera_metadata_structure(const camera_metadata_t *metadata, in validate_camera_metadata_structure()
574 int append_camera_metadata(camera_metadata_t *dst, in append_camera_metadata()
575 const camera_metadata_t *src) { in append_camera_metadata()
627 camera_metadata_t *clone_camera_metadata(const camera_metadata_t *src) { in clone_camera_metadata()
630 camera_metadata_t *clone = allocate_camera_metadata( in clone_camera_metadata()
644 static int add_camera_metadata_entry_raw(camera_metadata_t *dst, in add_camera_metadata_entry_raw()
681 int add_camera_metadata_entry(camera_metadata_t *dst, in add_camera_metadata_entry()
707 int sort_camera_metadata(camera_metadata_t *dst) { in sort_camera_metadata()
720 int get_camera_metadata_entry(camera_metadata_t *src, in get_camera_metadata_entry()
741 int get_camera_metadata_ro_entry(const camera_metadata_t *src, in get_camera_metadata_ro_entry()
744 return get_camera_metadata_entry((camera_metadata_t*)src, index, in get_camera_metadata_ro_entry()
748 int find_camera_metadata_entry(camera_metadata_t *src, in find_camera_metadata_entry()
781 int find_camera_metadata_ro_entry(const camera_metadata_t *src, in find_camera_metadata_ro_entry()
784 return find_camera_metadata_entry((camera_metadata_t*)src, tag, in find_camera_metadata_ro_entry()
789 int delete_camera_metadata_entry(camera_metadata_t *dst, in delete_camera_metadata_entry()
828 int update_camera_metadata_entry(camera_metadata_t *dst, in update_camera_metadata_entry()
978 const camera_metadata_t *meta) { in get_local_camera_metadata_section_name()
986 const camera_metadata_t *meta) { in get_local_camera_metadata_tag_name()
994 const camera_metadata_t *meta) { in get_local_camera_metadata_tag_type()
1022 void set_camera_metadata_vendor_id(camera_metadata_t *meta, in set_camera_metadata_vendor_id()
1031 const camera_metadata_t *meta) { in get_camera_metadata_vendor_id()
1045 void dump_camera_metadata(const camera_metadata_t *metadata, in dump_camera_metadata()
1051 void dump_indented_camera_metadata(const camera_metadata_t *metadata, in dump_indented_camera_metadata()