/hardware/qcom/media/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 40 #define ALIGN( num, to ) (((num) + (to-1)) & (~(to-1))) macro 391 return ALIGN(width, ALIGN32) * 2; // RGB565 has width as twice in calcStride() 396 return ALIGN(width, ALIGN32) * 4; in calcStride() 398 return ALIGN(width, ALIGN128); in calcStride() 400 return ALIGN(width, ALIGN16); in calcStride() 402 return ALIGN(width, ALIGN16); in calcStride() 404 return ALIGN(width, ALIGN128); in calcStride() 408 return ALIGN(width, ALIGN16); in calcStride() 418 return (ALIGN(width, ALIGN16) * height); in calcYSize() 422 return ALIGN(width, ALIGN16) * height; in calcYSize() [all …]
|
/hardware/qcom/display/msm8974/libgralloc/ |
D | alloc_controller.cpp | 105 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() 299 size = ALIGN(alignedw*alignedh, 4096); in getBufferSizeAndDimensions() 300 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getBufferSizeAndDimensions() 306 size = ALIGN( alignedw * alignedh, 8192); in getBufferSizeAndDimensions() 307 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getBufferSizeAndDimensions() [all …]
|
D | gr.h | 41 inline size_t ALIGN(size_t x, size_t align) { in ALIGN() function
|
/hardware/qcom/display/msm8960/libgralloc/ |
D | alloc_controller.cpp | 105 int stride = ALIGN(width, 32); in getStride() 133 stride = ALIGN(width, 32); in getStride() 136 stride = ALIGN(width, 128); in getStride() 146 stride = ALIGN(width, 16); in getStride() 260 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 size = ALIGN( alignedw * alignedh, 8192); in getBufferSizeAndDimensions() 288 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getBufferSizeAndDimensions() 299 size = ALIGN(alignedw*alignedh, 2048) + in getBufferSizeAndDimensions() [all …]
|
D | gr.h | 41 inline size_t ALIGN(size_t x, size_t align) { in ALIGN() function
|
/hardware/qcom/display/msm8084/libgralloc/ |
D | alloc_controller.cpp | 136 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() 417 size = ALIGN(alignedw * alignedh, 4096); in getSize() [all …]
|
/hardware/qcom/display/msm8226/libgralloc/ |
D | alloc_controller.cpp | 136 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, 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() 414 size = ALIGN(alignedw*alignedh, 4096); in getSize() 415 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getSize() 421 size = ALIGN( alignedw * alignedh, 8192); in getSize() [all …]
|
/hardware/samsung_slsi/exynos5/libexynosutils/ |
D | exynos5_format_v4l2.c | 276 size = ALIGN(width, 16) * ALIGN(height, 16); in FRAME_SIZE() 277 frame_size = size + 2 * ALIGN(width >> 1, 8) * ALIGN(height >> 1, 8); in FRAME_SIZE() 284 size = ALIGN(ALIGN(width, 16) * ALIGN(height, 16), 2048); in FRAME_SIZE() 285 frame_size = size + ALIGN(ALIGN(width, 16) * ALIGN(height >> 1, 8), 2048); in FRAME_SIZE()
|
/hardware/qcom/display/msm8226/libcopybit/ |
D | software_converter.cpp | 55 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()
|
D | copybit_c2d.cpp | 462 aligned_height = ALIGN(height, 32); in calculate_yuv_offset_and_stride() 463 aligned_width = ALIGN(width, 128); in calculate_yuv_offset_and_stride() 465 yuvInfo.plane1_offset = ALIGN(size,8192); in calculate_yuv_offset_and_stride() 473 aligned_width = ALIGN(width, 32); in calculate_yuv_offset_and_stride() 478 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); in calculate_yuv_offset_and_stride() 543 int aligned_width = ALIGN(surfaceDef.width,32); in set_image() 731 c2dObject->target_rect.y = ctx->fb_width?(ALIGN(ctx->fb_width,32)- dst->r):dst->r; in set_rects() 744 c2dObject->target_rect.x = ctx->fb_width?(ALIGN(ctx->fb_width,32) - dst->r):dst->r; in set_rects() 961 int aligned_w = ALIGN(w, 32); in get_size() 966 size = ALIGN((aligned_w*h), 2048) + in get_size() [all …]
|
/hardware/qcom/display/msm8974/libcopybit/ |
D | software_converter.cpp | 55 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()
|
D | copybit_c2d.cpp | 464 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/msm8960/libcopybit/ |
D | software_converter.cpp | 55 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()
|
D | copybit_c2d.cpp | 453 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/ |
D | software_converter.cpp | 55 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()
|
D | copybit_c2d.cpp | 463 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/samsung_slsi/exynos5/gralloc/ |
D | gralloc.cpp | 176 bpr = ALIGN(w*bpp, 64); in gralloc_alloc_rgb() 177 vstride = ALIGN(h, 16); in gralloc_alloc_rgb() 183 size = ALIGN(size, PAGE_SIZE); in gralloc_alloc_rgb() 209 *stride = ALIGN(w, 16); in gralloc_alloc_framework_yuv() 210 size = (*stride * h) + (ALIGN(*stride / 2, 16) * h); in gralloc_alloc_framework_yuv() 238 *stride = ALIGN(w, 16); in gralloc_alloc_yuv() 253 *stride = ALIGN(w, 32); in gralloc_alloc_yuv() 254 luma_vstride = ALIGN(h, 16); in gralloc_alloc_yuv() 256 chroma_size = (luma_vstride / 2) * ALIGN(*stride / 2, 16); in gralloc_alloc_yuv() 264 size_t chroma_vstride = ALIGN(h / 2, 32); in gralloc_alloc_yuv() [all …]
|
/hardware/samsung_slsi/exynos5/librotator/ |
D | exynos_rotator.c | 156 plane_size[0] = ALIGN(width, 16) * ALIGN(height, 16); in m_rotator_get_plane_size() 157 plane_size[1] = ALIGN(width, 16) * ALIGN(height / 2, 8); in m_rotator_get_plane_size() 222 *w = ALIGN(*w, 16); in m_exynos_rotator_check_src_size() 223 *h = ALIGN(*h, 16); in m_exynos_rotator_check_src_size() 229 *w = ALIGN(*w, 8); in m_exynos_rotator_check_src_size() 230 *h = ALIGN(*h, 8); in m_exynos_rotator_check_src_size() 248 *w = ALIGN(*w, 4); in m_exynos_rotator_check_src_size() 249 *h = ALIGN(*h, 4); in m_exynos_rotator_check_src_size() 298 *new_w = ALIGN(*new_w, 16); in m_exynos_rotator_check_dst_size() 299 *new_h = ALIGN(*new_h, 16); in m_exynos_rotator_check_dst_size() [all …]
|
/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/component/video/enc/ |
D | Exynos_OMX_Venc.h | 45 … ALIGN((ALIGN_TO_16B(DEFAULT_FRAME_WIDTH) * ALIGN_TO_16B(DEFAULT_FRAME_HEIGHT))/2,256)) 52 #define DEFAULT_MFC_INPUT_CBUFFER_SIZE ALIGN((DEFAULT_MFC_INPUT_YBUFFER_SIZE / 2), 256)
|
/hardware/samsung_slsi/exynos5/libcsc/ |
D | csc.c | 70 #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) macro 436 ALIGN(csc_handle->src_format.width, GSCALER_IMG_ALIGN), in csc_set_format() 437 ALIGN(csc_handle->src_format.height, GSCALER_IMG_ALIGN), in csc_set_format() 448 ALIGN(csc_handle->dst_format.width, GSCALER_IMG_ALIGN), in csc_set_format() 449 ALIGN(csc_handle->dst_format.height, GSCALER_IMG_ALIGN), in csc_set_format() 465 g2d->src.width = ALIGN(csc_handle->src_format.width, in csc_set_format() 479 g2d->dst.width = ALIGN(csc_handle->dst_format.width, in csc_set_format()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/build/make/ |
D | ads2gas.pl | 125 s/^\s*AREA.*ALIGN=([0-9])$/.text\n.p2align $1/;
|
D | ads2gas_apple.pl | 113 s/^\s*AREA.*ALIGN=([0-9])$/.text\n.p2align $1/;
|
/hardware/ti/omap4xxx/hwc/ |
D | hal_public.h | 33 #define ALIGN(x,a) (((x) + (a) - 1L) & ~((a) - 1L)) macro
|
/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/include/exynos/ |
D | Exynos_OMX_Macros.h | 37 #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) macro
|
/hardware/samsung_slsi/exynos5/include/ |
D | exynos_format.h | 79 #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) macro
|