24 bpp RGB FOURCC code

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

24 bpp RGB FOURCC code

twallis
Hello,

I'm working on a plugin, and I'm running into some GST_MAKE_FOURCC critical warnings.  I'd like my plugin output to be in 8:8:8 RGB format, and to accomplish this I've been using the following code to set the cap:

GST_MAKE_FOURCC('R', 'G', 'B', '3')

based on this post: here

Given that this appears to be giving me the warning: "CRITICAL **: gst_video_format_to_string: assertion 'format != GST_VIDEO_FORMAT_UNKNOWN' failed"  I think that I'm using the wrong FOURCC.  

Is there a FOURCC that GStreamer uses that represents the simple 24bpp RGB format?
Reply | Threaded
Open this post in threaded view
|

Re: 24 bpp RGB FOURCC code

Tim Müller
On Thu, 2017-06-15 at 07:39 -0700, twallis wrote:

Hi,

I'd like my plugin output to be in 8:8:8 RGB format, ..
GST_MAKE_FOURCC('R', 'G', 'B', '3') 
>
Is there a FOURCC that GStreamer uses that represents the simple 24bpp RGB format?

Here's a list of supported formats:


Cheers
-Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference!
21-22 October 2017 in Prague, Czech Republic

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: 24 bpp RGB FOURCC code

Nicolas Dufresne-5
In reply to this post by twallis
Le jeudi 15 juin 2017 à 07:39 -0700, twallis a écrit :

> I'm working on a plugin, and I'm running into some GST_MAKE_FOURCC
> critical
> warnings.  I'd like my plugin output to be in 8:8:8 RGB format, and
> to
> accomplish this I've been using the following code to set the cap:
>
> GST_MAKE_FOURCC('R', 'G', 'B', '3') 
>
> based on this post:  here <http://wiki.oz9aec.net/index.php/Pixel_for
> mats>  
>
> Given that this appears to be giving me the warning: "CRITICAL **:
> gst_video_format_to_string: assertion 'format !=
> GST_VIDEO_FORMAT_UNKNOWN'
> failed"  I think that I'm using the wrong FOURCC.  
>
> Is there a FOURCC that GStreamer uses that represents the simple
> 24bpp RGB
> format?
GStreamer does not rely on fourcc for pixel formats but on an fixed
enumeration. Fourcc have no strict standard surrounding it. Follow link
[1] for the complete list of formats. 24bit packed RGB (no padding) is
expressed by GST_VIDEO_FORMAT_RGB or GST_VIDEO_FORMAT_BGR. We still
have this helper macro to create fourcc, since it may be useful when
integrating other stack using such method. Fourccs remain specific to
each application due to the lack of standard.

regards,
Nicolas

[1] https://developer.gnome.org/gst-plugins-libs/stable/gst-plugins-bas
e-libs-gstvideo.html#GstVideoFormat
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 24 bpp RGB FOURCC code

twallis
Excellent, thank you very much!