Lines Matching refs:height

164 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format,  in getAlignedWidthAndHeight()  argument
172 height, format, tileEnabled, aligned_w, aligned_h); in getAlignedWidthAndHeight()
177 getUBwcWidthAndHeight(width, height, format, aligned_w, aligned_h); in getAlignedWidthAndHeight()
182 aligned_h = height; in getAlignedWidthAndHeight()
209 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12, height); in getAlignedWidthAndHeight()
216 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
253 width, height, format, 0,raster_mode, padding_threshold, in getAlignedWidthAndHeight()
265 void AdrenoMemInfo::getGpuAlignedWidthHeight(int width, int height, int format, in getGpuAlignedWidthHeight() argument
269 aligned_h = ALIGN(height, 32); in getGpuAlignedWidthHeight()
301 height, bpp, tile_enabled, in getGpuAlignedWidthHeight()
481 unsigned int getSize(int format, int width, int height, int usage, in getSize() argument
485 return getUBwcSize(width, height, format, alignedw, alignedh); in getSize()
510 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getSize()
517 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getSize()
520 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) { in getSize()
544 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height); in getSize()
548 if(height != 1) { in getSize()
595 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
601 height, in getBufferSizeAndDimensions()
607 size = getSize(format, width, height, 0 /* usage */, alignedw, alignedh); in getBufferSizeAndDimensions()
613 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
619 height, in getBufferSizeAndDimensions()
625 size = getSize(format, width, height, usage, alignedw, alignedh); in getBufferSizeAndDimensions()
631 void getBufferAttributes(int width, int height, int format, int usage, in getBufferAttributes() argument
637 height, in getBufferAttributes()
642 size = getSize(format, width, height, usage, alignedw, alignedh); in getBufferAttributes()
661 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height); in getYUVPlaneInfo()
662 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height + 1); in getYUVPlaneInfo()
676 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height); in getYUVPlaneInfo()
677 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height + 1); in getYUVPlaneInfo()
688 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height); in getYUVPlaneInfo()
689 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height + in getYUVPlaneInfo()
690 cstride * hnd->height/2); in getYUVPlaneInfo()
802 static void getUBwcWidthAndHeight(int width, int height, int format, in getUBwcWidthAndHeight() argument
811 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_UBWC, height); in getUBwcWidthAndHeight()
847 static unsigned int getUBwcMetaBufferSize(int width, int height, int bpp) in getUBwcMetaBufferSize() argument
861 meta_height = ALIGN(((height + block_height - 1) / block_height), 16); in getUBwcMetaBufferSize()
871 static unsigned int getUBwcSize(int width, int height, int format, in getUBwcSize() argument
878 size += getUBwcMetaBufferSize(width, height, 2); in getUBwcSize()
882 size += getUBwcMetaBufferSize(width, height, 4); in getUBwcSize()
887 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_UBWC, width, height); in getUBwcSize()