Lines Matching refs:entry_count
74 * | camera_metadata_buffer_entry_t #entry_count-1 |
77 * | (entry_capacity-entry_count) entries |
96 metadata_size_t entry_count;
221 metadata->entry_count = 0;
239 size_t calculate_camera_metadata_size(size_t entry_count,
244 memory_needed += sizeof(camera_metadata_buffer_entry_t[entry_count]);
260 return calculate_camera_metadata_size(metadata->entry_count,
265 return metadata->entry_count;
288 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count);
291 metadata->entry_count = src->entry_count;
295 sizeof(camera_metadata_buffer_entry_t[metadata->entry_count]));
386 if (metadata->entry_count > metadata->entry_capacity) {
389 __FUNCTION__, metadata->entry_count, metadata->entry_capacity);
428 const metadata_size_t entry_count = metadata->entry_count;
431 for (size_t i = 0; i < entry_count; ++i) {
508 if (src->entry_count + dst->entry_count < src->entry_count) return ERROR;
511 if (dst->entry_capacity < src->entry_count + dst->entry_count) return ERROR;
514 memcpy(get_entries(dst) + dst->entry_count, get_entries(src),
515 sizeof(camera_metadata_buffer_entry_t[src->entry_count]));
519 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count;
520 for (size_t i = 0; i < src->entry_count; i++, entry++) {
527 if (dst->entry_count == 0) {
530 } else if (src->entry_count != 0) {
536 dst->entry_count += src->entry_count;
567 if (dst->entry_count == dst->entry_capacity) return ERROR;
576 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count;
591 dst->entry_count++;
627 qsort(get_entries(dst), dst->entry_count,
640 if (index >= src->entry_count) return ERROR;
677 src->entry_count,
685 for (index = 0; index < src->entry_count; index++, search_entry++) {
690 if (index == src->entry_count) return NOT_FOUND;
708 if (index >= dst->entry_count) return ERROR;
724 for (i = 0; i < dst->entry_count; i++) {
737 (dst->entry_count - index - 1) );
738 dst->entry_count -= 1;
750 if (index >= dst->entry_count) return ERROR;
780 for (i = 0; i < dst->entry_count; i++) {
901 metadata->entry_count, metadata->entry_capacity,
907 for (i=0; i < metadata->entry_count; i++, entry++) {