/hardware/qcom/display/msm8960/libgralloc/ |
D | alloc_controller.cpp | 107 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 …]
|
/hardware/qcom/media/msm8974/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 43 #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/msm8998/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 44 #define ALIGN( num, to ) (((num) + (to-1)) & (~(to-1))) macro 434 return ALIGN(width, ALIGN32) * 2; // RGB565 has width as twice in calcStride() 439 return ALIGN(width, ALIGN32) * 4; in calcStride() 441 return ALIGN(width, ALIGN128); in calcStride() 443 return ALIGN(width, ALIGN16); in calcStride() 445 return ALIGN(width, ALIGN16); in calcStride() 447 return ALIGN(width, ALIGN128); in calcStride() 449 return ALIGN(width, ALIGN16); in calcStride() 451 return ALIGN(width, ALIGN16); in calcStride() 463 return (ALIGN(width, ALIGN16) * height); in calcYSize() [all …]
|
/hardware/qcom/media/msm8996/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 43 #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/ |
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() 214 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight() 215 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight() 416 size = ALIGN(alignedw * alignedh, 4096); in getSize() [all …]
|
/hardware/qcom/display/msm8909/libgralloc/ |
D | alloc_controller.cpp | 144 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/ |
D | alloc_controller.cpp | 136 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/ |
D | alloc_controller.cpp | 187 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/msm8998/libgralloc1/ |
D | gr_allocator.cpp | 283 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize() 288 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize() 289 size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize() 295 size = ALIGN(alignedw * alignedh, SIZE_8K); in GetSize() 296 size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K); in GetSize() 303 size = alignedw * alignedh + (ALIGN(alignedw / 2, 16) * (alignedh / 2)) * 2; in GetSize() 304 size = ALIGN(size, (unsigned int)SIZE_4K); in GetSize() 308 size = ALIGN((alignedw * alignedh) + (alignedw * alignedh) / 2 + 1, SIZE_4K); in GetSize() 318 size = ALIGN(alignedw * alignedh * 2, SIZE_4K); in GetSize() 336 size = ALIGN((alignedw * alignedh) + (alignedw * alignedh) / 2, SIZE_4K); in GetSize() [all …]
|
D | gr_adreno_info.cpp | 97 *aligned_w = (unsigned int)ALIGN(width, 32); in AlignUnCompressedRGB() 98 *aligned_h = (unsigned int)ALIGN(height, 32); in AlignUnCompressedRGB()
|
/hardware/qcom/display/msm8996/libgralloc1/ |
D | gr_allocator.cpp | 275 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize() 280 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize() 281 size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize() 287 size = ALIGN(alignedw * alignedh, SIZE_8K); in GetSize() 288 size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K); in GetSize() 295 size = alignedw * alignedh + (ALIGN(alignedw / 2, 16) * (alignedh / 2)) * 2; in GetSize() 296 size = ALIGN(size, (unsigned int)SIZE_4K); in GetSize() 300 size = ALIGN((alignedw * alignedh) + (alignedw * alignedh) / 2 + 1, SIZE_4K); in GetSize() 310 size = ALIGN(alignedw * alignedh * 2, SIZE_4K); in GetSize() 328 size = ALIGN((alignedw * alignedh) + (alignedw * alignedh) / 2, SIZE_4K); in GetSize() [all …]
|
D | gr_adreno_info.cpp | 97 *aligned_w = (unsigned int)ALIGN(width, 32); in AlignUnCompressedRGB() 98 *aligned_h = (unsigned int)ALIGN(height, 32); in AlignUnCompressedRGB()
|
/hardware/qcom/display/msm8998/libgralloc/ |
D | alloc_controller.cpp | 259 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight() 262 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight() 265 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight() 268 aligned_w = ALIGN(width * 10 / 8, 8); in getAlignedWidthAndHeight() 271 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight() 278 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight() 293 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight() 294 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight() 347 aligned_w = ALIGN(width, 32); in getGpuAlignedWidthHeight() 348 aligned_h = ALIGN(height, 32); in getGpuAlignedWidthHeight() [all …]
|
/hardware/qcom/display/msm8996/libgralloc/ |
D | alloc_controller.cpp | 238 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight() 241 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight() 244 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight() 247 aligned_w = ALIGN(width * 10 / 8, 8); in getAlignedWidthAndHeight() 250 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight() 257 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight() 272 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight() 273 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight() 326 aligned_w = ALIGN(width, 32); in getGpuAlignedWidthHeight() 327 aligned_h = ALIGN(height, 32); in getGpuAlignedWidthHeight() [all …]
|
/hardware/qcom/display/msm8909/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()
|
/hardware/qcom/display/msm8226/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()
|
/hardware/qcom/display/msm8994/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()
|
/hardware/qcom/display/msm8996/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 | software_converter.h | 38 #define ALIGN(x, y) (((x) + y - 1) & (~(y - 1))) macro
|
/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()
|
/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()
|
/hardware/qcom/display/msm8998/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 | software_converter.h | 38 #define ALIGN(x, y) (((x) + y - 1) & (~(y - 1))) macro
|
/hardware/qcom/camera/msm8998/QCamera2/util/ |
D | QCameraCommon.cpp | 208 ALIGN(pAnalysisInfo->analysis_padding_info.min_stride, in getAnalysisInfo() 215 ALIGN(pAnalysisInfo->analysis_padding_info.min_scanline, in getAnalysisInfo()
|
/hardware/qcom/camera/QCamera2/util/ |
D | QCameraCommon.cpp | 208 ALIGN(pAnalysisInfo->analysis_padding_info.min_stride, in getAnalysisInfo() 215 ALIGN(pAnalysisInfo->analysis_padding_info.min_scanline, in getAnalysisInfo()
|