Lines Matching refs:entry_count
77 * | camera_metadata_buffer_entry_t #entry_count-1 |
80 * | (entry_capacity-entry_count) entries |
98 size_t entry_count;
212 metadata->entry_count = 0;
230 size_t calculate_camera_metadata_size(size_t entry_count,
235 memory_needed += sizeof(camera_metadata_buffer_entry_t[entry_count]);
251 return calculate_camera_metadata_size(metadata->entry_count,
256 return metadata->entry_count;
279 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count);
282 metadata->entry_count = src->entry_count;
286 sizeof(camera_metadata_buffer_entry_t[metadata->entry_count]));
344 if (metadata->entry_count > metadata->entry_capacity) {
346 __FUNCTION__, metadata->entry_count, metadata->entry_capacity);
373 size_t entry_count = metadata->entry_count;
376 for (size_t i = 0; i < entry_count; ++i) {
448 if (dst->entry_capacity < src->entry_count + dst->entry_count) return ERROR;
451 memcpy(get_entries(dst) + dst->entry_count, get_entries(src),
452 sizeof(camera_metadata_buffer_entry_t[src->entry_count]));
456 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count;
457 for (size_t i = 0; i < src->entry_count; i++, entry++) {
464 if (dst->entry_count == 0) {
467 } else if (src->entry_count != 0) {
473 dst->entry_count += src->entry_count;
510 if (dst->entry_count == dst->entry_capacity) return ERROR;
519 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count;
534 dst->entry_count++;
569 qsort(get_entries(dst), dst->entry_count,
581 if (index >= src->entry_count) return ERROR;
611 src->entry_count,
619 for (index = 0; index < src->entry_count; index++, search_entry++) {
624 if (index == src->entry_count) return NOT_FOUND;
642 if (index >= dst->entry_count) return ERROR;
658 for (i = 0; i < dst->entry_count; i++) {
671 (dst->entry_count - index - 1) );
672 dst->entry_count -= 1;
683 if (index >= dst->entry_count) return ERROR;
713 for (i = 0; i < dst->entry_count; i++) {
837 metadata->entry_count, metadata->entry_capacity,
843 for (i=0; i < metadata->entry_count; i++, entry++) {