24 bpp RGB FOURCC code

Nicolas Dufresne nicolas at ndufresne.ca
Thu Jun 15 17:25:16 UTC 2017


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170615/84afd346/attachment.sig>


More information about the gstreamer-devel mailing list