Lines Matching refs:entry_count
98 metadata_size_t entry_count; member
150 _Static_assert(offsetof(camera_metadata_t, entry_count) == 12,
283 metadata->entry_count = 0; in place_camera_metadata()
302 size_t calculate_camera_metadata_size(size_t entry_count, in calculate_camera_metadata_size() argument
307 memory_needed += sizeof(camera_metadata_buffer_entry_t[entry_count]); in calculate_camera_metadata_size()
325 return calculate_camera_metadata_size(metadata->entry_count, in get_camera_metadata_compact_size()
330 return metadata->entry_count; in get_camera_metadata_entry_count()
357 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count); in copy_camera_metadata()
360 metadata->entry_count = src->entry_count; in copy_camera_metadata()
365 sizeof(camera_metadata_buffer_entry_t[metadata->entry_count])); in copy_camera_metadata()
475 if (header->entry_count > header->entry_capacity) { in validate_camera_metadata_structure()
478 __FUNCTION__, header->entry_count, header->entry_capacity); in validate_camera_metadata_structure()
517 const metadata_size_t entry_count = header->entry_count; in validate_camera_metadata_structure() local
520 for (size_t i = 0; i < entry_count; ++i) { in validate_camera_metadata_structure()
607 if (src->entry_count + dst->entry_count < src->entry_count) return ERROR; in append_camera_metadata()
610 if (dst->entry_capacity < src->entry_count + dst->entry_count) return ERROR; in append_camera_metadata()
622 memcpy(get_entries(dst) + dst->entry_count, get_entries(src), in append_camera_metadata()
623 sizeof(camera_metadata_buffer_entry_t[src->entry_count])); in append_camera_metadata()
627 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count; in append_camera_metadata()
628 for (size_t i = 0; i < src->entry_count; i++, entry++) { in append_camera_metadata()
635 if (dst->entry_count == 0) { in append_camera_metadata()
638 } else if (src->entry_count != 0) { in append_camera_metadata()
644 dst->entry_count += src->entry_count; in append_camera_metadata()
679 if (dst->entry_count == dst->entry_capacity) return ERROR; in add_camera_metadata_entry_raw()
688 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count; in add_camera_metadata_entry_raw()
703 dst->entry_count++; in add_camera_metadata_entry_raw()
739 qsort(get_entries(dst), dst->entry_count, in sort_camera_metadata()
752 if (index >= src->entry_count) return ERROR; in get_camera_metadata_entry()
789 src->entry_count, in find_camera_metadata_entry()
797 for (index = 0; index < src->entry_count; index++, search_entry++) { in find_camera_metadata_entry()
802 if (index == src->entry_count) return NOT_FOUND; in find_camera_metadata_entry()
820 if (index >= dst->entry_count) return ERROR; in delete_camera_metadata_entry()
836 for (i = 0; i < dst->entry_count; i++) { in delete_camera_metadata_entry()
849 (dst->entry_count - index - 1) ); in delete_camera_metadata_entry()
850 dst->entry_count -= 1; in delete_camera_metadata_entry()
862 if (index >= dst->entry_count) return ERROR; in update_camera_metadata_entry()
892 for (i = 0; i < dst->entry_count; i++) { in update_camera_metadata_entry()
1101 metadata->entry_count, metadata->entry_capacity, in dump_indented_camera_metadata()
1107 for (i=0; i < metadata->entry_count; i++, entry++) { in dump_indented_camera_metadata()