Lines Matching refs:width
169 aligned_w = hnd->width; in getAlignedWidthAndHeight()
222 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument
230 getGpuAlignedWidthHeight(width, height, format, tileEnabled, aligned_w, aligned_h); in getAlignedWidthAndHeight()
232 getYuvUBwcWidthHeight(width, height, format, aligned_w, aligned_h); in getAlignedWidthAndHeight()
234 aligned_w = width; in getAlignedWidthAndHeight()
244 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
247 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight()
252 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
255 aligned_w = ALIGN(width * 12 / 8, 8); in getAlignedWidthAndHeight()
258 aligned_w = ALIGN(width * 10 / 8, 8); in getAlignedWidthAndHeight()
261 aligned_w = ALIGN(width, 8); in getAlignedWidthAndHeight()
264 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight()
273 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight()
277 aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV12, width); in getAlignedWidthAndHeight()
281 aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV21, width); in getAlignedWidthAndHeight()
288 aligned_w = ALIGN(width, 64); in getAlignedWidthAndHeight()
326 width, height, format, 0,raster_mode, padding_threshold, in getAlignedWidthAndHeight()
339 void AdrenoMemInfo::getGpuAlignedWidthHeight(int width, int height, int format, in getGpuAlignedWidthHeight() argument
342 aligned_w = ALIGN(width, 32); in getGpuAlignedWidthHeight()
375 LINK_adreno_compute_aligned_width_and_height(width, in getGpuAlignedWidthHeight()
382 aligned_w = LINK_adreno_compute_padding(width, bpp, in getGpuAlignedWidthHeight()
539 unsigned int getSize(int format, int width, int height, int usage, in getSize() argument
543 return getUBwcSize(width, height, format, alignedw, alignedh); in getSize()
585 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getSize()
595 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) { in getSize()
615 if(width & 1) { in getSize()
623 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height); in getSize()
626 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height); in getSize()
635 size = width; in getSize()
677 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
682 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(width, in getBufferSizeAndDimensions()
689 size = getSize(format, width, height, 0 /* usage */, alignedw, alignedh); in getBufferSizeAndDimensions()
695 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
700 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(width, in getBufferSizeAndDimensions()
707 size = getSize(format, width, height, usage, alignedw, alignedh); in getBufferSizeAndDimensions()
712 void getYuvUbwcSPPlaneInfo(uint64_t base, int width, int height, in getYuvUbwcSPPlaneInfo() argument
722 y_meta_stride = VENUS_Y_META_STRIDE(color_format, width); in getYuvUbwcSPPlaneInfo()
726 y_stride = VENUS_Y_STRIDE(color_format, width); in getYuvUbwcSPPlaneInfo()
730 c_meta_stride = VENUS_UV_META_STRIDE(color_format, width); in getYuvUbwcSPPlaneInfo()
739 ycbcr->cstride = VENUS_UV_STRIDE(color_format, width); in getYuvUbwcSPPlaneInfo()
742 void getYuvSPPlaneInfo(uint64_t base, int width, int height, int bpp, in getYuvSPPlaneInfo() argument
747 ystride = cstride = width * bpp; in getYuvSPPlaneInfo()
759 int width = hnd->width; in getYUVPlaneInfo() local
782 metadata->bufferDim.sliceHeight, format, usage, width, height); in getYUVPlaneInfo()
793 getYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in getYUVPlaneInfo()
797 getYuvSPPlaneInfo(hnd->base, width, height, 2, ycbcr); in getYUVPlaneInfo()
801 getYuvUbwcSPPlaneInfo(hnd->base, width, height, in getYUVPlaneInfo()
807 getYuvUbwcSPPlaneInfo(hnd->base, width, height, in getYUVPlaneInfo()
812 getYuvUbwcSPPlaneInfo(hnd->base, width, height, in getYUVPlaneInfo()
827 getYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in getYUVPlaneInfo()
833 ystride = width; in getYUVPlaneInfo()
834 cstride = ALIGN(width/2, 16); in getYUVPlaneInfo()
844 ystride = width * 2; in getYUVPlaneInfo()
984 static void getYuvUBwcWidthHeight(int width, int height, int format, in getYuvUBwcWidthHeight() argument
992 aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV12_UBWC, width); in getYuvUBwcWidthHeight()
997 aligned_w = (VENUS_Y_STRIDE(COLOR_FMT_NV12_BPP10_UBWC, width) * 3) / 4; in getYuvUBwcWidthHeight()
1002 aligned_w = (VENUS_Y_STRIDE(COLOR_FMT_P010_UBWC, width) / 2); in getYuvUBwcWidthHeight()
1039 static unsigned int getRgbUBwcMetaBufferSize(int width, int height, int bpp) in getRgbUBwcMetaBufferSize() argument
1056 meta_width = ALIGN(((width + block_width - 1) / block_width), 64); in getRgbUBwcMetaBufferSize()
1063 static unsigned int getUBwcSize(int width, int height, int format, in getUBwcSize() argument
1070 size += getRgbUBwcMetaBufferSize(width, height, 2); in getUBwcSize()
1077 size += getRgbUBwcMetaBufferSize(width, height, 4); in getUBwcSize()
1082 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_UBWC, width, height); in getUBwcSize()
1085 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_BPP10_UBWC, width, height); in getUBwcSize()
1088 size = VENUS_BUFFER_SIZE(COLOR_FMT_P010_UBWC, width, height); in getUBwcSize()
1116 meta_size = getRgbUBwcMetaBufferSize(hnd->width, hnd->height, 2); in getRgbDataAddress()
1122 meta_size = getRgbUBwcMetaBufferSize(hnd->width, hnd->height, 4); in getRgbDataAddress()
1149 stride[0] = hnd->width * 2; in getBufferLayout()
1152 stride[0] = hnd->width * 3; in getBufferLayout()
1166 stride[0] = hnd->width * 4; in getBufferLayout()