Commit b44e9355 authored by Tomaz Canabrava's avatar Tomaz Canabrava Committed by Daniel Agar

Cleanup glPainter

parent 3807cb6b
......@@ -67,26 +67,26 @@ OpenGLSurfacePainter::OpenGLSurfacePainter()
//static
QSet<GstVideoFormat> OpenGLSurfacePainter::supportedPixelFormats()
{
return QSet<GstVideoFormat>()
return QSet<GstVideoFormat>({
//also handled by the generic painter on LE
<< GST_VIDEO_FORMAT_BGRA
<< GST_VIDEO_FORMAT_BGRx
GST_VIDEO_FORMAT_BGRA,
GST_VIDEO_FORMAT_BGRx,
//also handled by the generic painter on BE
<< GST_VIDEO_FORMAT_ARGB
<< GST_VIDEO_FORMAT_xRGB
GST_VIDEO_FORMAT_ARGB,
GST_VIDEO_FORMAT_xRGB,
//also handled by the generic painter everywhere
<< GST_VIDEO_FORMAT_RGB
<< GST_VIDEO_FORMAT_RGB16
GST_VIDEO_FORMAT_RGB,
GST_VIDEO_FORMAT_RGB16,
//not handled by the generic painter
<< GST_VIDEO_FORMAT_BGR
<< GST_VIDEO_FORMAT_v308
<< GST_VIDEO_FORMAT_AYUV
<< GST_VIDEO_FORMAT_YV12
<< GST_VIDEO_FORMAT_I420
;
GST_VIDEO_FORMAT_BGR,
GST_VIDEO_FORMAT_v308,
GST_VIDEO_FORMAT_AYUV,
GST_VIDEO_FORMAT_YV12,
GST_VIDEO_FORMAT_I420,
});
}
void OpenGLSurfacePainter::updateColors(int brightness, int contrast, int hue, int saturation)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment