Lines Matching refs:width
181 int width = info.width; in GetSize() local
187 return GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize()
219 size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize()
229 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { in GetSize()
248 if (width & 1) { in GetSize()
256 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height); in GetSize()
259 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height); in GetSize()
267 size = (unsigned int)width; in GetSize()
286 void GetYuvUbwcSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, in GetYuvUbwcSPPlaneInfo() argument
295 y_meta_stride = VENUS_Y_META_STRIDE(color_format, INT(width)); in GetYuvUbwcSPPlaneInfo()
299 y_stride = VENUS_Y_STRIDE(color_format, INT(width)); in GetYuvUbwcSPPlaneInfo()
303 c_meta_stride = VENUS_UV_META_STRIDE(color_format, INT(width)); in GetYuvUbwcSPPlaneInfo()
311 ycbcr->cstride = VENUS_UV_STRIDE(color_format, INT(width)); in GetYuvUbwcSPPlaneInfo()
314 void GetYuvUbwcInterlacedSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, in GetYuvUbwcInterlacedSPPlaneInfo() argument
325 uv_stride = VENUS_UV_STRIDE(color_format, INT(width)); in GetYuvUbwcInterlacedSPPlaneInfo()
330 GetYuvUbwcSPPlaneInfo(field_base, width, height, COLOR_FMT_NV12_UBWC, &ycbcr[0]); in GetYuvUbwcInterlacedSPPlaneInfo()
333 GetYuvUbwcSPPlaneInfo(field_base, width, height, COLOR_FMT_NV12_UBWC, &ycbcr[1]); in GetYuvUbwcInterlacedSPPlaneInfo()
336 void GetYuvSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, uint32_t bpp, in GetYuvSPPlaneInfo() argument
340 ystride = cstride = UINT(width) * bpp; in GetYuvSPPlaneInfo()
351 uint32_t width = UINT(hnd->width); in GetYUVPlaneInfo() local
379 GetAlignedWidthAndHeight(info, &width, &height); in GetYUVPlaneInfo()
398 GetYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in GetYUVPlaneInfo()
402 GetYuvSPPlaneInfo(hnd->base, width, height, 2, ycbcr); in GetYUVPlaneInfo()
407 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_UBWC, ycbcr); in GetYUVPlaneInfo()
409 GetYuvUbwcInterlacedSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_UBWC, ycbcr); in GetYUVPlaneInfo()
415 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_BPP10_UBWC, ycbcr); in GetYUVPlaneInfo()
420 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_P010_UBWC, ycbcr); in GetYUVPlaneInfo()
434 GetYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in GetYUVPlaneInfo()
440 ystride = width; in GetYUVPlaneInfo()
441 cstride = ALIGN(width / 2, 16); in GetYUVPlaneInfo()
450 ystride = width * 2; in GetYUVPlaneInfo()
530 void GetYuvUBwcWidthAndHeight(int width, int height, int format, unsigned int *aligned_w, in GetYuvUBwcWidthAndHeight() argument
536 *aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV12_UBWC, width); in GetYuvUBwcWidthAndHeight()
541 *aligned_w = (VENUS_Y_STRIDE(COLOR_FMT_NV12_BPP10_UBWC, width) * 3) / 4; in GetYuvUBwcWidthAndHeight()
546 *aligned_w = (VENUS_Y_STRIDE(COLOR_FMT_P010_UBWC, width) / 2); in GetYuvUBwcWidthAndHeight()
581 unsigned int GetRgbUBwcMetaBufferSize(int width, int height, uint32_t bpp) { in GetRgbUBwcMetaBufferSize() argument
596 meta_width = ALIGN(((width + block_width - 1) / block_width), 64); in GetRgbUBwcMetaBufferSize()
604 unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw, in GetUBwcSize() argument
616 size += GetRgbUBwcMetaBufferSize(width, height, bpp); in GetUBwcSize()
621 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_UBWC, width, height); in GetUBwcSize()
624 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_BPP10_UBWC, width, height); in GetUBwcSize()
627 size = VENUS_BUFFER_SIZE(COLOR_FMT_P010_UBWC, width, height); in GetUBwcSize()
659 meta_size = GetRgbUBwcMetaBufferSize(hnd->width, hnd->height, bpp); in GetRgbDataAddress()
673 int width = info.width; in GetAlignedWidthAndHeight() local
685 AdrenoMemInfo::GetInstance()->AlignUnCompressedRGB(width, height, format, tile, alignedw, in GetAlignedWidthAndHeight()
692 GetYuvUBwcWidthAndHeight(width, height, format, alignedw, alignedh); in GetAlignedWidthAndHeight()
698 AdrenoMemInfo::GetInstance()->AlignCompressedRGB(width, height, format, alignedw, alignedh); in GetAlignedWidthAndHeight()
703 int aligned_w = width; in GetAlignedWidthAndHeight()
715 aligned_w = ALIGN(width, alignment); in GetAlignedWidthAndHeight()
718 aligned_w = ALIGN(width, alignment); in GetAlignedWidthAndHeight()
723 aligned_w = ALIGN(width, 16); in GetAlignedWidthAndHeight()
726 aligned_w = ALIGN(width * 12 / 8, 8); in GetAlignedWidthAndHeight()
729 aligned_w = ALIGN(width * 10 / 8, 8); in GetAlignedWidthAndHeight()
732 aligned_w = ALIGN(width, 8); in GetAlignedWidthAndHeight()
735 aligned_w = ALIGN(width, 128); in GetAlignedWidthAndHeight()
743 aligned_w = ALIGN(width, 16); in GetAlignedWidthAndHeight()
747 aligned_w = INT(VENUS_Y_STRIDE(COLOR_FMT_NV12, width)); in GetAlignedWidthAndHeight()
751 aligned_w = INT(VENUS_Y_STRIDE(COLOR_FMT_NV21, width)); in GetAlignedWidthAndHeight()
758 aligned_w = ALIGN(width, 64); in GetAlignedWidthAndHeight()
784 stride[0] = static_cast<uint32_t>(hnd->width * 2); in GetBufferLayout()
787 stride[0] = static_cast<uint32_t>(hnd->width * 3); in GetBufferLayout()
801 stride[0] = static_cast<uint32_t>(hnd->width * 4); in GetBufferLayout()