Home
last modified time | relevance | path

Searched refs:alignedw (Results 1 – 25 of 58) sorted by relevance

123

/hardware/qcom/display/msm8960/libgralloc/
Dalloc_controller.cpp257 int& alignedw, int &alignedh) in getBufferSizeAndDimensions() argument
261 alignedw = AdrenoMemInfo::getInstance().getStride(width, format); in getBufferSizeAndDimensions()
267 size = alignedw * alignedh * 4; in getBufferSizeAndDimensions()
270 size = alignedw * alignedh * 3; in getBufferSizeAndDimensions()
274 size = alignedw * alignedh * 2; in getBufferSizeAndDimensions()
279 size = ALIGN(alignedw*alignedh, 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()
291 alignedw = ALIGN(width, 16); in getBufferSizeAndDimensions()
[all …]
/hardware/qcom/display/msm8084/libgralloc/
Dalloc_controller.cpp398 size_t getSize(int format, int width, int height, const int alignedw, in getSize() argument
406 size = alignedw * alignedh * 4; in getSize()
409 size = alignedw * alignedh * 3; in getSize()
413 size = alignedw * alignedh * 2; in getSize()
416 size = ALIGN(alignedw * alignedh, 4096); in getSize()
421 size = ALIGN(alignedw*alignedh, 4096); in getSize()
428 size = ALIGN( alignedw * alignedh, 8192); in getSize()
429 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getSize()
436 size = alignedw*alignedh + in getSize()
437 (ALIGN(alignedw/2, 16) * (alignedh/2))*2; in getSize()
[all …]
Dgr.h51 int& alignedw, int &alignedh);
53 int& alignedw, int &alignedh);
58 int& alignedw, int &alignedh,
115 int tileEnabled, int& alignedw, int &alignedh);
/hardware/qcom/display/msm8226/libgralloc/
Dalloc_controller.cpp397 unsigned int getSize(int format, int width, int height, const int alignedw, in getSize() argument
405 size = alignedw * alignedh * 4; in getSize()
408 size = alignedw * alignedh * 3; in getSize()
412 size = alignedw * alignedh * 2; in getSize()
417 size = ALIGN(alignedw*alignedh, 4096); in getSize()
424 size = ALIGN( alignedw * alignedh, 8192); in getSize()
425 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getSize()
432 size = alignedw*alignedh + in getSize()
433 (ALIGN(alignedw/2, 16) * (alignedh/2))*2; in getSize()
438 size = ALIGN((alignedw*alignedh) + (alignedw* alignedh)/2 + 1, 4096); in getSize()
[all …]
Dgr.h51 int usage, int& alignedw, int &alignedh);
53 int& alignedw, int &alignedh);
58 int& alignedw, int &alignedh,
115 int tileEnabled, int& alignedw, int &alignedh);
/hardware/qcom/display/msm8994/libgralloc/
Dalloc_controller.cpp487 const int alignedw, const int alignedh) { in getSize() argument
490 return getUBwcSize(width, height, format, alignedw, alignedh); in getSize()
496 size = alignedw * alignedh * 8; in getSize()
502 size = alignedw * alignedh * 4; in getSize()
505 size = alignedw * alignedh * 3; in getSize()
511 size = alignedw * alignedh * 2; in getSize()
514 size = ALIGN(alignedw * alignedh, 4096); in getSize()
518 size = ALIGN(alignedw*alignedh, 4096); in getSize()
525 size = ALIGN( alignedw * alignedh, 8192); in getSize()
526 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getSize()
[all …]
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_allocator.cpp163 unsigned int alignedw, alignedh; in CheckForBufferSharing() local
180 GetAlignedWidthAndHeight(*descriptors[i], &alignedw, &alignedh); in CheckForBufferSharing()
181 unsigned int size = GetSize(*descriptors[i], alignedw, alignedh); in CheckForBufferSharing()
217 unsigned int Allocator::GetSize(const BufferDescriptor &descriptor, unsigned int alignedw, in GetSize() argument
228 size = GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize()
231 size = alignedw * alignedh * bpp; in GetSize()
233 size = alignedw * alignedh * ASTC_BLOCK_SIZE; in GetSize()
237 size = alignedw * alignedh * 2; in GetSize()
241 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
245 size = alignedw * alignedh * 1; in GetSize()
[all …]
Dgr_allocator.h65 unsigned int GetSize(const BufferDescriptor &d, unsigned int alignedw, unsigned int alignedh);
67 unsigned int *alignedw, unsigned int *alignedh);
69 unsigned int *alignedw, unsigned int *alignedh);
91 unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw,
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_allocator.cpp164 unsigned int alignedw, alignedh; in CheckForBufferSharing() local
181 GetAlignedWidthAndHeight(*descriptors[i], &alignedw, &alignedh); in CheckForBufferSharing()
182 unsigned int size = GetSize(*descriptors[i], alignedw, alignedh); in CheckForBufferSharing()
218 unsigned int Allocator::GetSize(const BufferDescriptor &descriptor, unsigned int alignedw, in GetSize() argument
229 size = GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize()
232 size = alignedw * alignedh * bpp; in GetSize()
234 size = alignedw * alignedh * ASTC_BLOCK_SIZE; in GetSize()
238 size = alignedw * alignedh * 2; in GetSize()
242 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
246 size = alignedw * alignedh * 1; in GetSize()
[all …]
Dgr_allocator.h65 unsigned int GetSize(const BufferDescriptor &d, unsigned int alignedw, unsigned int alignedh);
67 unsigned int *alignedw, unsigned int *alignedh);
69 unsigned int *alignedw, unsigned int *alignedh);
91 unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw,
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_utils.cpp177 unsigned int GetSize(const BufferInfo &info, unsigned int alignedw, in GetSize() argument
187 return GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize()
192 size = alignedw * alignedh * bpp; in GetSize()
197 size = alignedw * alignedh * ASTC_BLOCK_SIZE; in GetSize()
205 size = alignedw * alignedh * 2; in GetSize()
209 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
213 size = alignedw * alignedh * 1; in GetSize()
218 size = ALIGN(alignedw * alignedh, 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()
[all …]
/hardware/qcom/display/msm8909/gralloc/
Dgr_utils.cpp177 unsigned int GetSize(const BufferInfo &info, unsigned int alignedw, in GetSize() argument
187 return GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize()
192 size = alignedw * alignedh * bpp; in GetSize()
197 size = alignedw * alignedh * ASTC_BLOCK_SIZE; in GetSize()
205 size = alignedw * alignedh * 2; in GetSize()
209 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
213 size = alignedw * alignedh * 1; in GetSize()
218 size = ALIGN(alignedw * alignedh, 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()
[all …]
/hardware/qcom/sdm845/display/gralloc/
Dgr_utils.cpp237 unsigned int GetSize(const BufferInfo &info, unsigned int alignedw, unsigned int alignedh) { in GetSize() argument
250 size = GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize()
253 size = alignedw * alignedh * bpp; in GetSize()
255 size = alignedw * alignedh * ASTC_BLOCK_SIZE; in GetSize()
260 case HAL_PIXEL_FORMAT_Y16:size = alignedw * alignedh * 2; in GetSize()
263 case HAL_PIXEL_FORMAT_RAW12:size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
266 case HAL_PIXEL_FORMAT_Y8:size = alignedw * alignedh * 1; in GetSize()
271 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
278 size = ALIGN(alignedw * alignedh, SIZE_8K); in GetSize()
279 size += ALIGN(alignedw * (unsigned int) ALIGN(height / 2, 32), SIZE_8K); in GetSize()
[all …]
Dgr_utils.h78 unsigned int GetSize(const BufferInfo &d, unsigned int alignedw, unsigned int alignedh);
79 void GetBufferSizeAndDimensions(const BufferInfo &d, unsigned int *size, unsigned int *alignedw,
81 void GetBufferSizeAndDimensions(const BufferInfo &d, unsigned int *size, unsigned int *alignedw,
102 unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw,
109 unsigned int *alignedw, unsigned int *alignedh,
/hardware/qcom/display/msm8996/libgralloc/
Dalloc_controller.cpp554 const int alignedw, const int alignedh) { in getSize() argument
557 return getUBwcSize(width, height, format, alignedw, alignedh); in getSize()
563 size = alignedw * alignedh * 8; in getSize()
576 size = alignedw * alignedh * 4; in getSize()
579 size = alignedw * alignedh * 3; in getSize()
586 size = alignedw * alignedh * 2; in getSize()
589 size = ALIGN(alignedw * alignedh, 4096); in getSize()
594 size = ALIGN(alignedw*alignedh, 4096); in getSize()
601 size = ALIGN( alignedw * alignedh, 8192); in getSize()
602 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getSize()
[all …]
/hardware/qcom/display/msm8909/libgralloc/
Dalloc_controller.cpp540 const int alignedw, const int alignedh) { in getSize() argument
543 return getUBwcSize(width, height, format, alignedw, alignedh); in getSize()
559 size = alignedw * alignedh * 4; in getSize()
562 size = alignedw * alignedh * 3; in getSize()
570 size = alignedw * alignedh * 2; in getSize()
573 size = ALIGN(alignedw * alignedh, 4096); in getSize()
576 size = ALIGN(alignedw * alignedh, 4096); in getSize()
580 size = alignedw * alignedh; in getSize()
584 size = ALIGN(alignedw*alignedh, 4096); in getSize()
591 size = ALIGN( alignedw * alignedh, 8192); in getSize()
[all …]
Dmapper.cpp321 int alignedw = 0, alignedh = 0; in gralloc_perform() local
335 height, format, 0, alignedw, alignedh); in gralloc_perform()
336 hnd->width = alignedw; in gralloc_perform()
352 int alignedw = 0, alignedh = 0; in gralloc_perform() local
354 0, format, 0, alignedw, alignedh); in gralloc_perform()
355 *stride = alignedw; in gralloc_perform()
367 int alignedw = 0, alignedh = 0; in gralloc_perform() local
368 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(hnd, alignedw, alignedh); in gralloc_perform()
369 *stride = alignedw; in gralloc_perform()
383 int alignedw = 0, alignedh = 0; in gralloc_perform() local
[all …]
/hardware/qcom/display/msm8909w_3100/libgralloc/
Dalloc_controller.cpp540 const int alignedw, const int alignedh) { in getSize() argument
543 return getUBwcSize(width, height, format, alignedw, alignedh); in getSize()
559 size = alignedw * alignedh * 4; in getSize()
562 size = alignedw * alignedh * 3; in getSize()
570 size = alignedw * alignedh * 2; in getSize()
573 size = ALIGN(alignedw * alignedh, 4096); in getSize()
576 size = ALIGN(alignedw * alignedh, 4096); in getSize()
580 size = alignedw * alignedh; in getSize()
584 size = ALIGN(alignedw*alignedh, 4096); in getSize()
591 size = ALIGN( alignedw * alignedh, 8192); in getSize()
[all …]
Dmapper.cpp321 int alignedw = 0, alignedh = 0; in gralloc_perform() local
335 height, format, 0, alignedw, alignedh); in gralloc_perform()
336 hnd->width = alignedw; in gralloc_perform()
352 int alignedw = 0, alignedh = 0; in gralloc_perform() local
354 0, format, 0, alignedw, alignedh); in gralloc_perform()
355 *stride = alignedw; in gralloc_perform()
367 int alignedw = 0, alignedh = 0; in gralloc_perform() local
368 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(hnd, alignedw, alignedh); in gralloc_perform()
369 *stride = alignedw; in gralloc_perform()
383 int alignedw = 0, alignedh = 0; in gralloc_perform() local
[all …]
/hardware/qcom/sm8150/display/gralloc/
Dgr_utils.cpp264 unsigned int GetSize(const BufferInfo &info, unsigned int alignedw, unsigned int alignedh) { in GetSize() argument
277 size = GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize()
280 size = alignedw * alignedh * bpp; in GetSize()
282 size = alignedw * alignedh * ASTC_BLOCK_SIZE; in GetSize()
287 case HAL_PIXEL_FORMAT_Y16:size = alignedw * alignedh * 2; in GetSize()
290 case HAL_PIXEL_FORMAT_RAW12:size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
293 case HAL_PIXEL_FORMAT_Y8:size = alignedw * alignedh * 1; in GetSize()
297 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize()
304 size = ALIGN(alignedw * alignedh, SIZE_8K); in GetSize()
305 size += ALIGN(alignedw * (unsigned int) ALIGN(height / 2, 32), SIZE_8K); in GetSize()
[all …]
Dgr_utils.h79 unsigned int GetSize(const BufferInfo &d, unsigned int alignedw, unsigned int alignedh);
80 int GetBufferSizeAndDimensions(const BufferInfo &d, unsigned int *size, unsigned int *alignedw,
82 int GetBufferSizeAndDimensions(const BufferInfo &d, unsigned int *size, unsigned int *alignedw,
104 unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw,
110 unsigned int *alignedw, unsigned int *alignedh,
/hardware/qcom/sm8150/media/libc2dcolorconvert/
DC2DColorConverter.cpp552 size_t alignedw = ALIGN(width, ALIGN16); in calcYSize() local
553 size_t lumaSize = ALIGN(alignedw * height, ALIGN2K); in calcYSize()
578 int32_t alignedw = 0; in calcSize() local
593 &alignedw, &alignedh); in calcSize()
594 ALOGV("%s: alignedw %d alignedh %d", __FUNCTION__,alignedw, alignedh); in calcSize()
595 size = alignedw * alignedh * bpp; in calcSize()
604 &alignedw, &alignedh); in calcSize()
605 ALOGV("%s: alignedw %d alignedh %d", __FUNCTION__,alignedw, alignedh); in calcSize()
609 size = alignedw * alignedh * bpp; in calcSize()
613 alignedw = ALIGN(width, ALIGN16); in calcSize()
[all …]
/hardware/qcom/sdm845/media/libc2dcolorconvert/
DC2DColorConverter.cpp535 size_t alignedw = ALIGN(width, ALIGN16); in calcYSize() local
536 size_t lumaSize = ALIGN(alignedw * height, ALIGN2K); in calcYSize()
559 int32_t alignedw = 0; in calcSize() local
574 &alignedw, &alignedh); in calcSize()
575 ALOGV("%s: alignedw %d alignedh %d", __FUNCTION__,alignedw, alignedh); in calcSize()
576 size = alignedw * alignedh * bpp; in calcSize()
585 &alignedw, &alignedh); in calcSize()
586 ALOGV("%s: alignedw %d alignedh %d", __FUNCTION__,alignedw, alignedh); in calcSize()
590 size = alignedw * alignedh * bpp; in calcSize()
594 alignedw = ALIGN(width, ALIGN16); in calcSize()
[all …]
/hardware/qcom/media/msm8996/libc2dcolorconvert/
DC2DColorConverter.cpp475 size_t alignedw = ALIGN(width, ALIGN16); in calcYSize() local
476 size_t lumaSize = ALIGN(alignedw * height, ALIGN2K); in calcYSize()
493 int32_t alignedw = 0; in calcSize() local
505 &alignedw, &alignedh); in calcSize()
506 size = alignedw * alignedh * bpp; in calcSize()
512 &alignedw, &alignedh); in calcSize()
516 size = alignedw * alignedh * bpp; in calcSize()
520 alignedw = ALIGN(width, ALIGN16); in calcSize()
521 size = ALIGN((alignedw * height) + (ALIGN(width/2, ALIGN32) * (height/2) * 2), ALIGN4K); in calcSize()
524 alignedw = ALIGN(width, ALIGN16); in calcSize()
[all …]
/hardware/qcom/media/msm8998/libc2dcolorconvert/
DC2DColorConverter.cpp478 size_t alignedw = ALIGN(width, ALIGN16); in calcYSize() local
479 size_t lumaSize = ALIGN(alignedw * height, ALIGN2K); in calcYSize()
496 int32_t alignedw = 0; in calcSize() local
508 &alignedw, &alignedh); in calcSize()
509 size = alignedw * alignedh * bpp; in calcSize()
515 &alignedw, &alignedh); in calcSize()
519 size = alignedw * alignedh * bpp; in calcSize()
523 alignedw = ALIGN(width, ALIGN16); in calcSize()
524 size = ALIGN((alignedw * height) + (ALIGN(width/2, ALIGN32) * (height/2) * 2), ALIGN4K); in calcSize()
527 alignedw = ALIGN(width, ALIGN16); in calcSize()
[all …]

123