Lines Matching refs:format

200   int format = descriptor.GetFormat();  in GetSize()  local
206 if (IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetSize()
207 return GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize()
210 if (IsUncompressedRGBFormat(format)) { in GetSize()
211 uint32_t bpp = GetBppForUncompressedRGB(format); in GetSize()
216 if (IsCompressedRGBFormat(format)) { in GetSize()
222 switch (format) { in GetSize()
247 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { in GetSize()
290 ALOGE("%s: Unrecognized pixel format: 0x%x", __FUNCTION__, format); 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()
357 int format = hnd->format; in GetYUVPlaneInfo() local
367 format = linear_format; in GetYUVPlaneInfo()
380 BufferDescriptor(buffer_dim.sliceWidth, buffer_dim.sliceHeight, format, in GetYUVPlaneInfo()
387 switch (format) { in GetYUVPlaneInfo()
440 ALOGD("%s: Invalid format passed: 0x%x", __FUNCTION__, format); in GetYUVPlaneInfo()
448 gralloc1_consumer_usage_t cons_usage, int format) { in GetImplDefinedFormat() argument
449 int gr_format = format; in GetImplDefinedFormat()
453 if (format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED || in GetImplDefinedFormat()
454 format == HAL_PIXEL_FORMAT_YCbCr_420_888) { in GetImplDefinedFormat()
467 if (format == HAL_PIXEL_FORMAT_YCbCr_420_888) { in GetImplDefinedFormat()
475 } else if (format == HAL_PIXEL_FORMAT_YCbCr_420_888) { in GetImplDefinedFormat()
486 bool Allocator::IsUBwcFormat(int format) { in IsUBwcFormat() argument
487 switch (format) { in IsUBwcFormat()
495 bool Allocator::IsUBwcSupported(int format) { in IsUBwcSupported() argument
497 switch (format) { in IsUBwcSupported()
601 bool Allocator::IsUBwcEnabled(int format, gralloc1_producer_usage_t prod_usage, in IsUBwcEnabled() argument
604 if (IsUBwcFormat(format)) { in IsUBwcEnabled()
616 if ((prod_usage & GRALLOC1_PRODUCER_USAGE_PRIVATE_ALLOC_UBWC) && IsUBwcSupported(format)) { in IsUBwcEnabled()
621 enable = adreno_helper_->IsUBWCSupportedByGPU(format); in IsUBwcEnabled()
633 void Allocator::GetYuvUBwcWidthAndHeight(int width, int height, int format, unsigned int *aligned_w, in GetYuvUBwcWidthAndHeight() argument
635 switch (format) { in GetYuvUBwcWidthAndHeight()
648 ALOGE("%s: Unsupported pixel format: 0x%x", __FUNCTION__, format); in GetYuvUBwcWidthAndHeight()
702 unsigned int Allocator::GetUBwcSize(int width, int height, int format, unsigned int alignedw, in GetUBwcSize() argument
706 switch (format) { in GetUBwcSize()
712 bpp = GetBppForUncompressedRGB(format); in GetUBwcSize()
725 ALOGE("%s: Unsupported pixel format: 0x%x", __FUNCTION__, format); in GetUBwcSize()
736 if (!gralloc1::IsUncompressedRGBFormat(hnd->format)) { in GetRgbDataAddress()
747 uint32_t bpp = GetBppForUncompressedRGB(hnd->format); in GetRgbDataAddress()
748 switch (hnd->format) { in GetRgbDataAddress()
757 ALOGE("%s:Unsupported RGB format: 0x%x", __FUNCTION__, hnd->format); in GetRgbDataAddress()
770 int format = descriptor.GetFormat(); in GetAlignedWidthAndHeight() local
775 bool ubwc_enabled = IsUBwcEnabled(format, prod_usage, cons_usage); in GetAlignedWidthAndHeight()
778 if (IsUncompressedRGBFormat(format)) { in GetAlignedWidthAndHeight()
779 adreno_helper_->AlignUnCompressedRGB(width, height, format, tile, alignedw, alignedh); in GetAlignedWidthAndHeight()
784 GetYuvUBwcWidthAndHeight(width, height, format, alignedw, alignedh); in GetAlignedWidthAndHeight()
788 if (IsCompressedRGBFormat(format)) { in GetAlignedWidthAndHeight()
789 adreno_helper_->AlignCompressedRGB(width, height, format, alignedw, alignedh); in GetAlignedWidthAndHeight()
798 switch (format) { in GetAlignedWidthAndHeight()