Commit 3807cb6b authored by Tomaz Canabrava's avatar Tomaz Canabrava Committed by Daniel Agar

Return Supported pixel formats correctly

parent d890252c
...@@ -32,17 +32,17 @@ GenericSurfacePainter::GenericSurfacePainter() ...@@ -32,17 +32,17 @@ GenericSurfacePainter::GenericSurfacePainter()
//static //static
QSet<GstVideoFormat> GenericSurfacePainter::supportedPixelFormats() QSet<GstVideoFormat> GenericSurfacePainter::supportedPixelFormats()
{ {
return QSet<GstVideoFormat>() return QSet<GstVideoFormat>({
#if Q_BYTE_ORDER == Q_BIG_ENDIAN #if Q_BYTE_ORDER == Q_BIG_ENDIAN
<< GST_VIDEO_FORMAT_ARGB GST_VIDEO_FORMAT_ARGB,
<< GST_VIDEO_FORMAT_xRGB GST_VIDEO_FORMAT_xRGB,
#else #else
<< GST_VIDEO_FORMAT_BGRA GST_VIDEO_FORMAT_BGRA,
<< GST_VIDEO_FORMAT_BGRx GST_VIDEO_FORMAT_BGRx,
#endif #endif
<< GST_VIDEO_FORMAT_RGB GST_VIDEO_FORMAT_RGB,
<< GST_VIDEO_FORMAT_RGB16 GST_VIDEO_FORMAT_RGB16,
; });
} }
void GenericSurfacePainter::init(const BufferFormat &format) void GenericSurfacePainter::init(const BufferFormat &format)
......
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