Home
last modified time | relevance | path

Searched refs:ALIGN (Results 1 – 25 of 122) sorted by relevance

12345

/hardware/qcom/display/msm8960/libgralloc/
Dalloc_controller.cpp107 int stride = ALIGN(width, 32); in getStride()
135 stride = ALIGN(width, 32); in getStride()
138 stride = ALIGN(width, 128); in getStride()
148 stride = ALIGN(width, 16); in getStride()
262 alignedh = ALIGN(height, 32); in getBufferSizeAndDimensions()
279 size = ALIGN(alignedw*alignedh, 4096); in getBufferSizeAndDimensions()
280 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getBufferSizeAndDimensions()
286 alignedw = ALIGN(alignedw, 128); in getBufferSizeAndDimensions()
287 size = ALIGN( alignedw * alignedh, 8192); in getBufferSizeAndDimensions()
288 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getBufferSizeAndDimensions()
[all …]
Dmapper.cpp259 ystride = ALIGN(hnd->width, 16); in gralloc_lock_ycbcr()
270 ystride = ALIGN(hnd->width, 16); in gralloc_lock_ycbcr()
281 ystride = ALIGN(hnd->width, 16); in gralloc_lock_ycbcr()
282 cstride = ALIGN(ystride / 2, 16); in gralloc_lock_ycbcr()
/hardware/qcom/media/msm8974/libc2dcolorconvert/
DC2DColorConverter.cpp43 #define ALIGN( num, to ) (((num) + (to-1)) & (~(to-1))) macro
394 return ALIGN(width, ALIGN32) * 2; // RGB565 has width as twice in calcStride()
399 return ALIGN(width, ALIGN32) * 4; in calcStride()
401 return ALIGN(width, ALIGN128); in calcStride()
403 return ALIGN(width, ALIGN16); in calcStride()
405 return ALIGN(width, ALIGN16); in calcStride()
407 return ALIGN(width, ALIGN128); in calcStride()
411 return ALIGN(width, ALIGN16); in calcStride()
421 return (ALIGN(width, ALIGN16) * height); in calcYSize()
425 return ALIGN(width, ALIGN16) * height; in calcYSize()
[all …]
/hardware/qcom/media/msm8996/libc2dcolorconvert/
DC2DColorConverter.cpp43 #define ALIGN( num, to ) (((num) + (to-1)) & (~(to-1))) macro
427 return ALIGN(width, ALIGN32) * 2; // RGB565 has width as twice in calcStride()
432 return ALIGN(width, ALIGN32) * 4; in calcStride()
434 return ALIGN(width, ALIGN128); in calcStride()
436 return ALIGN(width, ALIGN16); in calcStride()
438 return ALIGN(width, ALIGN16); in calcStride()
440 return ALIGN(width, ALIGN128); in calcStride()
442 return ALIGN(width, ALIGN16); in calcStride()
444 return ALIGN(width, ALIGN16); in calcStride()
456 return (ALIGN(width, ALIGN16) * height); in calcYSize()
[all …]
/hardware/qcom/display/msm8084/libgralloc/
Dalloc_controller.cpp138 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
139 aligned_h = ALIGN(height, 32); in getAlignedWidthAndHeight()
188 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
191 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
194 aligned_w = ALIGN(width * 10 /8, 16); in getAlignedWidthAndHeight()
197 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
205 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
216 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight()
217 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
412 size = ALIGN(alignedw * alignedh, 4096); in getSize()
[all …]
/hardware/qcom/display/msm8909/libgralloc/
Dalloc_controller.cpp144 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
145 aligned_h = ALIGN(height, 32); in getAlignedWidthAndHeight()
198 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
201 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
204 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
211 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
221 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight()
222 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
430 size = ALIGN(alignedw*alignedh, 4096); in getSize()
431 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getSize()
[all …]
/hardware/qcom/display/msm8226/libgralloc/
Dalloc_controller.cpp136 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
137 aligned_h = ALIGN(height, 32); in getAlignedWidthAndHeight()
187 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
190 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
198 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
208 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight()
209 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
417 size = ALIGN(alignedw*alignedh, 4096); in getSize()
418 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getSize()
424 size = ALIGN( alignedw * alignedh, 8192); in getSize()
[all …]
/hardware/qcom/display/msm8994/libgralloc/
Dalloc_controller.cpp187 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
190 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
193 aligned_w = ALIGN(width * 10 /8, 8); in getAlignedWidthAndHeight()
196 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
204 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
215 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight()
216 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
268 aligned_w = ALIGN(width, 32); in getGpuAlignedWidthHeight()
269 aligned_h = ALIGN(height, 32); in getGpuAlignedWidthHeight()
505 size = ALIGN(alignedw * alignedh, 4096); in getSize()
[all …]
/hardware/qcom/display/msm8996/libgralloc/
Dalloc_controller.cpp231 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
234 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
237 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
240 aligned_w = ALIGN(width * 10 / 8, 8); in getAlignedWidthAndHeight()
243 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
250 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
265 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight()
266 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
319 aligned_w = ALIGN(width, 32); in getGpuAlignedWidthHeight()
320 aligned_h = ALIGN(height, 32); in getGpuAlignedWidthHeight()
[all …]
/hardware/qcom/display/msm8226/libcopybit/
Dsoftware_converter.cpp55 unsigned int c_width = ALIGN(stride/2, (unsigned int)16); in convertYV12toYCrCb420SP()
197 info.src_stride = ALIGN(info.width, 32); in convert_yuv_c2d_to_yuv_android()
198 info.dst_stride = ALIGN(info.width, 16); in convert_yuv_c2d_to_yuv_android()
207 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
208 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
242 info.src_stride = ALIGN(hnd->width, 16); in convert_yuv_android_to_yuv_c2d()
243 info.dst_stride = ALIGN(info.width, 32); in convert_yuv_android_to_yuv_c2d()
252 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
253 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
Dcopybit_c2d.cpp469 aligned_height = ALIGN(height, 32); in calculate_yuv_offset_and_stride()
470 aligned_width = ALIGN(width, 128); in calculate_yuv_offset_and_stride()
472 yuvInfo.plane1_offset = ALIGN(size,8192); in calculate_yuv_offset_and_stride()
480 aligned_width = ALIGN(width, 32); in calculate_yuv_offset_and_stride()
485 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); in calculate_yuv_offset_and_stride()
550 int aligned_width = ALIGN((int)surfaceDef.width,32); in set_image()
739 (ALIGN(ctx->fb_width,32)- dst->r):dst->r; in set_rects()
753 (ALIGN(ctx->fb_width,32) - dst->r):dst->r; in set_rects()
970 int aligned_w = ALIGN(w, 32); in get_size()
975 size = ALIGN((aligned_w*h), 2048) + in get_size()
[all …]
/hardware/qcom/display/msm8996/libcopybit/
Dsoftware_converter.cpp55 unsigned int c_width = ALIGN(stride/2, (unsigned int)16); in convertYV12toYCrCb420SP()
197 info.src_stride = ALIGN(info.width, 32); in convert_yuv_c2d_to_yuv_android()
198 info.dst_stride = ALIGN(info.width, 16); in convert_yuv_c2d_to_yuv_android()
207 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
208 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
242 info.src_stride = ALIGN(hnd->width, 16); in convert_yuv_android_to_yuv_c2d()
243 info.dst_stride = ALIGN(info.width, 32); in convert_yuv_android_to_yuv_c2d()
252 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
253 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
Dcopybit_c2d.cpp470 aligned_height = ALIGN(height, 32); in calculate_yuv_offset_and_stride()
471 aligned_width = ALIGN(width, 128); in calculate_yuv_offset_and_stride()
473 yuvInfo.plane1_offset = ALIGN(size,8192); in calculate_yuv_offset_and_stride()
481 aligned_width = ALIGN(width, 32); in calculate_yuv_offset_and_stride()
486 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); in calculate_yuv_offset_and_stride()
555 int aligned_width = ALIGN((int)surfaceDef.width,32); in set_image()
746 (ALIGN(ctx->fb_width,32)- dst->r):dst->r; in set_rects()
760 (ALIGN(ctx->fb_width,32) - dst->r):dst->r; in set_rects()
968 int aligned_w = ALIGN(w, 32); in get_size()
973 size = ALIGN((aligned_w*h), 2048) + in get_size()
[all …]
/hardware/qcom/display/msm8960/libcopybit/
Dsoftware_converter.cpp55 unsigned int c_width = ALIGN(stride/2, 16); in convertYV12toYCrCb420SP()
196 info.src_stride = ALIGN(info.width, 32); in convert_yuv_c2d_to_yuv_android()
197 info.dst_stride = ALIGN(info.width, 16); in convert_yuv_c2d_to_yuv_android()
206 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
207 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
241 info.src_stride = ALIGN(hnd->width, 16); in convert_yuv_android_to_yuv_c2d()
242 info.dst_stride = ALIGN(info.width, 32); in convert_yuv_android_to_yuv_c2d()
251 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
252 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
Dcopybit_c2d.cpp453 aligned_height = ALIGN(height, 32); in calculate_yuv_offset_and_stride()
454 aligned_width = ALIGN(width, 128); in calculate_yuv_offset_and_stride()
456 yuvInfo.plane1_offset = ALIGN(size,8192); in calculate_yuv_offset_and_stride()
464 aligned_width = ALIGN(width, 32); in calculate_yuv_offset_and_stride()
469 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); in calculate_yuv_offset_and_stride()
534 int aligned_width = ALIGN(surfaceDef.width,32); in set_image()
714 c2dObject->target_rect.y = ctx->fb_width?(ALIGN(ctx->fb_width,32)- dst->r):dst->r; in set_rects()
727 c2dObject->target_rect.x = ctx->fb_width?(ALIGN(ctx->fb_width,32) - dst->r):dst->r; in set_rects()
944 int aligned_w = ALIGN(w, 32); in get_size()
949 size = ALIGN((aligned_w*h), 2048) + in get_size()
[all …]
/hardware/qcom/display/msm8084/libcopybit/
Dsoftware_converter.cpp55 unsigned int c_width = ALIGN(stride/2, (unsigned int)16); in convertYV12toYCrCb420SP()
197 info.src_stride = ALIGN(info.width, 32); in convert_yuv_c2d_to_yuv_android()
198 info.dst_stride = ALIGN(info.width, 16); in convert_yuv_c2d_to_yuv_android()
207 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
208 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
242 info.src_stride = ALIGN(hnd->width, 16); in convert_yuv_android_to_yuv_c2d()
243 info.dst_stride = ALIGN(info.width, 32); in convert_yuv_android_to_yuv_c2d()
252 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
253 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
Dcopybit_c2d.cpp463 aligned_height = ALIGN(height, 32); in calculate_yuv_offset_and_stride()
464 aligned_width = ALIGN(width, 128); in calculate_yuv_offset_and_stride()
466 yuvInfo.plane1_offset = ALIGN(size,8192); in calculate_yuv_offset_and_stride()
474 aligned_width = ALIGN(width, 32); in calculate_yuv_offset_and_stride()
479 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); in calculate_yuv_offset_and_stride()
544 int aligned_width = ALIGN((int)surfaceDef.width,32); in set_image()
733 (ALIGN(ctx->fb_width,32)- dst->r):dst->r; in set_rects()
747 (ALIGN(ctx->fb_width,32) - dst->r):dst->r; in set_rects()
964 int aligned_w = ALIGN(w, 32); in get_size()
969 size = ALIGN((aligned_w*h), 2048) + in get_size()
[all …]
/hardware/qcom/display/msm8909/libcopybit/
Dsoftware_converter.cpp55 unsigned int c_width = ALIGN(stride/2, (unsigned int)16); in convertYV12toYCrCb420SP()
197 info.src_stride = ALIGN(info.width, 32); in convert_yuv_c2d_to_yuv_android()
198 info.dst_stride = ALIGN(info.width, 16); in convert_yuv_c2d_to_yuv_android()
207 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
208 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
242 info.src_stride = ALIGN(hnd->width, 16); in convert_yuv_android_to_yuv_c2d()
243 info.dst_stride = ALIGN(info.width, 32); in convert_yuv_android_to_yuv_c2d()
252 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
253 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
Dcopybit_c2d.cpp468 aligned_height = ALIGN(height, 32); in calculate_yuv_offset_and_stride()
469 aligned_width = ALIGN(width, 128); in calculate_yuv_offset_and_stride()
471 yuvInfo.plane1_offset = ALIGN(size,8192); in calculate_yuv_offset_and_stride()
479 aligned_width = ALIGN(width, 32); in calculate_yuv_offset_and_stride()
484 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); in calculate_yuv_offset_and_stride()
549 int aligned_width = ALIGN((int)surfaceDef.width,32); in set_image()
738 (ALIGN(ctx->fb_width,32)- dst->r):dst->r; in set_rects()
752 (ALIGN(ctx->fb_width,32) - dst->r):dst->r; in set_rects()
948 int aligned_w = ALIGN(w, 32); in get_size()
953 size = ALIGN((aligned_w*h), 2048) + in get_size()
[all …]
/hardware/qcom/display/msm8994/libcopybit/
Dsoftware_converter.cpp55 unsigned int c_width = ALIGN(stride/2, (unsigned int)16); in convertYV12toYCrCb420SP()
197 info.src_stride = ALIGN(info.width, 32); in convert_yuv_c2d_to_yuv_android()
198 info.dst_stride = ALIGN(info.width, 16); in convert_yuv_c2d_to_yuv_android()
207 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
208 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_c2d_to_yuv_android()
242 info.src_stride = ALIGN(hnd->width, 16); in convert_yuv_android_to_yuv_c2d()
243 info.dst_stride = ALIGN(info.width, 32); in convert_yuv_android_to_yuv_c2d()
252 info.src_plane1_offset = ALIGN(info.src_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
253 info.dst_plane1_offset = ALIGN(info.dst_stride*info.height, 2048); in convert_yuv_android_to_yuv_c2d()
Dcopybit_c2d.cpp472 aligned_height = ALIGN(height, 32); in calculate_yuv_offset_and_stride()
473 aligned_width = ALIGN(width, 128); in calculate_yuv_offset_and_stride()
475 yuvInfo.plane1_offset = ALIGN(size,8192); in calculate_yuv_offset_and_stride()
483 aligned_width = ALIGN(width, 32); in calculate_yuv_offset_and_stride()
488 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); in calculate_yuv_offset_and_stride()
553 int aligned_width = ALIGN((int)surfaceDef.width,32); in set_image()
742 (ALIGN(ctx->fb_width,32)- dst->r):dst->r; in set_rects()
756 (ALIGN(ctx->fb_width,32) - dst->r):dst->r; in set_rects()
973 int aligned_w = ALIGN(w, 32); in get_size()
978 size = ALIGN((aligned_w*h), 2048) + in get_size()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/build/make/
Dads2gas.pl125 s/^\s*AREA.*ALIGN=([0-9])$/.text\n.p2align $1/;
Dads2gas_apple.pl113 s/^\s*AREA.*ALIGN=([0-9])$/.text\n.p2align $1/;
/hardware/qcom/camera/QCamera2/stack/mm-lib2d-interface/test/
Dmm_lib2d_test.c43 #define ALIGN(a, b) (((a) + (b)) & ~(b)) macro
423 y_plane_stride = ALIGN(width, 32); in main()
425 y_plane_size_align = ALIGN(y_plane_size, ALIGN4K); in main()
448 stride = ALIGN(stride, 32); in main()
/hardware/ti/omap4xxx/hwc/
Dhal_public.h33 #define ALIGN(x,a) (((x) + (a) - 1L) & ~((a) - 1L)) macro

12345