Lines Matching refs:width
240 int width = info.width; in GetSize() local
250 size = GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize()
272 size += (unsigned int) ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize()
282 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { in GetSize()
298 width, in GetSize()
306 if (width & 1) { in GetSize()
314 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height); in GetSize()
318 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height); in GetSize()
326 size = (unsigned int) width; in GetSize()
358 void GetYuvUbwcSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, int color_format, in GetYuvUbwcSPPlaneInfo() argument
367 y_meta_stride = VENUS_Y_META_STRIDE(color_format, INT(width)); in GetYuvUbwcSPPlaneInfo()
371 y_stride = VENUS_Y_STRIDE(color_format, INT(width)); in GetYuvUbwcSPPlaneInfo()
375 c_meta_stride = VENUS_UV_META_STRIDE(color_format, INT(width)); in GetYuvUbwcSPPlaneInfo()
383 ycbcr->cstride = VENUS_UV_STRIDE(color_format, INT(width)); in GetYuvUbwcSPPlaneInfo()
386 void GetYuvUbwcInterlacedSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, in GetYuvUbwcInterlacedSPPlaneInfo() argument
397 uv_stride = VENUS_UV_STRIDE(color_format, INT(width)); in GetYuvUbwcInterlacedSPPlaneInfo()
402 GetYuvUbwcSPPlaneInfo(field_base, width, height, COLOR_FMT_NV12_UBWC, &ycbcr[0]); in GetYuvUbwcInterlacedSPPlaneInfo()
406 GetYuvUbwcSPPlaneInfo(field_base, width, height, COLOR_FMT_NV12_UBWC, &ycbcr[1]); in GetYuvUbwcInterlacedSPPlaneInfo()
409 void GetYuvSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, uint32_t bpp, in GetYuvSPPlaneInfo() argument
413 ystride = cstride = UINT(width) * bpp; in GetYuvSPPlaneInfo()
424 uint32_t width = UINT(hnd->width); in GetYUVPlaneInfo() local
443 GetAlignedWidthAndHeight(info, &width, &height); in GetYUVPlaneInfo()
462 GetYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in GetYUVPlaneInfo()
467 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_UBWC, ycbcr); in GetYUVPlaneInfo()
469 GetYuvUbwcInterlacedSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_UBWC, ycbcr); in GetYUVPlaneInfo()
475 GetYuvSPPlaneInfo(hnd->base, width, height, 2, ycbcr); in GetYUVPlaneInfo()
479 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_BPP10_UBWC, ycbcr); in GetYUVPlaneInfo()
484 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_P010_UBWC, ycbcr); in GetYUVPlaneInfo()
489 ystride = VENUS_Y_STRIDE(COLOR_FMT_P010, width); in GetYUVPlaneInfo()
490 cstride = VENUS_UV_STRIDE(COLOR_FMT_P010, width); in GetYUVPlaneInfo()
511 GetYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in GetYUVPlaneInfo()
517 ystride = width; in GetYUVPlaneInfo()
518 cstride = ALIGN(width / 2, 16); in GetYUVPlaneInfo()
527 ystride = width * 2; in GetYUVPlaneInfo()
612 void GetYuvUBwcWidthAndHeight(int width, int height, int format, unsigned int *aligned_w, in GetYuvUBwcWidthAndHeight() argument
618 *aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV12_UBWC, width); in GetYuvUBwcWidthAndHeight()
623 *aligned_w = (VENUS_Y_STRIDE(COLOR_FMT_NV12_BPP10_UBWC, width) * 3) / 4; in GetYuvUBwcWidthAndHeight()
628 *aligned_w = (VENUS_Y_STRIDE(COLOR_FMT_P010_UBWC, width) / 2); in GetYuvUBwcWidthAndHeight()
663 unsigned int GetRgbUBwcMetaBufferSize(int width, int height, uint32_t bpp) { in GetRgbUBwcMetaBufferSize() argument
678 meta_width = ALIGN(((width + block_width - 1) / block_width), 64); in GetRgbUBwcMetaBufferSize()
686 unsigned int GetUBwcSize(int width, int height, int format, unsigned int alignedw, in GetUBwcSize() argument
698 size += GetRgbUBwcMetaBufferSize(width, height, bpp); in GetUBwcSize()
703 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_UBWC, width, height); in GetUBwcSize()
706 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_BPP10_UBWC, width, height); in GetUBwcSize()
709 size = VENUS_BUFFER_SIZE(COLOR_FMT_P010_UBWC, width, height); in GetUBwcSize()
741 meta_size = GetRgbUBwcMetaBufferSize(hnd->width, hnd->height, bpp); in GetRgbDataAddress()
757 *stride = hnd->width; in GetCustomDimensions()
767 BufferInfo info(hnd->width, ((hnd->height + 1) >> 1), hnd->format); in GetCustomDimensions()
800 int width = info.width; in GetAlignedWidthAndHeight() local
811 AdrenoMemInfo::GetInstance()->AlignUnCompressedRGB(width, height, format, tile, alignedw, in GetAlignedWidthAndHeight()
818 GetYuvUBwcWidthAndHeight(width, height, format, alignedw, alignedh); in GetAlignedWidthAndHeight()
824 AdrenoMemInfo::GetInstance()->AlignCompressedRGB(width, height, format, alignedw, alignedh); in GetAlignedWidthAndHeight()
829 int aligned_w = width; in GetAlignedWidthAndHeight()
841 aligned_w = ALIGN(width, alignment); in GetAlignedWidthAndHeight()
844 aligned_w = ALIGN(width, alignment); in GetAlignedWidthAndHeight()
849 aligned_w = ALIGN(width, 16); in GetAlignedWidthAndHeight()
852 aligned_w = ALIGN(width * 12 / 8, 16); in GetAlignedWidthAndHeight()
860 aligned_w = ALIGN(width * 10 / 8, raw10_alignment); in GetAlignedWidthAndHeight()
864 aligned_w = ALIGN(width, 16); in GetAlignedWidthAndHeight()
867 aligned_w = ALIGN(width, 128); in GetAlignedWidthAndHeight()
875 aligned_w = ALIGN(width, 16); in GetAlignedWidthAndHeight()
878 aligned_w = INT(VENUS_Y_STRIDE(COLOR_FMT_P010, width) / 2); in GetAlignedWidthAndHeight()
883 aligned_w = INT(VENUS_Y_STRIDE(COLOR_FMT_NV12, width)); in GetAlignedWidthAndHeight()
887 aligned_w = INT(VENUS_Y_STRIDE(COLOR_FMT_NV21, width)); in GetAlignedWidthAndHeight()
894 aligned_w = ALIGN(width, 64); in GetAlignedWidthAndHeight()
920 stride[0] = static_cast<uint32_t>(hnd->width * 2); in GetBufferLayout()
923 stride[0] = static_cast<uint32_t>(hnd->width * 3); in GetBufferLayout()
937 stride[0] = static_cast<uint32_t>(hnd->width * 4); in GetBufferLayout()
1012 int ret = adreno_mem_info->AdrenoInitMemoryLayout(graphics_metadata->data, info.width, in GetGpuResourceSizeAndDimensions()