Home
last modified time | relevance | path

Searched refs:ALIGN (Results 1 – 25 of 108) 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()
280 size = ALIGN(alignedw*alignedh, 4096); in getBufferSizeAndDimensions()
281 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getBufferSizeAndDimensions()
287 alignedw = ALIGN(alignedw, 128); in getBufferSizeAndDimensions()
288 size = ALIGN( alignedw * alignedh, 8192); in getBufferSizeAndDimensions()
289 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()
Dgr.h41 inline size_t ALIGN(size_t x, size_t align) { in ALIGN() function
/hardware/qcom/media/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/display/msm8974/libgralloc/
Dalloc_controller.cpp105 int stride = ALIGN(width, 32); in getStride()
142 stride = ALIGN(width, 32); in getStride()
145 stride = ALIGN(width, 128); in getStride()
154 stride = ALIGN(width, 16); in getStride()
164 stride = ALIGN(width, 64); in getStride()
279 alignedh = ALIGN(height, 32); in getBufferSizeAndDimensions()
297 size = ALIGN(alignedw*alignedh, 4096); in getBufferSizeAndDimensions()
298 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getBufferSizeAndDimensions()
304 size = ALIGN( alignedw * alignedh, 8192); in getBufferSizeAndDimensions()
305 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getBufferSizeAndDimensions()
[all …]
Dgr.h41 inline size_t ALIGN(size_t x, size_t align) { in ALIGN() function
/hardware/qcom/display/msm8084/libgralloc/
Dalloc_controller.cpp136 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
137 aligned_h = ALIGN(height, 32); in getAlignedWidthAndHeight()
186 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
189 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
192 aligned_w = ALIGN(width * 10 /8, 16); in getAlignedWidthAndHeight()
195 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
203 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
213 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight()
214 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
415 size = ALIGN(alignedw * alignedh, 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.cpp188 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
191 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
194 aligned_w = ALIGN(width * 10 /8, 8); in getAlignedWidthAndHeight()
197 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
205 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()
512 size = ALIGN(alignedw * alignedh, 4096); in getSize()
[all …]
/hardware/qcom/display/msm8974/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.cpp464 aligned_height = ALIGN(height, 32); in calculate_yuv_offset_and_stride()
465 aligned_width = ALIGN(width, 128); in calculate_yuv_offset_and_stride()
467 yuvInfo.plane1_offset = ALIGN(size,8192); in calculate_yuv_offset_and_stride()
475 aligned_width = ALIGN(width, 32); in calculate_yuv_offset_and_stride()
480 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); in calculate_yuv_offset_and_stride()
545 int aligned_width = ALIGN(surfaceDef.width,32); in set_image()
733 c2dObject->target_rect.y = ctx->fb_width?(ALIGN(ctx->fb_width,32)- dst->r):dst->r; in set_rects()
746 c2dObject->target_rect.x = ctx->fb_width?(ALIGN(ctx->fb_width,32) - dst->r):dst->r; in set_rects()
963 int aligned_w = ALIGN(w, 32); in get_size()
968 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/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/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/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/display/msm8226/libhwcomposer/
Dhwc_copybit.cpp234 finalW = max(finalW, ALIGN((overlap.right - overlap.left), 32)); in prepareOverlap()
235 finalH += ALIGN((overlap.bottom - overlap.top), 32); in prepareOverlap()
236 if(finalH > ALIGN((overlap.bottom - overlap.top), 32)) { in prepareOverlap()
239 (finalH - ALIGN((overlap.bottom - overlap.top), 32)) * 4; in prepareOverlap()
242 (ALIGN((overlap.bottom - overlap.top), 32))); in prepareOverlap()
393 buf.w = ALIGN(getWidth(hnd),32); in clear()
684 dst.w = ALIGN(dstHandle->width, 32); in drawRectUsingCopybit()
811 dst.w = ALIGN(fbHandle->width,32); in drawLayerUsingCopybit()
995 dst.w = ALIGN(renderBuffer->width, 32); in fillColorUsingCopybit()
/hardware/ti/omap4xxx/hwc/
Dhal_public.h33 #define ALIGN(x,a) (((x) + (a) - 1L) & ~((a) - 1L)) macro
/hardware/ti/omap4-aah/hwc/
Dhal_public.h33 #define ALIGN(x,a) (((x) + (a) - 1L) & ~((a) - 1L)) macro
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/arm/neon/
Dsave_reg_neon.asm19 AREA ||.text||, CODE, READONLY, ALIGN=2

12345