mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
[455/906] glimagesink: handle pixel-aspect-ratio
This commit is contained in:
parent
306526a19f
commit
ade2526b8f
2 changed files with 8 additions and 6 deletions
|
@ -2167,8 +2167,9 @@ gst_gl_display_create_context (GstGLDisplay * display,
|
|||
|
||||
/* Called by the glimagesink element */
|
||||
gboolean
|
||||
gst_gl_display_redisplay (GstGLDisplay * display, GLuint texture, gint width,
|
||||
gint height, gboolean keep_aspect_ratio)
|
||||
gst_gl_display_redisplay (GstGLDisplay * display, GLuint texture,
|
||||
gint gl_width, gint gl_height, gint window_width, gint window_height,
|
||||
gboolean keep_aspect_ratio)
|
||||
{
|
||||
gboolean isAlive = TRUE;
|
||||
|
||||
|
@ -2185,12 +2186,12 @@ gst_gl_display_redisplay (GstGLDisplay * display, GLuint texture, gint width,
|
|||
|
||||
if (texture) {
|
||||
display->redisplay_texture = texture;
|
||||
display->redisplay_texture_width = width;
|
||||
display->redisplay_texture_height = height;
|
||||
display->redisplay_texture_width = gl_width;
|
||||
display->redisplay_texture_height = gl_height;
|
||||
}
|
||||
display->keep_aspect_ratio = keep_aspect_ratio;
|
||||
if (display->gl_window)
|
||||
gst_gl_window_draw (display->gl_window, width, height);
|
||||
gst_gl_window_draw (display->gl_window, window_width, window_height);
|
||||
}
|
||||
gst_gl_display_unlock (display);
|
||||
|
||||
|
|
|
@ -241,7 +241,8 @@ GstGLDisplay *gst_gl_display_new (void);
|
|||
void gst_gl_display_create_context (GstGLDisplay * display,
|
||||
gulong external_gl_context);
|
||||
gboolean gst_gl_display_redisplay (GstGLDisplay * display, GLuint texture,
|
||||
gint width, gint height, gboolean keep_aspect_ratio);
|
||||
gint gl_width, gint gl_height, gint window_width, gint window_height,
|
||||
gboolean keep_aspect_ratio);
|
||||
|
||||
void gst_gl_display_thread_add (GstGLDisplay * display,
|
||||
GstGLDisplayThreadFunc func, gpointer data);
|
||||
|
|
Loading…
Reference in a new issue