mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
video: add define for video formats supported by the overlay blending code
For use in template caps by overlay elements that use video_overlay_composition_blend(). API: GST_VIDEO_OVERLAY_COMPOSITION_BLEND_FORMATS https://bugzilla.gnome.org/show_bug.cgi?id=665751
This commit is contained in:
parent
20d2a60977
commit
0b329f2c22
3 changed files with 19 additions and 0 deletions
|
@ -2293,6 +2293,8 @@ gst_video_overlay_composition_get_rectangle
|
|||
gst_video_overlay_composition_get_seqnum
|
||||
gst_video_overlay_composition_copy
|
||||
gst_video_overlay_composition_make_writable
|
||||
|
||||
GST_VIDEO_OVERLAY_COMPOSITION_BLEND_FORMATS
|
||||
gst_video_overlay_composition_blend
|
||||
|
||||
<SUBSECTION composition-set-get>
|
||||
|
|
|
@ -438,6 +438,10 @@ gst_video_overlay_rectangle_needs_scaling (GstVideoOverlayRectangle * r)
|
|||
* contained in @video_buf. The data in @video_buf must be writable and
|
||||
* mapped appropriately.
|
||||
*/
|
||||
/* FIXME: formats with more than 8 bit per component which get unpacked into
|
||||
* ARGB64 or AYUV64 (such as v210, v216, UYVP, GRAY16_LE and GRAY16_BE)
|
||||
* are not supported yet by the code in video-blend.c.
|
||||
*/
|
||||
gboolean
|
||||
gst_video_overlay_composition_blend (GstVideoOverlayComposition * comp,
|
||||
GstVideoFrame * video_buf)
|
||||
|
|
|
@ -119,6 +119,19 @@ typedef enum {
|
|||
*/
|
||||
#define GST_VIDEO_OVERLAY_COMPOSITION_FORMAT_YUV GST_VIDEO_FORMAT_AYUV
|
||||
|
||||
/**
|
||||
* GST_VIDEO_OVERLAY_COMPOSITION_BLEND_FORMATS:
|
||||
*
|
||||
* Video formats supported by gst_video_overlay_composition_blend(), for
|
||||
* use in overlay elements' pad template caps.
|
||||
*
|
||||
* Since: 1.2
|
||||
*/
|
||||
#define GST_VIDEO_OVERLAY_COMPOSITION_BLEND_FORMATS \
|
||||
"{ BGRx, RGBx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR," \
|
||||
" I420, YV12, AYUV, YUY2, UYVY, v308, Y41B, Y42B, Y444," \
|
||||
" NV12, NV21, A420, YUV9, YVU9, IYU1, GRAY8 }"
|
||||
|
||||
GType gst_video_overlay_rectangle_get_type (void);
|
||||
|
||||
GstVideoOverlayRectangle * gst_video_overlay_rectangle_new_raw (GstBuffer * pixels,
|
||||
|
|
Loading…
Reference in a new issue