/hardware/qcom/display/msm8960/libgralloc/ |
D | alloc_controller.cpp | 257 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/ |
D | alloc_controller.cpp | 398 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 …]
|
D | gr.h | 51 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/ |
D | alloc_controller.cpp | 397 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 …]
|
D | gr.h | 51 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/msm8996/libgralloc1/ |
D | gr_allocator.cpp | 163 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() 197 unsigned int Allocator::GetSize(const BufferDescriptor &descriptor, unsigned int alignedw, in GetSize() argument 207 return GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize() 212 size = alignedw * alignedh * bpp; in GetSize() 217 size = alignedw * alignedh * ASTC_BLOCK_SIZE; in GetSize() 224 size = alignedw * alignedh * 2; in GetSize() 228 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize() 231 size = alignedw * alignedh * 1; in GetSize() [all …]
|
D | gr_allocator.h | 65 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); 89 unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw,
|
D | gr_buf_mgr.cpp | 164 unsigned int alignedw = 0, alignedh = 0; in CreateSharedHandle() local 165 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh); in CreateSharedHandle() 177 INT(alignedw), in CreateSharedHandle() 482 unsigned int alignedw, alignedh; in AllocateBuffer() local 484 allocator_->GetBufferSizeAndDimensions(descriptor, &size, &alignedw, &alignedh); in AllocateBuffer() 524 INT(alignedw), in AllocateBuffer() 565 unsigned int alignedw = 0, alignedh = 0; in Perform() local 574 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh); in Perform() 577 hnd->width = INT(alignedw); in Perform() 588 unsigned int alignedw = 0, alignedh = 0; in Perform() local [all …]
|
/hardware/qcom/display/msm8998/libgralloc1/ |
D | gr_allocator.cpp | 164 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() 198 unsigned int Allocator::GetSize(const BufferDescriptor &descriptor, unsigned int alignedw, in GetSize() argument 208 return GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize() 213 size = alignedw * alignedh * bpp; in GetSize() 218 size = alignedw * alignedh * ASTC_BLOCK_SIZE; in GetSize() 225 size = alignedw * alignedh * 2; in GetSize() 229 size = ALIGN(alignedw * alignedh, SIZE_4K); in GetSize() 232 size = alignedw * alignedh * 1; in GetSize() [all …]
|
D | gr_allocator.h | 65 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); 89 unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw,
|
D | gr_buf_mgr.cpp | 164 unsigned int alignedw = 0, alignedh = 0; in CreateSharedHandle() local 165 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh); in CreateSharedHandle() 176 INT(alignedw), in CreateSharedHandle() 470 unsigned int alignedw, alignedh; in AllocateBuffer() local 472 allocator_->GetBufferSizeAndDimensions(descriptor, &size, &alignedw, &alignedh); in AllocateBuffer() 512 INT(alignedw), in AllocateBuffer() 553 unsigned int alignedw = 0, alignedh = 0; in Perform() local 562 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh); in Perform() 565 hnd->width = INT(alignedw); in Perform() 576 unsigned int alignedw = 0, alignedh = 0; in Perform() local [all …]
|
/hardware/qcom/display/msm8909/gralloc/ |
D | gr_utils.cpp | 177 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 …]
|
D | gr_utils.h | 69 unsigned int GetSize(const BufferInfo &d, unsigned int alignedw, unsigned int alignedh); 71 unsigned int *alignedw, unsigned int *alignedh); 90 unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw,
|
D | gr_buf_mgr.cpp | 163 unsigned int alignedw = 0, alignedh = 0; in CreateSharedHandle() local 166 GetAlignedWidthAndHeight(info, &alignedw, &alignedh); in CreateSharedHandle() 178 INT(alignedw), in CreateSharedHandle() 476 unsigned int alignedw, alignedh; in AllocateBuffer() local 479 GetBufferSizeAndDimensions(info, &size, &alignedw, &alignedh); in AllocateBuffer() 519 INT(alignedw), in AllocateBuffer() 564 unsigned int alignedw = 0, alignedh = 0; in Perform() local 573 GetAlignedWidthAndHeight(info, &alignedw, &alignedh); in Perform() 576 hnd->width = INT(alignedw); in Perform() 587 unsigned int alignedw = 0, alignedh = 0; in Perform() local [all …]
|
/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
D | gr_utils.cpp | 177 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 …]
|
D | gr_utils.h | 69 unsigned int GetSize(const BufferInfo &d, unsigned int alignedw, unsigned int alignedh); 71 unsigned int *alignedw, unsigned int *alignedh); 90 unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw,
|
/hardware/qcom/display/msm8996/libgralloc/ |
D | alloc_controller.cpp | 554 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 …]
|
D | gr.h | 52 int usage, int& alignedw, int &alignedh); 54 int& alignedw, int &alignedh); 59 int& alignedw, int &alignedh, 140 int tileEnabled, int& alignedw, int &alignedh);
|
/hardware/qcom/display/msm8909/libgralloc/ |
D | alloc_controller.cpp | 540 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 …]
|
D | mapper.cpp | 321 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/ |
D | alloc_controller.cpp | 540 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 …]
|
D | mapper.cpp | 321 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/media/msm8996/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 472 size_t alignedw = ALIGN(width, ALIGN16); in calcYSize() local 473 size_t lumaSize = ALIGN(alignedw * height, ALIGN2K); in calcYSize() 490 int32_t alignedw = 0; in calcSize() local 502 &alignedw, &alignedh); in calcSize() 503 size = alignedw * alignedh * bpp; in calcSize() 509 &alignedw, &alignedh); in calcSize() 513 size = alignedw * alignedh * bpp; in calcSize() 517 alignedw = ALIGN(width, ALIGN16); in calcSize() 518 size = ALIGN((alignedw * height) + (ALIGN(width/2, ALIGN32) * (height/2) * 2), ALIGN4K); in calcSize() 521 alignedw = ALIGN(width, ALIGN16); in calcSize() [all …]
|
/hardware/qcom/media/msm8998/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 478 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 …]
|
/hardware/qcom/media/msm8974/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 436 size_t alignedw = ALIGN(width, ALIGN16); in calcYSize() local 437 size_t lumaSize = ALIGN(alignedw * height, ALIGN2K); in calcYSize() 449 int32_t alignedw = 0; in calcSize() local 466 alignedw = ALIGN(width, ALIGN16); in calcSize() 467 size = ALIGN((alignedw * height) + (ALIGN(width/2, ALIGN32) * (height/2) * 2), ALIGN4K); in calcSize() 473 alignedw = ALIGN(width, ALIGN16); in calcSize() 474 size = ALIGN((alignedw * height) + (ALIGN(width/2, ALIGN16) * (height/2) * 2), ALIGN4K); in calcSize() 477 alignedw = ALIGN(width, ALIGN128); in calcSize() 479 … size = ALIGN(alignedw * alignedh, ALIGN8K) + ALIGN(alignedw * ALIGN(height/2, ALIGN32), ALIGN8K); in calcSize() 482 alignedw = ALIGN(width, ALIGN16); in calcSize() [all …]
|