Home
last modified time | relevance | path

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

/system/media/camera/src/
Dcamera_metadata.c33 #define ALIGN_TO(val, alignment) \ macro
224 ALIGN_TO(sizeof(camera_metadata_t), ENTRY_ALIGNMENT); in place_camera_metadata()
230 metadata->data_start = ALIGN_TO(data_unaligned, DATA_ALIGNMENT); in place_camera_metadata()
243 memory_needed = ALIGN_TO(memory_needed, ENTRY_ALIGNMENT); in calculate_camera_metadata_size()
246 memory_needed = ALIGN_TO(memory_needed, DATA_ALIGNMENT); in calculate_camera_metadata_size()
319 *data_size = data_bytes <= 4 ? 0 : ALIGN_TO(data_bytes, DATA_ALIGNMENT); in validate_and_calculate_camera_metadata_entry_data_size()
332 return data_bytes <= 4 ? 0 : ALIGN_TO(data_bytes, DATA_ALIGNMENT); in calculate_camera_metadata_entry_data_size()
364 uintptr_t aligned_ptr = ALIGN_TO(metadata, alignments[i].alignment); in validate_camera_metadata_structure()
433 if ((uintptr_t)&entries[i] != ALIGN_TO(&entries[i], ENTRY_ALIGNMENT)) { in validate_camera_metadata_structure()
471 if ((uintptr_t)data != ALIGN_TO(data, DATA_ALIGNMENT)) { in validate_camera_metadata_structure()