• Home
  • Raw
  • Download

Lines Matching refs:height

182   int height = info.height;  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()
226 size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K); in GetSize()
229 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 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()
263 if (height != 1) { in GetSize()
286 void GetYuvUbwcSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, in GetYuvUbwcSPPlaneInfo() argument
296 y_meta_height = VENUS_Y_META_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
300 y_height = VENUS_Y_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
304 c_meta_height = VENUS_UV_META_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
314 void GetYuvUbwcInterlacedSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, in GetYuvUbwcInterlacedSPPlaneInfo() argument
324 height = (height + 1) >> 1; in GetYuvUbwcInterlacedSPPlaneInfo()
326 uv_height = VENUS_UV_SCANLINES(color_format, INT(height)); 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
342 ycbcr->cb = reinterpret_cast<void *>(base + ystride * UINT(height)); in GetYuvSPPlaneInfo()
343 ycbcr->cr = reinterpret_cast<void *>(base + ystride * UINT(height) + 1); in GetYuvSPPlaneInfo()
352 uint32_t height = UINT(hnd->height); 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()
443 ycbcr->cr = reinterpret_cast<void *>(hnd->base + ystride * height); in GetYUVPlaneInfo()
444 ycbcr->cb = reinterpret_cast<void *>(hnd->base + ystride * height + cstride * height / 2); in GetYUVPlaneInfo()
530 void GetYuvUBwcWidthAndHeight(int width, int height, int format, unsigned int *aligned_w, in GetYuvUBwcWidthAndHeight() argument
537 *aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_UBWC, height); in GetYuvUBwcWidthAndHeight()
542 *aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_BPP10_UBWC, height); in GetYuvUBwcWidthAndHeight()
547 *aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_P010_UBWC, height); in GetYuvUBwcWidthAndHeight()
581 unsigned int GetRgbUBwcMetaBufferSize(int width, int height, uint32_t bpp) { in GetRgbUBwcMetaBufferSize() argument
593 meta_height = ALIGN(((height + block_height - 1) / block_height), 16); 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()
674 int height = info.height; 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()
704 int aligned_h = height; in GetAlignedWidthAndHeight()
748 aligned_h = INT(VENUS_Y_SCANLINES(COLOR_FMT_NV12, height)); in GetAlignedWidthAndHeight()
752 aligned_h = INT(VENUS_Y_SCANLINES(COLOR_FMT_NV21, height)); in GetAlignedWidthAndHeight()
759 aligned_h = ALIGN(height, 64); in GetAlignedWidthAndHeight()