Lines Matching refs:memory_needed
252 size_t memory_needed = calculate_camera_metadata_size(entry_capacity, in allocate_camera_metadata() local
254 void *buffer = calloc(1, memory_needed); in allocate_camera_metadata()
256 buffer, memory_needed, entry_capacity, data_capacity); in allocate_camera_metadata()
272 size_t memory_needed = calculate_camera_metadata_size(entry_capacity, in place_camera_metadata() local
274 if (memory_needed > dst_size) { in place_camera_metadata()
276 memory_needed, dst_size); in place_camera_metadata()
289 metadata->size = memory_needed; in place_camera_metadata()
304 size_t memory_needed = sizeof(camera_metadata_t); in calculate_camera_metadata_size() local
306 memory_needed = ALIGN_TO(memory_needed, ENTRY_ALIGNMENT); in calculate_camera_metadata_size()
307 memory_needed += sizeof(camera_metadata_buffer_entry_t[entry_count]); in calculate_camera_metadata_size()
309 memory_needed = ALIGN_TO(memory_needed, DATA_ALIGNMENT); in calculate_camera_metadata_size()
310 memory_needed += sizeof(uint8_t[data_count]); in calculate_camera_metadata_size()
312 memory_needed = ALIGN_TO(memory_needed, METADATA_PACKET_ALIGNMENT); in calculate_camera_metadata_size()
313 return memory_needed; in calculate_camera_metadata_size()
347 size_t memory_needed = get_camera_metadata_compact_size(src); in copy_camera_metadata() local
350 if (dst_size < memory_needed) { in copy_camera_metadata()
352 memory_needed, dst_size); in copy_camera_metadata()