Lines Matching defs:data_count
82 * | (data_capacity-data_count) bytes |
98 metadata_size_t data_count;
224 metadata->data_count = 0;
239 size_t data_count) {
246 memory_needed += sizeof(uint8_t[data_count]);
260 metadata->data_count);
272 return metadata->data_count;
287 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count);
291 metadata->data_count = src->data_count;
296 sizeof(uint8_t[metadata->data_count]));
463 if (dst->data_capacity < src->data_count + dst->data_count) return ERROR;
467 memcpy(get_data(dst) + dst->data_count, get_data(src),
468 sizeof(uint8_t[src->data_count]));
469 if (dst->data_count != 0) {
474 entry->data.offset += dst->data_count;
488 dst->data_count += src->data_count;
512 size_t data_count) {
514 size_t data_bytes = data_count *
523 size_t data_count) {
527 if (data_count && data == NULL) return ERROR;
530 calculate_camera_metadata_entry_data_size(type, data_count);
531 if (data_bytes + dst->data_count > dst->data_capacity) return ERROR;
534 data_count * camera_metadata_type_size[type];
539 entry->count = data_count;
545 entry->data.offset = dst->data_count;
548 dst->data_count += data_bytes;
559 size_t data_count) {
571 data_count);
677 size_t length = dst->data_count - entry->data.offset - data_bytes;
691 dst->data_count -= data_bytes;
706 size_t data_count,
715 data_count);
717 data_count * camera_metadata_type_size[entry->type];
724 if (dst->data_capacity < dst->data_count + data_bytes - entry_bytes) {
732 size_t length = dst->data_count - entry->data.offset - entry_bytes;
734 dst->data_count -= entry_bytes;
751 entry->data.offset = dst->data_count;
754 dst->data_count += data_bytes;
767 entry->count = data_count;
861 metadata->data_count, metadata->data_capacity);
898 if (entry->data.offset >= metadata->data_count) {
902 metadata->data_count);