Lines Matching refs:format

160         int f = hnd->format;
187 bool isUncompressedRgbFormat(int format)
191 switch (format)
222 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format,
225 bool ubwc_enabled = isUBwcEnabled(format, usage);
228 if (isUncompressedRgbFormat(format) == true) {
230 getGpuAlignedWidthHeight(width, height, format, tileEnabled, aligned_w, aligned_h);
232 getYuvUBwcWidthHeight(width, height, format, aligned_w, aligned_h);
237 switch (format)
326 width, height, format, 0,raster_mode, padding_threshold,
339 void AdrenoMemInfo::getGpuAlignedWidthHeight(int width, int height, int format,
355 switch(format)
394 int AdrenoMemInfo::isUBWCSupportedByGPU(int format)
398 ADRENOPIXELFORMAT gpu_format = getGpuPixelFormat(format);
433 ALOGE("%s: No map for format: 0x%x", __FUNCTION__, hal_format);
539 unsigned int getSize(int format, int width, int height, int usage,
542 if (isUBwcEnabled(format, usage)) {
543 return getUBwcSize(width, height, format, alignedw, alignedh);
547 switch (format) {
595 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) {
596 ALOGE("w or h is odd for the YV12 format");
616 ALOGE("width is odd for the YUV422_SP format");
631 ALOGE("%s: Buffers with format HAL_PIXEL_FORMAT_BLOB \
671 ALOGE("%s: Unrecognized pixel format: 0x%x", __FUNCTION__, format);
677 unsigned int getBufferSizeAndDimensions(int width, int height, int format,
684 format,
689 size = getSize(format, width, height, 0 /* usage */, alignedw, alignedh);
695 unsigned int getBufferSizeAndDimensions(int width, int height, int format,
702 format,
707 size = getSize(format, width, height, usage, alignedw, alignedh);
761 int format = hnd->format;
768 // Check if UBWC buffer has been rendered in linear format.
770 format = metadata->linearFormat;
782 metadata->bufferDim.sliceHeight, format, usage, width, height);
787 switch (format) {
858 ALOGD("%s: Invalid format passed: 0x%x", __FUNCTION__, format);
867 // Allocate buffer from width, height and format into a
870 int alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage)
879 data.size = getBufferSizeAndDimensions(w, h, format, usage, alignedw,
892 if(isUBwcEnabled(format, usage)) {
897 data.allocType, 0, format,
920 static bool isUBwcFormat(int format)
923 switch(format)
934 static bool isUBwcSupported(int format)
938 switch(format)
955 bool isUBwcEnabled(int format, int usage)
957 // Allow UBWC, if client is using an explicitly defined UBWC pixel format.
958 if (isUBwcFormat(format))
967 // support the format. OR if a non-OpenGL client like Rotator, sets UBWC
968 // usage flag and MDP supports the format.
969 if ((usage & GRALLOC_USAGE_PRIVATE_ALLOC_UBWC) && isUBwcSupported(format)) {
973 enable = AdrenoMemInfo::getInstance().isUBWCSupportedByGPU(format);
984 static void getYuvUBwcWidthHeight(int width, int height, int format,
987 switch (format)
1006 ALOGE("%s: Unsupported pixel format: 0x%x", __FUNCTION__, format);
1063 static unsigned int getUBwcSize(int width, int height, int format,
1067 switch (format) {
1091 ALOGE("%s: Unsupported pixel format: 0x%x", __FUNCTION__, format);
1102 if (!isUncompressedRgbFormat(hnd->format)) {
1114 switch (hnd->format) {
1125 ALOGE("%s:Unsupported RGB format: 0x%x", __FUNCTION__, hnd->format);
1144 switch (hnd->format) {
1186 switch (hnd->format) {
1213 ALOGW("%s: Unsupported format %s", __FUNCTION__,
1214 qdutils::GetHALPixelFormatString(hnd->format));