Searched refs:memory_needed (Results 1 – 1 of 1) sorted by relevance
190 size_t memory_needed = calculate_camera_metadata_size(entry_capacity, in allocate_camera_metadata() local192 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() local207 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() local234 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 …]