Home | History | Annotate | Download | only in libgralloc

Lines Matching refs:height

177         aligned_h = hnd->height;
216 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format,
224 getGpuAlignedWidthHeight(width, height, format, tileEnabled, aligned_w, aligned_h);
226 getYuvUBwcWidthHeight(width, height, format, aligned_w, aligned_h);
229 aligned_h = height;
262 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12, height);
266 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV21, height);
273 aligned_h = ALIGN(height, 64);
310 width, height, format, 0,raster_mode, padding_threshold,
323 void AdrenoMemInfo::getGpuAlignedWidthHeight(int width, int height, int format,
327 aligned_h = ALIGN(height, 32);
356 // the function below computes aligned width and aligned height
360 height, bpp, tile_enabled,
549 unsigned int getSize(int format, int width, int height, int usage,
553 return getUBwcSize(width, height, format, alignedw, alignedh);
588 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096);
595 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192);
598 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) {
622 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height);
625 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height);
629 if(height != 1) {
631 must have height==1 ", __FUNCTION__);
676 unsigned int getBufferSizeAndDimensions(int width, int height, int format,
682 height,
688 size = getSize(format, width, height, 0 /* usage */, alignedw, alignedh);
694 unsigned int getBufferSizeAndDimensions(int width, int height, int format,
700 height,
706 size = getSize(format, width, height, usage, alignedw, alignedh);
712 void getBufferAttributes(int width, int height, int format, int usage,
718 height,
723 size = getSize(format, width, height, usage, alignedw, alignedh);
726 void getYuvUbwcSPPlaneInfo(uint64_t base, int width, int height,
737 y_meta_height = VENUS_Y_META_SCANLINES(color_format, height);
741 y_height = VENUS_Y_SCANLINES(color_format, height);
745 c_meta_height = VENUS_UV_META_SCANLINES(color_format, height);
756 void getYuvSPPlaneInfo(uint64_t base, int width, int height, int bpp,
763 ycbcr->cb = (void*)(base + ystride * height);
764 ycbcr->cr = (void*)(base + ystride * height + 1);
774 int height = hnd->height;
796 metadata->bufferDim.sliceHeight, format, usage, width, height);
799 // Get the chroma offsets from the handle width/height. We take advantage
807 getYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr);
811 getYuvSPPlaneInfo(hnd->base, width, height, 2, ycbcr);
815 getYuvUbwcSPPlaneInfo(hnd->base, width, height,
821 getYuvUbwcSPPlaneInfo(hnd->base, width, height,
833 getYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr);
842 ycbcr->cr = (void*)(hnd->base + ystride * height);
843 ycbcr->cb = (void*)(hnd->base + ystride * height +
844 cstride * height/2);
863 // Allocate buffer from width, height and format into a
984 static void getYuvUBwcWidthHeight(int width, int height, int format,
993 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_UBWC, height);
997 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_BPP10_UBWC, height);
1033 static unsigned int getRgbUBwcMetaBufferSize(int width, int height, int bpp)
1046 // Align meta buffer height to 16 blocks
1047 meta_height = ALIGN(((height + block_height - 1) / block_height), 16);
1057 static unsigned int getUBwcSize(int width, int height, int format,
1064 size += getRgbUBwcMetaBufferSize(width, height, 2);
1071 size += getRgbUBwcMetaBufferSize(width, height, 4);
1076 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_UBWC, width, height);
1079 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_BPP10_UBWC, width, height);
1106 meta_size = getRgbUBwcMetaBufferSize(hnd->width, hnd->height, 2);
1110 meta_size = getRgbUBwcMetaBufferSize(hnd->width, hnd->height, 4);