Lines Matching refs:height
241 int height = info.height; 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()
279 size += ALIGN(alignedw * (unsigned int) ALIGN(height / 2, 32), SIZE_8K); in GetSize()
282 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { in GetSize()
299 height); 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()
322 if (height != 1) { in GetSize()
358 void GetYuvUbwcSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, int color_format, in GetYuvUbwcSPPlaneInfo() argument
368 y_meta_height = VENUS_Y_META_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
372 y_height = VENUS_Y_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
376 c_meta_height = VENUS_UV_META_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
386 void GetYuvUbwcInterlacedSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, in GetYuvUbwcInterlacedSPPlaneInfo() argument
396 height = (height + 1) >> 1; in GetYuvUbwcInterlacedSPPlaneInfo()
398 uv_height = VENUS_UV_SCANLINES(color_format, INT(height)); 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
415 ycbcr->cb = reinterpret_cast<void *>(base + ystride * UINT(height)); in GetYuvSPPlaneInfo()
416 ycbcr->cr = reinterpret_cast<void *>(base + ystride * UINT(height) + 1); in GetYuvSPPlaneInfo()
425 uint32_t height = UINT(hnd->height); 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()
493 reinterpret_cast<void *>(hnd->base + ystride * VENUS_Y_SCANLINES(COLOR_FMT_P010, height)); in GetYUVPlaneInfo()
495 ystride * VENUS_Y_SCANLINES(COLOR_FMT_P010, height) + 1); in GetYUVPlaneInfo()
511 GetYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in GetYUVPlaneInfo()
520 ycbcr->cr = reinterpret_cast<void *>(hnd->base + ystride * height); in GetYUVPlaneInfo()
521 ycbcr->cb = reinterpret_cast<void *>(hnd->base + ystride * height + cstride * height / 2); in GetYUVPlaneInfo()
612 void GetYuvUBwcWidthAndHeight(int width, int height, int format, unsigned int *aligned_w, in GetYuvUBwcWidthAndHeight() argument
619 *aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_UBWC, height); in GetYuvUBwcWidthAndHeight()
624 *aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_BPP10_UBWC, height); in GetYuvUBwcWidthAndHeight()
629 *aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_P010_UBWC, height); in GetYuvUBwcWidthAndHeight()
663 unsigned int GetRgbUBwcMetaBufferSize(int width, int height, uint32_t bpp) { in GetRgbUBwcMetaBufferSize() argument
675 meta_height = ALIGN(((height + block_height - 1) / block_height), 16); 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()
753 void GetCustomDimensions(private_handle_t *hnd, int *stride, int *height) { in GetCustomDimensions() argument
758 *height = hnd->height; in GetCustomDimensions()
761 *height = buffer_dim.sliceHeight; in GetCustomDimensions()
767 BufferInfo info(hnd->width, ((hnd->height + 1) >> 1), hnd->format); in GetCustomDimensions()
770 *height = static_cast<int>(alignedh * 2); in GetCustomDimensions()
801 int height = info.height; 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()
830 int aligned_h = height; in GetAlignedWidthAndHeight()
879 aligned_h = INT(VENUS_Y_SCANLINES(COLOR_FMT_P010, height)); in GetAlignedWidthAndHeight()
884 aligned_h = INT(VENUS_Y_SCANLINES(COLOR_FMT_NV12, height)); in GetAlignedWidthAndHeight()
888 aligned_h = INT(VENUS_Y_SCANLINES(COLOR_FMT_NV21, height)); in GetAlignedWidthAndHeight()
895 aligned_h = ALIGN(height, 64); in GetAlignedWidthAndHeight()
1013 info.height, info.layer_count, /* depth */ in GetGpuResourceSizeAndDimensions()