Lines Matching defs:alignment
28 #define ALIGN_TO(val, alignment) \
29 (((uintptr_t)(val) + ((alignment) - 1)) & ~((alignment) - 1))
458 const size_t alignment = get_camera_metadata_alignment();
466 if (blobSize <= alignment) {
467 ALOGE("%s: metadata blob is malformed, blobSize(%zu) should be larger than alignment(%zu)",
468 __FUNCTION__, blobSize, alignment);
472 const size_t metadataSize = blobSize - alignment;
496 if (offset >= alignment) {
497 ALOGE("%s: metadata offset(%zu) should be less than alignment(%zu)",
498 __FUNCTION__, blobSize, alignment);
506 ALOGV("%s: alignment is: %zu, metadata start: %p, offset: %zu",
507 __FUNCTION__, alignment, tmp, offset);
559 * Always make the blob size sufficiently larger, as we need put alignment
560 * padding and metadata into the blob. Since we don't know the alignment
564 const size_t alignment = get_camera_metadata_alignment();
565 const size_t blobSize = metadataSize + alignment;
576 * size, which is equal to metadataSize + alignment.
591 * | (size = alignment - offset) |
601 const uintptr_t metadataStart = ALIGN_TO(blob.data(), alignment);
603 ALOGV("%s: alignment is: %zu, metadata start: %p, offset: %zu",
604 __FUNCTION__, alignment,