Home
last modified time | relevance | path

Searched refs:memory_needed (Results 1 – 1 of 1) sorted by relevance

/system/media/camera/src/
Dcamera_metadata.c252 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()
[all …]