Home
last modified time | relevance | path

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

/system/media/camera/src/
Dcamera_metadata.c190 size_t memory_needed = calculate_camera_metadata_size(entry_capacity, in allocate_camera_metadata() local
192 void *buffer = malloc(memory_needed); in allocate_camera_metadata()
193 return place_camera_metadata(buffer, memory_needed, in allocate_camera_metadata()
205 size_t memory_needed = calculate_camera_metadata_size(entry_capacity, in place_camera_metadata() local
207 if (memory_needed > dst_size) return NULL; in place_camera_metadata()
218 metadata->size = memory_needed; in place_camera_metadata()
232 size_t memory_needed = sizeof(camera_metadata_t); in calculate_camera_metadata_size() local
234 memory_needed = ALIGN_TO(memory_needed, ENTRY_ALIGNMENT); in calculate_camera_metadata_size()
235 memory_needed += sizeof(camera_metadata_buffer_entry_t[entry_count]); in calculate_camera_metadata_size()
237 memory_needed = ALIGN_TO(memory_needed, DATA_ALIGNMENT); in calculate_camera_metadata_size()
[all …]