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

/system/media/camera/src/
H A Dcamera_metadata.c128 size_t memory_needed = calculate_camera_metadata_size(entry_capacity,
130 void *buffer = malloc(memory_needed);
131 return place_camera_metadata(buffer, memory_needed,
143 size_t memory_needed = calculate_camera_metadata_size(entry_capacity,
145 if (memory_needed > dst_size) return NULL;
155 metadata->size = memory_needed;
172 size_t memory_needed = sizeof(camera_metadata_t); local
173 memory_needed += sizeof(camera_metadata_buffer_entry_t[entry_count]);
174 memory_needed += sizeof(uint8_t[data_count]);
175 return memory_needed;
213 size_t memory_needed = get_camera_metadata_compact_size(src); local
[all...]

Completed in 44 milliseconds