Lines Matching refs:height
200 int height = descriptor.GetHeight(); in GetSize() local
205 return GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize()
235 size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize()
242 size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K); in GetSize()
245 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { in GetSize()
271 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height); in GetSize()
274 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height); in GetSize()
278 if (height != 1) { in GetSize()
295 void Allocator::GetBufferSizeAndDimensions(int width, int height, int format, unsigned int *size, in GetBufferSizeAndDimensions() argument
297 BufferDescriptor descriptor = BufferDescriptor(width, height, format); in GetBufferSizeAndDimensions()
310 void Allocator::GetYuvUbwcSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, in GetYuvUbwcSPPlaneInfo() argument
320 y_meta_height = VENUS_Y_META_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
324 y_height = VENUS_Y_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
328 c_meta_height = VENUS_UV_META_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
338 void Allocator::GetYuvSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, uint32_t bpp, in GetYuvSPPlaneInfo() argument
344 ycbcr->cb = reinterpret_cast<void *>(base + ystride * UINT(height)); in GetYuvSPPlaneInfo()
345 ycbcr->cr = reinterpret_cast<void *>(base + ystride * UINT(height) + 1); in GetYuvSPPlaneInfo()
354 uint32_t height = UINT(hnd->height); in GetYUVPlaneInfo() local
380 GetAlignedWidthAndHeight(descriptor, &width, &height); in GetYUVPlaneInfo()
392 GetYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in GetYUVPlaneInfo()
396 GetYuvSPPlaneInfo(hnd->base, width, height, 2, ycbcr); in GetYUVPlaneInfo()
400 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_UBWC, ycbcr); in GetYUVPlaneInfo()
405 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_BPP10_UBWC, ycbcr); in GetYUVPlaneInfo()
417 GetYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in GetYUVPlaneInfo()
426 ycbcr->cr = reinterpret_cast<void *>(hnd->base + ystride * height); in GetYUVPlaneInfo()
427 ycbcr->cb = reinterpret_cast<void *>(hnd->base + ystride * height + cstride * height / 2); in GetYUVPlaneInfo()
632 void Allocator::GetYuvUBwcWidthAndHeight(int width, int height, int format, unsigned int *aligned_w, in GetYuvUBwcWidthAndHeight() argument
639 *aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_UBWC, height); in GetYuvUBwcWidthAndHeight()
644 *aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_BPP10_UBWC, height); in GetYuvUBwcWidthAndHeight()
678 unsigned int Allocator::GetRgbUBwcMetaBufferSize(int width, int height, uint32_t bpp) { in GetRgbUBwcMetaBufferSize() argument
690 meta_height = ALIGN(((height + block_height - 1) / block_height), 16); in GetRgbUBwcMetaBufferSize()
701 unsigned int Allocator::GetUBwcSize(int width, int height, int format, unsigned int alignedw, in GetUBwcSize() argument
713 size += GetRgbUBwcMetaBufferSize(width, height, bpp); in GetUBwcSize()
718 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_UBWC, width, height); in GetUBwcSize()
721 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_BPP10_UBWC, width, height); in GetUBwcSize()
753 meta_size = GetRgbUBwcMetaBufferSize(hnd->width, hnd->height, bpp); in GetRgbDataAddress()
768 int height = descriptor.GetHeight(); in GetAlignedWidthAndHeight() local
778 adreno_helper_->AlignUnCompressedRGB(width, height, format, tile, alignedw, alignedh); in GetAlignedWidthAndHeight()
783 GetYuvUBwcWidthAndHeight(width, height, format, alignedw, alignedh); in GetAlignedWidthAndHeight()
788 adreno_helper_->AlignCompressedRGB(width, height, format, alignedw, alignedh); in GetAlignedWidthAndHeight()
793 int aligned_h = height; in GetAlignedWidthAndHeight()
832 aligned_h = INT(VENUS_Y_SCANLINES(COLOR_FMT_NV12, height)); in GetAlignedWidthAndHeight()
836 aligned_h = INT(VENUS_Y_SCANLINES(COLOR_FMT_NV21, height)); in GetAlignedWidthAndHeight()
843 aligned_h = ALIGN(height, 64); in GetAlignedWidthAndHeight()