Lines Matching refs:height
177 aligned_h = hnd->height; in getAlignedWidthAndHeight()
217 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument
225 getGpuAlignedWidthHeight(width, height, format, tileEnabled, aligned_w, aligned_h); in getAlignedWidthAndHeight()
227 getYuvUBwcWidthHeight(width, height, format, aligned_w, aligned_h); in getAlignedWidthAndHeight()
230 aligned_h = height; in getAlignedWidthAndHeight()
263 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12, height); in getAlignedWidthAndHeight()
267 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV21, height); in getAlignedWidthAndHeight()
274 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight()
311 width, height, format, 0,raster_mode, padding_threshold, in getAlignedWidthAndHeight()
324 void AdrenoMemInfo::getGpuAlignedWidthHeight(int width, int height, int format, in getGpuAlignedWidthHeight() argument
328 aligned_h = ALIGN(height, 32); in getGpuAlignedWidthHeight()
364 height, bpp, tile_enabled, in getGpuAlignedWidthHeight()
553 unsigned int getSize(int format, int width, int height, int usage, in getSize() argument
557 return getUBwcSize(width, height, format, alignedw, alignedh); in getSize()
595 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getSize()
602 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getSize()
605 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) { in getSize()
629 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height); in getSize()
632 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height); in getSize()
636 if(height != 1) { in getSize()
683 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
689 height, in getBufferSizeAndDimensions()
695 size = getSize(format, width, height, 0 /* usage */, alignedw, alignedh); in getBufferSizeAndDimensions()
701 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
707 height, in getBufferSizeAndDimensions()
713 size = getSize(format, width, height, usage, alignedw, alignedh); in getBufferSizeAndDimensions()
719 void getBufferAttributes(int width, int height, int format, int usage, in getBufferAttributes() argument
725 height, in getBufferAttributes()
730 size = getSize(format, width, height, usage, alignedw, alignedh); in getBufferAttributes()
733 void getYuvUbwcSPPlaneInfo(uint64_t base, int width, int height, in getYuvUbwcSPPlaneInfo() argument
744 y_meta_height = VENUS_Y_META_SCANLINES(color_format, height); in getYuvUbwcSPPlaneInfo()
748 y_height = VENUS_Y_SCANLINES(color_format, height); in getYuvUbwcSPPlaneInfo()
752 c_meta_height = VENUS_UV_META_SCANLINES(color_format, height); in getYuvUbwcSPPlaneInfo()
763 void getYuvSPPlaneInfo(uint64_t base, int width, int height, int bpp, in getYuvSPPlaneInfo() argument
770 ycbcr->cb = (void*)(base + ystride * height); in getYuvSPPlaneInfo()
771 ycbcr->cr = (void*)(base + ystride * height + 1); in getYuvSPPlaneInfo()
781 int height = hnd->height; in getYUVPlaneInfo() local
803 metadata->bufferDim.sliceHeight, format, usage, width, height); in getYUVPlaneInfo()
814 getYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in getYUVPlaneInfo()
818 getYuvSPPlaneInfo(hnd->base, width, height, 2, ycbcr); in getYUVPlaneInfo()
822 getYuvUbwcSPPlaneInfo(hnd->base, width, height, in getYUVPlaneInfo()
828 getYuvUbwcSPPlaneInfo(hnd->base, width, height, in getYUVPlaneInfo()
840 getYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in getYUVPlaneInfo()
849 ycbcr->cr = (void*)(hnd->base + ystride * height); in getYUVPlaneInfo()
850 ycbcr->cb = (void*)(hnd->base + ystride * height + in getYUVPlaneInfo()
851 cstride * height/2); in getYUVPlaneInfo()
991 static void getYuvUBwcWidthHeight(int width, int height, int format, in getYuvUBwcWidthHeight() argument
1000 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_UBWC, height); in getYuvUBwcWidthHeight()
1004 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_BPP10_UBWC, height); in getYuvUBwcWidthHeight()
1040 static unsigned int getRgbUBwcMetaBufferSize(int width, int height, int bpp) in getRgbUBwcMetaBufferSize() argument
1054 meta_height = ALIGN(((height + block_height - 1) / block_height), 16); in getRgbUBwcMetaBufferSize()
1064 static unsigned int getUBwcSize(int width, int height, int format, in getUBwcSize() argument
1071 size += getRgbUBwcMetaBufferSize(width, height, 2); in getUBwcSize()
1078 size += getRgbUBwcMetaBufferSize(width, height, 4); in getUBwcSize()
1083 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_UBWC, width, height); in getUBwcSize()
1086 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_BPP10_UBWC, width, height); in getUBwcSize()
1113 meta_size = getRgbUBwcMetaBufferSize(hnd->width, hnd->height, 2); in getRgbDataAddress()
1117 meta_size = getRgbUBwcMetaBufferSize(hnd->width, hnd->height, 4); in getRgbDataAddress()