• Home
  • Raw
  • Download

Lines Matching refs:height

202   int height = descriptor.GetHeight();  in GetSize()  local
207 return GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize()
237 size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize()
244 size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K); in GetSize()
247 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { in GetSize()
273 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height); in GetSize()
276 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height); in GetSize()
280 if (height != 1) { in GetSize()
297 void Allocator::GetBufferSizeAndDimensions(int width, int height, int format, unsigned int *size, in GetBufferSizeAndDimensions() argument
299 BufferDescriptor descriptor = BufferDescriptor(width, height, format); in GetBufferSizeAndDimensions()
312 void Allocator::GetYuvUbwcSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, in GetYuvUbwcSPPlaneInfo() argument
322 y_meta_height = VENUS_Y_META_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
326 y_height = VENUS_Y_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
330 c_meta_height = VENUS_UV_META_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo()
340 void Allocator::GetYuvSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, uint32_t bpp, in GetYuvSPPlaneInfo() argument
346 ycbcr->cb = reinterpret_cast<void *>(base + ystride * UINT(height)); in GetYuvSPPlaneInfo()
347 ycbcr->cr = reinterpret_cast<void *>(base + ystride * UINT(height) + 1); in GetYuvSPPlaneInfo()
356 uint32_t height = UINT(hnd->height); in GetYUVPlaneInfo() local
382 GetAlignedWidthAndHeight(descriptor, &width, &height); in GetYUVPlaneInfo()
394 GetYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in GetYUVPlaneInfo()
398 GetYuvSPPlaneInfo(hnd->base, width, height, 2, ycbcr); in GetYUVPlaneInfo()
402 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_UBWC, ycbcr); in GetYUVPlaneInfo()
407 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_BPP10_UBWC, ycbcr); in GetYUVPlaneInfo()
419 GetYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr); in GetYUVPlaneInfo()
428 ycbcr->cr = reinterpret_cast<void *>(hnd->base + ystride * height); in GetYUVPlaneInfo()
429 ycbcr->cb = reinterpret_cast<void *>(hnd->base + ystride * height + cstride * height / 2); in GetYUVPlaneInfo()
633 void Allocator::GetYuvUBwcWidthAndHeight(int width, int height, int format, unsigned int *aligned_w, in GetYuvUBwcWidthAndHeight() argument
640 *aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_UBWC, height); in GetYuvUBwcWidthAndHeight()
645 *aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12_BPP10_UBWC, height); in GetYuvUBwcWidthAndHeight()
679 unsigned int Allocator::GetRgbUBwcMetaBufferSize(int width, int height, uint32_t bpp) { in GetRgbUBwcMetaBufferSize() argument
691 meta_height = ALIGN(((height + block_height - 1) / block_height), 16); in GetRgbUBwcMetaBufferSize()
702 unsigned int Allocator::GetUBwcSize(int width, int height, int format, unsigned int alignedw, in GetUBwcSize() argument
714 size += GetRgbUBwcMetaBufferSize(width, height, bpp); in GetUBwcSize()
719 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_UBWC, width, height); in GetUBwcSize()
722 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12_BPP10_UBWC, width, height); in GetUBwcSize()
754 meta_size = GetRgbUBwcMetaBufferSize(hnd->width, hnd->height, bpp); in GetRgbDataAddress()
769 int height = descriptor.GetHeight(); in GetAlignedWidthAndHeight() local
779 adreno_helper_->AlignUnCompressedRGB(width, height, format, tile, alignedw, alignedh); in GetAlignedWidthAndHeight()
784 GetYuvUBwcWidthAndHeight(width, height, format, alignedw, alignedh); in GetAlignedWidthAndHeight()
789 adreno_helper_->AlignCompressedRGB(width, height, format, alignedw, alignedh); in GetAlignedWidthAndHeight()
794 int aligned_h = height; in GetAlignedWidthAndHeight()
833 aligned_h = INT(VENUS_Y_SCANLINES(COLOR_FMT_NV12, height)); in GetAlignedWidthAndHeight()
837 aligned_h = INT(VENUS_Y_SCANLINES(COLOR_FMT_NV21, height)); in GetAlignedWidthAndHeight()
844 aligned_h = ALIGN(height, 64); in GetAlignedWidthAndHeight()