Searched refs:ALIGN_TO (Results 1 – 1 of 1) sorted by relevance
/system/media/camera/src/ |
D | camera_metadata.c | 35 #define ALIGN_TO(val, alignment) \ macro 286 ALIGN_TO(sizeof(camera_metadata_t), ENTRY_ALIGNMENT); in place_camera_metadata() 292 metadata->data_start = ALIGN_TO(data_unaligned, DATA_ALIGNMENT); in place_camera_metadata() 306 memory_needed = ALIGN_TO(memory_needed, ENTRY_ALIGNMENT); in calculate_camera_metadata_size() 309 memory_needed = ALIGN_TO(memory_needed, DATA_ALIGNMENT); in calculate_camera_metadata_size() 312 memory_needed = ALIGN_TO(memory_needed, METADATA_PACKET_ALIGNMENT); in calculate_camera_metadata_size() 389 *data_size = data_bytes <= 4 ? 0 : ALIGN_TO(data_bytes, DATA_ALIGNMENT); in validate_and_calculate_camera_metadata_entry_data_size() 402 return data_bytes <= 4 ? 0 : ALIGN_TO(data_bytes, DATA_ALIGNMENT); in calculate_camera_metadata_entry_data_size() 413 uintptr_t aligned_ptr = ALIGN_TO(metadata, METADATA_PACKET_ALIGNMENT); in validate_camera_metadata_structure() 437 uintptr_t aligned_ptr_section = ALIGN_TO((uintptr_t) metadata + alignmentOffset, in validate_camera_metadata_structure() [all …]
|