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-base-libs-gstvideo.html#GstVideoFormat
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel