Lines Matching refs:height
170 aligned_h = hnd->height; in getAlignedWidthAndHeight()
209 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument
217 getGpuAlignedWidthHeight(width, height, format, tileEnabled, aligned_w, aligned_h); in getAlignedWidthAndHeight()
219 getYuvUBwcWidthHeight(width, height, format, aligned_w, aligned_h); in getAlignedWidthAndHeight()
222 aligned_h = height; in getAlignedWidthAndHeight()
255 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12, height); in getAlignedWidthAndHeight()
259 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV21, height); in getAlignedWidthAndHeight()
266 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
303 width, height, format, 0,raster_mode, padding_threshold, in getAlignedWidthAndHeight()
316 void AdrenoMemInfo::getGpuAlignedWidthHeight(int width, int height, int format, in getGpuAlignedWidthHeight() argument
320 aligned_h = ALIGN(height, 32); in getGpuAlignedWidthHeight()
353 height, bpp, tile_enabled, in getGpuAlignedWidthHeight()
546 unsigned int getSize(int format, int width, int height, int usage, in getSize() argument
550 return getUBwcSize(width, height, format, alignedw, alignedh); in getSize()
585 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getSize()
592 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getSize()
595 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) { in getSize()
619 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height); in getSize()
622 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height); in getSize()
626 if(height != 1) { in getSize()
673 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
679 height, in getBufferSizeAndDimensions()
685 size = getSize(format, width, height, 0 /* usage */, alignedw, alignedh); in getBufferSizeAndDimensions()
691 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
697 height, in getBufferSizeAndDimensions()
703 size = getSize(format, width, height, usage, alignedw, alignedh); in getBufferSizeAndDimensions()
709 void getBufferAttributes(int width, int height, int format, int usage, in getBufferAttributes() argument
715 height, in getBufferAttributes()
720 size = getSize(format, width, height, usage, alignedw, alignedh); in getBufferAttributes()
733 int height = hnd->height; in getYuvUbwcSPPlaneInfo() local
736 y_meta_height = VENUS_Y_META_SCANLINES(color_format, height); in getYuvUbwcSPPlaneInfo()
740 y_height = VENUS_Y_SCANLINES(color_format, height); in getYuvUbwcSPPlaneInfo()
744 c_meta_height = VENUS_UV_META_SCANLINES(color_format, height); in getYuvUbwcSPPlaneInfo()
759 int height = hnd->height; in getYuvSPPlaneInfo() local
764 ycbcr->cb = (void*)(hnd->base + ystride * height); in getYuvSPPlaneInfo()
765 ycbcr->cr = (void*)(hnd->base + ystride * height + 1); in getYuvSPPlaneInfo()
775 int height = hnd->height; in getYUVPlaneInfo() local
797 metadata->bufferDim.sliceHeight, format, usage, width, height); in getYUVPlaneInfo()
841 ycbcr->cr = (void*)(hnd->base + ystride * height); in getYUVPlaneInfo()
842 ycbcr->cb = (void*)(hnd->base + ystride * height + in getYUVPlaneInfo()
843 cstride * height/2); in getYUVPlaneInfo()
975 static void getYuvUBwcWidthHeight(int width, int height, int format, in getYuvUBwcWidthHeight() argument
984 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_UBWC, height); in getYuvUBwcWidthHeight()
988 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_BPP10_UBWC, height); in getYuvUBwcWidthHeight()
1024 static unsigned int getRgbUBwcMetaBufferSize(int width, int height, int bpp) in getRgbUBwcMetaBufferSize() argument
1038 meta_height = ALIGN(((height + block_height - 1) / block_height), 16); in getRgbUBwcMetaBufferSize()
1048 static unsigned int getUBwcSize(int width, int height, int format, in getUBwcSize() argument
1055 size += getRgbUBwcMetaBufferSize(width, height, 2); in getUBwcSize()
1062 size += getRgbUBwcMetaBufferSize(width, height, 4); in getUBwcSize()
1067 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_UBWC, width, height); in getUBwcSize()
1070 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_BPP10_UBWC, width, height); in getUBwcSize()
1097 meta_size = getRgbUBwcMetaBufferSize(hnd->width, hnd->height, 2); in getRgbDataAddress()
1101 meta_size = getRgbUBwcMetaBufferSize(hnd->width, hnd->height, 4); in getRgbDataAddress()