Home
last modified time | relevance | path

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

1234

/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 …]
/hardware/qcom/media/msm8974/libc2dcolorconvert/
DC2DColorConverter.cpp43 #define ALIGN( num, to ) (((num) + (to-1)) & (~(to-1))) macro
401 return ALIGN(width, ALIGN32) * 2; // RGB565 has width as twice in calcStride()
406 return ALIGN(width, ALIGN32) * 4; in calcStride()
408 return ALIGN(width, ALIGN128); in calcStride()
410 return ALIGN(width, ALIGN16); in calcStride()
412 return ALIGN(width, ALIGN16); in calcStride()
414 return ALIGN(width, ALIGN128); in calcStride()
418 return ALIGN(width, ALIGN16); in calcStride()
428 return (ALIGN(width, ALIGN16) * height); in calcYSize()
432 return ALIGN(width, ALIGN16) * height; in calcYSize()
[all …]
/hardware/qcom/media/sdm845/libc2dcolorconvert/
DC2DColorConverter.cpp423 return ALIGN(width, ALIGN32) * 2; // RGB565 has width as twice in calcStride()
428 return ALIGN(width, ALIGN32) * 4; in calcStride()
430 return ALIGN(width, ALIGN128); in calcStride()
432 return ALIGN(width, ALIGN16); in calcStride()
434 return ALIGN(width, ALIGN16); in calcStride()
436 return ALIGN(width, ALIGN128); in calcStride()
438 return ALIGN(width, ALIGN16); in calcStride()
440 return ALIGN(width, ALIGN16); in calcStride()
452 return (ALIGN(width, ALIGN16) * height); in calcYSize()
454 return ALIGN(width, ALIGN16) * height; in calcYSize()
[all …]
/hardware/qcom/media/msm8998/libc2dcolorconvert/
DC2DColorConverter.cpp44 #define ALIGN( num, to ) (((num) + (to-1)) & (~(to-1))) macro
441 return ALIGN(width, ALIGN32) * 2; // RGB565 has width as twice in calcStride()
446 return ALIGN(width, ALIGN32) * 4; in calcStride()
448 return ALIGN(width, ALIGN128); in calcStride()
450 return ALIGN(width, ALIGN16); in calcStride()
452 return ALIGN(width, ALIGN16); in calcStride()
454 return ALIGN(width, ALIGN128); in calcStride()
456 return ALIGN(width, ALIGN16); in calcStride()
458 return ALIGN(width, ALIGN16); in calcStride()
470 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
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/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()
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/sdm845/libgralloc1/
Dgr_utils.cpp209 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
218 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
219 size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize()
225 size = ALIGN(alignedw * alignedh, SIZE_8K); in GetSize()
226 size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K); in GetSize()
233 size = alignedw * alignedh + (ALIGN(alignedw / 2, 16) * (alignedh / 2)) * 2; in GetSize()
234 size = ALIGN(size, (unsigned int)SIZE_4K); in GetSize()
238 size = ALIGN((alignedw * alignedh) + (alignedw * alignedh) / 2 + 1, SIZE_4K); in GetSize()
241 size = ALIGN((alignedw * alignedh * 2) + (alignedw * alignedh) + 1, SIZE_4K); in GetSize()
252 size = ALIGN(alignedw * alignedh * 2, SIZE_4K); in GetSize()
[all …]
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_allocator.cpp228 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
236 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
237 size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize()
243 size = ALIGN(alignedw * alignedh, SIZE_8K); in GetSize()
244 size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K); in GetSize()
251 size = alignedw * alignedh + (ALIGN(alignedw / 2, 16) * (alignedh / 2)) * 2; in GetSize()
252 size = ALIGN(size, (unsigned int)SIZE_4K); in GetSize()
256 size = ALIGN((alignedw * alignedh) + (alignedw * alignedh) / 2 + 1, SIZE_4K); in GetSize()
259 size = ALIGN((alignedw * alignedh * 2) + (alignedw * alignedh) + 1, SIZE_4K); in GetSize()
269 size = ALIGN(alignedw * alignedh * 2, SIZE_4K); in GetSize()
[all …]
Dgr_adreno_info.cpp87 *aligned_w = (unsigned int)ALIGN(width, 32); in AlignUnCompressedRGB()
88 *aligned_h = (unsigned int)ALIGN(height, 32); in AlignUnCompressedRGB()
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_allocator.cpp226 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
234 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
235 size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize()
241 size = ALIGN(alignedw * alignedh, SIZE_8K); in GetSize()
242 size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K); in GetSize()
249 size = alignedw * alignedh + (ALIGN(alignedw / 2, 16) * (alignedh / 2)) * 2; in GetSize()
250 size = ALIGN(size, (unsigned int)SIZE_4K); in GetSize()
254 size = ALIGN((alignedw * alignedh) + (alignedw * alignedh) / 2 + 1, SIZE_4K); in GetSize()
257 size = ALIGN((alignedw * alignedh * 2) + (alignedw * alignedh) + 1, SIZE_4K); in GetSize()
267 size = ALIGN(alignedw * alignedh * 2, SIZE_4K); in GetSize()
[all …]
Dgr_adreno_info.cpp86 *aligned_w = (unsigned int)ALIGN(width, 32); in AlignUnCompressedRGB()
87 *aligned_h = (unsigned int)ALIGN(height, 32); in AlignUnCompressedRGB()
143 *aligned_w = (unsigned int)ALIGN(width, 32); in AlignCompressedRGB()
144 *aligned_h = (unsigned int)ALIGN(height, 32); in AlignCompressedRGB()
/hardware/qcom/display/msm8909/libgralloc/
Dalloc_controller.cpp144 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
145 aligned_h = ALIGN(height, 32); in getAlignedWidthAndHeight()
193 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
196 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
199 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
206 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
216 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight()
217 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
429 size = ALIGN(alignedw*alignedh, 4096); in getSize()
430 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.cpp189 aligned_w = ALIGN(width, 32); in getAlignedWidthAndHeight()
192 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
195 aligned_w = ALIGN(width * 10 /8, 8); in getAlignedWidthAndHeight()
198 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
206 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
217 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight()
218 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
270 aligned_w = ALIGN(width, 32); in getGpuAlignedWidthHeight()
271 aligned_h = ALIGN(height, 32); in getGpuAlignedWidthHeight()
514 size = ALIGN(alignedw * alignedh, 4096); in getSize()
[all …]
/hardware/qcom/display/sdm845/libgralloc/
Dalloc_controller.cpp244 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
247 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
252 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
255 aligned_w = ALIGN(width * 12 / 8, 8); in getAlignedWidthAndHeight()
258 aligned_w = ALIGN(width * 10 / 8, 8); in getAlignedWidthAndHeight()
261 aligned_w = ALIGN(width, 8); in getAlignedWidthAndHeight()
264 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
273 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
288 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight()
289 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
[all …]
/hardware/qcom/display/msm8996/libgralloc/
Dalloc_controller.cpp239 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
242 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
245 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
248 aligned_w = ALIGN(width * 10 / 8, 8); in getAlignedWidthAndHeight()
251 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
258 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
273 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight()
274 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
327 aligned_w = ALIGN(width, 32); in getGpuAlignedWidthHeight()
328 aligned_h = ALIGN(height, 32); in getGpuAlignedWidthHeight()
[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()
/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()
/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()
/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()
/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()
/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()
/hardware/qcom/display/sdm845/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()
/hardware/qcom/display/msm8998/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()
Dsoftware_converter.h38 #define ALIGN(x, y) (((x) + y - 1) & (~(y - 1))) macro

1234