Lines Matching refs:format

167         int f = hnd->format;  in getAlignedWidthAndHeight()
182 bool isUncompressedRgbFormat(int format) in isUncompressedRgbFormat() argument
186 switch (format) in isUncompressedRgbFormat()
217 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument
220 bool ubwc_enabled = isUBwcEnabled(format, usage); in getAlignedWidthAndHeight()
223 if (isUncompressedRgbFormat(format) == true) { in getAlignedWidthAndHeight()
224 int tileEnabled = ubwc_enabled || isMacroTileEnabled(format, usage); in getAlignedWidthAndHeight()
225 getGpuAlignedWidthHeight(width, height, format, tileEnabled, aligned_w, aligned_h); in getAlignedWidthAndHeight()
227 getYuvUBwcWidthHeight(width, height, format, aligned_w, aligned_h); in getAlignedWidthAndHeight()
232 switch (format) in getAlignedWidthAndHeight()
311 width, height, format, 0,raster_mode, padding_threshold, in getAlignedWidthAndHeight()
324 void AdrenoMemInfo::getGpuAlignedWidthHeight(int width, int height, int format, in getGpuAlignedWidthHeight() argument
340 switch(format) in getGpuAlignedWidthHeight()
382 int AdrenoMemInfo::isUBWCSupportedByGPU(int format) in isUBWCSupportedByGPU() argument
386 ADRENOPIXELFORMAT gpu_format = getGpuPixelFormat(format); in isUBWCSupportedByGPU()
520 bool isMacroTileEnabled(int format, int usage) in isMacroTileEnabled() argument
528 switch(format) in isMacroTileEnabled()
553 unsigned int getSize(int format, int width, int height, int usage, in getSize() argument
556 if (isUBwcEnabled(format, usage)) { in getSize()
557 return getUBwcSize(width, height, format, alignedw, alignedh); in getSize()
561 switch (format) { in getSize()
605 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) { in getSize()
677 ALOGE("%s: Unrecognized pixel format: 0x%x", __FUNCTION__, format); in getSize()
683 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
690 format, in getBufferSizeAndDimensions()
695 size = getSize(format, width, height, 0 /* usage */, alignedw, alignedh); in getBufferSizeAndDimensions()
701 unsigned int getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
708 format, in getBufferSizeAndDimensions()
713 size = getSize(format, width, height, usage, alignedw, alignedh); in getBufferSizeAndDimensions()
719 void getBufferAttributes(int width, int height, int format, int usage, in getBufferAttributes() argument
722 tiled = isUBwcEnabled(format, usage) || isMacroTileEnabled(format, usage); in getBufferAttributes()
726 format, in getBufferAttributes()
730 size = getSize(format, width, height, usage, alignedw, alignedh); in getBufferAttributes()
782 int format = hnd->format; in getYUVPlaneInfo() local
791 format = metadata->linearFormat; in getYUVPlaneInfo()
803 metadata->bufferDim.sliceHeight, format, usage, width, height); in getYUVPlaneInfo()
808 switch (format) { in getYUVPlaneInfo()
861 ALOGD("%s: Invalid format passed: 0x%x", __FUNCTION__, format); in getYUVPlaneInfo()
873 int alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) in alloc_buffer() argument
882 data.size = getBufferSizeAndDimensions(w, h, format, usage, alignedw, in alloc_buffer()
895 if(isUBwcEnabled(format, usage)) { in alloc_buffer()
900 data.allocType, 0, format, in alloc_buffer()
923 static bool isUBwcFormat(int format) in isUBwcFormat() argument
926 switch(format) in isUBwcFormat()
936 static bool isUBwcSupported(int format) in isUBwcSupported() argument
940 switch(format) in isUBwcSupported()
957 bool isUBwcEnabled(int format, int usage) in isUBwcEnabled() argument
960 if (isUBwcFormat(format)) in isUBwcEnabled()
976 if ((usage & GRALLOC_USAGE_PRIVATE_ALLOC_UBWC) && isUBwcSupported(format)) { in isUBwcEnabled()
980 enable = AdrenoMemInfo::getInstance().isUBWCSupportedByGPU(format); in isUBwcEnabled()
991 static void getYuvUBwcWidthHeight(int width, int height, int format, in getYuvUBwcWidthHeight() argument
994 switch (format) in getYuvUBwcWidthHeight()
1007 ALOGE("%s: Unsupported pixel format: 0x%x", __FUNCTION__, format); in getYuvUBwcWidthHeight()
1064 static unsigned int getUBwcSize(int width, int height, int format, in getUBwcSize() argument
1068 switch (format) { in getUBwcSize()
1089 ALOGE("%s: Unsupported pixel format: 0x%x", __FUNCTION__, format); in getUBwcSize()
1100 if (!isUncompressedRgbFormat(hnd->format)) { in getRgbDataAddress()
1111 switch (hnd->format) { in getRgbDataAddress()
1120 ALOGE("%s:Unsupported RGB format: 0x%x", __FUNCTION__, hnd->format); in getRgbDataAddress()