cogl-gst: expose aspect ratio apis

This adds several utility apis that aim to make it as easy as possible
for an application to determine what size a video should be drawn at.

The important detail here is that these apis take into account the
pixel-aspect-ratio in addition to the video's own aspect ratio.

This patch updates the cogl-basic-video-player example to use the
cogl_gst_video_sink_fit_size() api to perform letterboxing.

Reviewed-by: Neil Roberts <neil@linux.intel.com>

(cherry picked from commit d26f17c97ff6b9f6d6211e0527d5965a85305a56)
This commit is contained in:
Robert Bragg
2013-04-26 00:57:06 +01:00
committed by Lionel Landwerlin
parent ee559d4e93
commit 5faed43f29
4 changed files with 261 additions and 29 deletions

View File

@ -13,6 +13,10 @@ cogl_gst_video_sink_setup_pipeline
cogl_gst_video_sink_get_free_layer
cogl_gst_video_sink_set_first_layer
cogl_gst_video_sink_set_default_sample
cogl_gst_video_sink_get_aspect
cogl_gst_video_sink_get_width_for_height
cogl_gst_video_sink_get_height_for_width
cogl_gst_video_sink_fit_size
<SUBSECTION Standard>
COGL_GST_IS_VIDEO_SINK