Lines Matching full:data_count
86 * | (data_capacity-data_count) bytes |
101 size_t data_count;
216 metadata->data_count = 0;
231 size_t data_count) {
238 memory_needed += sizeof(uint8_t[data_count]);
252 metadata->data_count);
264 return metadata->data_count;
279 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count);
283 metadata->data_count = src->data_count;
288 sizeof(uint8_t[metadata->data_count]));
449 if (dst->data_capacity < src->data_count + dst->data_count) return ERROR;
453 memcpy(get_data(dst) + dst->data_count, get_data(src),
454 sizeof(uint8_t[src->data_count]));
455 if (dst->data_count != 0) {
460 entry->data.offset += dst->data_count;
474 dst->data_count += src->data_count;
496 size_t data_count) {
498 size_t data_bytes = data_count *
507 size_t data_count) {
514 calculate_camera_metadata_entry_data_size(type, data_count);
515 if (data_bytes + dst->data_count > dst->data_capacity) return ERROR;
518 data_count * camera_metadata_type_size[type];
523 entry->count = data_count;
529 entry->data.offset = dst->data_count;
532 dst->data_count += data_bytes;
542 size_t data_count) {
554 data_count);
652 size_t length = dst->data_count - entry->data.offset - data_bytes;
666 dst->data_count -= data_bytes;
680 size_t data_count,
689 data_count);
691 data_count * camera_metadata_type_size[entry->type];
698 if (dst->data_capacity < dst->data_count + data_bytes - entry_bytes) {
706 size_t length = dst->data_count - entry->data.offset - entry_bytes;
708 dst->data_count -= entry_bytes;
725 entry->data.offset = dst->data_count;
728 dst->data_count += data_bytes;
741 entry->count = data_count;
838 metadata->data_count, metadata->data_capacity);
875 if (entry->data.offset >= metadata->data_count) {
879 metadata->data_count);