• Home
  • Raw
  • Download

Lines Matching refs:format

140 bool isUncompressedRgbFormat(int format)  in isUncompressedRgbFormat()  argument
144 switch (format) in isUncompressedRgbFormat()
165 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument
170 if (isUncompressedRgbFormat(format) == true) { in getAlignedWidthAndHeight()
171 int tileEnabled = isMacroTileEnabled(format, usage); in getAlignedWidthAndHeight()
173 height, format, tileEnabled, aligned_w, aligned_h); in getAlignedWidthAndHeight()
177 if (isUBwcEnabled(format, usage)) { in getAlignedWidthAndHeight()
178 getUBwcWidthAndHeight(width, height, format, aligned_w, aligned_h); in getAlignedWidthAndHeight()
184 switch (format) in getAlignedWidthAndHeight()
253 width, height, format, 0,raster_mode, padding_threshold, in getAlignedWidthAndHeight()
265 void AdrenoMemInfo::getGpuAlignedWidthHeight(int width, int height, int format, in getGpuAlignedWidthHeight() argument
281 switch(format) in getGpuAlignedWidthHeight()
319 int AdrenoMemInfo::isUBWCSupportedByGPU(int format) in isUBWCSupportedByGPU() argument
323 ADRENOPIXELFORMAT gpu_format = getGpuPixelFormat(format); in isUBWCSupportedByGPU()
455 bool isMacroTileEnabled(int format, int usage) in isMacroTileEnabled() argument
464 switch(format) in isMacroTileEnabled()
488 unsigned int getSize(int format, int width, int height, int usage, in getSize() argument
491 if (isUBwcEnabled(format, usage)) { in getSize()
492 return getUBwcSize(width, height, format, alignedw, alignedh); in getSize()
496 switch (format) { in getSize()
527 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) { in getSize()
595 ALOGE("Unrecognized pixel format: 0x%x", __FUNCTION__, format); in getSize()
601 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
608 format, in getBufferSizeAndDimensions()
613 size = getSize(format, width, height, 0 /* usage */, alignedw, alignedh); in getBufferSizeAndDimensions()
619 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
626 format, in getBufferSizeAndDimensions()
631 size = getSize(format, width, height, usage, alignedw, alignedh); in getBufferSizeAndDimensions()
637 void getBufferAttributes(int width, int height, int format, int usage, in getBufferAttributes() argument
640 tileEnabled = isMacroTileEnabled(format, usage); in getBufferAttributes()
644 format, in getBufferAttributes()
648 size = getSize(format, width, height, usage, alignedw, alignedh); in getBufferAttributes()
659 switch (hnd->format) { in getYUVPlaneInfo()
708 hnd->format); in getYUVPlaneInfo()
720 int alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) in alloc_buffer() argument
729 data.size = getBufferSizeAndDimensions(w, h, format, usage, alignedw, in alloc_buffer()
743 data.allocType, 0, format, in alloc_buffer()
766 static bool isUBwcFormat(int format) in isUBwcFormat() argument
769 switch(format) in isUBwcFormat()
778 static bool isUBwcSupported(int format) in isUBwcSupported() argument
781 switch(format) in isUBwcSupported()
793 bool isUBwcEnabled(int format, int usage) in isUBwcEnabled() argument
795 if (isUBwcFormat(format) || in isUBwcEnabled()
796 ((usage & GRALLOC_USAGE_PRIVATE_ALLOC_UBWC) && isUBwcSupported(format))) in isUBwcEnabled()
799 if (AdrenoMemInfo::getInstance().isUBWCSupportedByGPU(format) && in isUBwcEnabled()
808 static void getUBwcWidthAndHeight(int width, int height, int format, in getUBwcWidthAndHeight() argument
811 switch (format) in getUBwcWidthAndHeight()
820 ALOGE("%s: Unsupported pixel format: 0x%x", __FUNCTION__, format); in getUBwcWidthAndHeight()
877 static unsigned int getUBwcSize(int width, int height, int format, in getUBwcSize() argument
881 switch (format) { in getUBwcSize()
896 ALOGE("%s: Unsupported pixel format: 0x%x", __FUNCTION__, format); in getUBwcSize()