[vlc-commits] omxil_vout: Set pixel aspect ratio, for the broadcom renderer

Martin Storsjö git at videolan.org
Fri Mar 22 17:43:39 CET 2013


vlc | branch: master | Martin Storsjö <martin at martin.st> | Fri Mar 22 18:43:11 2013 +0200| [1775dea4b6114f7be0017fe6db476e7545a09e0a] | committer: Martin Storsjö

omxil_vout: Set pixel aspect ratio, for the broadcom renderer

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1775dea4b6114f7be0017fe6db476e7545a09e0a
---

 modules/codec/omxil/vout.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/codec/omxil/vout.c b/modules/codec/omxil/vout.c
index 1020221..480db84 100644
--- a/modules/codec/omxil/vout.c
+++ b/modules/codec/omxil/vout.c
@@ -260,6 +260,13 @@ static int Open(vlc_object_t *p_this)
         config_display.set = OMX_DISPLAY_SET_FULLSCREEN;
         config_display.fullscreen = OMX_TRUE;
         OMX_SetConfig(p_sys->omx_handle, OMX_IndexConfigDisplayRegion, &config_display);
+
+        if (vd->fmt.i_width != vd->cfg->display.width || vd->fmt.i_height != vd->cfg->display.height) {
+            config_display.set = OMX_DISPLAY_SET_PIXEL;
+            config_display.pixel_x = vd->cfg->display.width  * vd->fmt.i_height;
+            config_display.pixel_y = vd->cfg->display.height * vd->fmt.i_width;
+            OMX_SetConfig(p_sys->omx_handle, OMX_IndexConfigDisplayRegion, &config_display);
+        }
     }
 
 



More information about the vlc-commits mailing list