Lines Matching refs:width
176 aligned_w = hnd->width; 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()
229 aligned_w = width; in getAlignedWidthAndHeight()
239 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
242 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
245 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
248 aligned_w = ALIGN(width * 10 / 8, 8); in getAlignedWidthAndHeight()
251 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
258 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
262 aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV12, width); in getAlignedWidthAndHeight()
266 aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV21, width); in getAlignedWidthAndHeight()
273 aligned_w = ALIGN(width, 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
327 aligned_w = ALIGN(width, 32); in getGpuAlignedWidthHeight()
363 LINK_adreno_compute_aligned_width_and_height(width, in getGpuAlignedWidthHeight()
370 aligned_w = LINK_adreno_compute_padding(width, bpp, 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()
605 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) { in getSize()
621 if(width & 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()
641 size = width; in getSize()
683 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
688 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(width, 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
706 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(width, 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
724 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(width, 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
743 y_meta_stride = VENUS_Y_META_STRIDE(color_format, width); in getYuvUbwcSPPlaneInfo()
747 y_stride = VENUS_Y_STRIDE(color_format, width); in getYuvUbwcSPPlaneInfo()
751 c_meta_stride = VENUS_UV_META_STRIDE(color_format, width); in getYuvUbwcSPPlaneInfo()
760 ycbcr->cstride = VENUS_UV_STRIDE(color_format, width); in getYuvUbwcSPPlaneInfo()
763 void getYuvSPPlaneInfo(uint64_t base, int width, int height, int bpp, in getYuvSPPlaneInfo() argument
768 ystride = cstride = width * bpp; in getYuvSPPlaneInfo()
780 int width = hnd->width; 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()
846 ystride = width; in getYUVPlaneInfo()
847 cstride = ALIGN(width/2, 16); in getYUVPlaneInfo()
993 static void getYuvUBwcWidthHeight(int width, int height, int format, in getYuvUBwcWidthHeight() argument
1001 aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV12_UBWC, width); in getYuvUBwcWidthHeight()
1005 aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV12_BPP10_UBWC, width); in getYuvUBwcWidthHeight()
1042 static unsigned int getRgbUBwcMetaBufferSize(int width, int height, int bpp) in getRgbUBwcMetaBufferSize() argument
1059 meta_width = ALIGN(((width + block_width - 1) / block_width), 64); in getRgbUBwcMetaBufferSize()
1066 static unsigned int getUBwcSize(int width, int height, int format, in getUBwcSize() argument
1073 size += getRgbUBwcMetaBufferSize(width, height, 2); in getUBwcSize()
1080 size += getRgbUBwcMetaBufferSize(width, height, 4); in getUBwcSize()
1085 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_UBWC, width, height); in getUBwcSize()
1088 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_BPP10_UBWC, width, height); in getUBwcSize()
1115 meta_size = getRgbUBwcMetaBufferSize(hnd->width, hnd->height, 2); in getRgbDataAddress()
1119 meta_size = getRgbUBwcMetaBufferSize(hnd->width, hnd->height, 4); in getRgbDataAddress()