glcompositionoverlay: Add class for managing GstVideoOverlayCompositionOverlay buffers
authorLubosz Sarnecki <lubosz.sarnecki@collabora.co.uk>
Sat, 13 Jun 2015 13:35:47 +0000 (15:35 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:05 +0000 (19:32 +0000)
commit279c2b07b422348c8310b84fb54c6f3e013a9a9b
treef58589e9defdc26ce1e465170c6f48c05bf4142c
parenteb618aaac710b3531cf551702182a9b74e61cdb3
glcompositionoverlay: Add class for managing GstVideoOverlayCompositionOverlay buffers

Add a class to store and manage the OpenGL texture,
vertex buffer and GstVideoOverlayRectangle.
Transforms overlay coordinate space to vertex buffer space with aspect ratios in mind.

= Example Pipelines =

Simple pipeline

gst-launch-1.0 videotestsrc ! \
  textoverlay text="Hello World" font-desc="sans bold 30" ! \
  glimagesink

Display 3 static overlays at different positions

gst-launch-1.0 videotestsrc ! \
  textoverlay text="text1" valignment="top" font-desc="sans bold 30" ! \
  textoverlay text="text2" halignment="right" font-desc="sans bold 30" ! \
  textoverlay text="text3" halignment="left" font-desc="sans bold 30" ! \
  glimagesink

Display subtitle file over testsrc

gst-launch-1.0 videotestsrc ! \
  textoverlay name=foo filesrc location=foo.srt ! subparse ! queue ! foo. foo. ! \
  glimagesink

https://bugzilla.gnome.org/show_bug.cgi?id=745107
gst-libs/gst/gl/Makefile.am
gst-libs/gst/gl/gstgl_fwd.h
gst-libs/gst/gl/gstglcompositionoverlay.c [new file with mode: 0644]
gst-libs/gst/gl/gstglcompositionoverlay.h [new file with mode: 0644]