summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-11-12 14:59:35 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-12-05 15:37:02 +0000
commit6630236af4e7ab3dfbce2265c7ad7ff9b59c302c (patch)
treed7e1b3469c0190d341335d91bc9237128d61b674 /win32
parenta7a3f969b306c1747972f5e662fd4b186cd6ecaa (diff)
video: add video overlay composition API for subtitles
Basic API to attach overlay rectangles to buffers, or blend them directly onto raw video buffers. To be used primarily for things like subtitles or logo overlays, not meant to replace videomixer. Allows us to associate subtitle overlays with non-raw video surface buffers, so that subtitles are not lost and can instead be rendered later when those surfaces are displayed or converted, whilst re-using all the existing overlay plugins and not having to teach them about our special video surfaces. Could also have been made part of the surface buffer abstraction of course, but a secondary goal was to consolidate the blending code for raw video into libgstvideo, and this kind of API allows us to do both in a way that's minimally invasive to existing elements, and at the same time is fairly intuitive. More features and extensions like the ability to pass the source data or text/markup directly will be added later. https://bugzilla.gnome.org/show_bug.cgi?id=665080 API: gst_video_buffer_get_overlay_composition() API: gst_video_buffer_set_overlay_composition() API: gst_video_overlay_composition_new() API: gst_video_overlay_composition_add_rectangle() API: gst_video_overlay_composition_n_rectangles() API: gst_video_overlay_composition_get_rectangle() API: gst_video_overlay_composition_make_writable() API: gst_video_overlay_composition_copy() API: gst_video_overlay_composition_ref() API: gst_video_overlay_composition_unref() API: gst_video_overlay_composition_blend() API: gst_video_overlay_rectangle_new_argb() API: gst_video_overlay_rectangle_get_pixels_argb() API: gst_video_overlay_rectangle_get_pixels_unscaled_argb() API: gst_video_overlay_rectangle_get_render_rectangle() API: gst_video_overlay_rectangle_set_render_rectangle() API: gst_video_overlay_rectangle_copy() API: gst_video_overlay_rectangle_ref() API: gst_video_overlay_rectangle_unref()
Diffstat (limited to 'win32')
-rw-r--r--win32/common/libgstvideo.def17
1 files changed, 17 insertions, 0 deletions
diff --git a/win32/common/libgstvideo.def b/win32/common/libgstvideo.def
index 4e2e59299..fee972a2f 100644
--- a/win32/common/libgstvideo.def
+++ b/win32/common/libgstvideo.def
@@ -1,4 +1,6 @@
EXPORTS
+ gst_video_buffer_get_overlay_composition
+ gst_video_buffer_set_overlay_composition
gst_video_calculate_display_ratio
gst_video_convert_frame
gst_video_convert_frame_async
@@ -33,6 +35,21 @@ EXPORTS
gst_video_frame_rate
gst_video_get_size
gst_video_get_size_from_caps
+ gst_video_overlay_composition_add_rectangle
+ gst_video_overlay_composition_blend
+ gst_video_overlay_composition_copy
+ gst_video_overlay_composition_get_rectangle
+ gst_video_overlay_composition_get_type
+ gst_video_overlay_composition_make_writable
+ gst_video_overlay_composition_n_rectangles
+ gst_video_overlay_composition_new
+ gst_video_overlay_rectangle_copy
+ gst_video_overlay_rectangle_get_pixels_argb
+ gst_video_overlay_rectangle_get_pixels_unscaled_argb
+ gst_video_overlay_rectangle_get_render_rectangle
+ gst_video_overlay_rectangle_get_type
+ gst_video_overlay_rectangle_new_argb
+ gst_video_overlay_rectangle_set_render_rectangle
gst_video_parse_caps_chroma_site
gst_video_parse_caps_color_matrix
gst_video_parse_caps_framerate