[vlc-commits] omxil_vout: Set broadcom specific parameters

Martin Storsjö git at videolan.org
Mon Mar 18 17:41:16 CET 2013


vlc | branch: master | Martin Storsjö <martin at martin.st> | Mon Mar 11 16:52:28 2013 +0200| [a6dee1e4ba6a42ac21d2f43466c386837fe1a65e] | committer: Martin Storsjö

omxil_vout: Set broadcom specific parameters

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

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

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

diff --git a/modules/codec/omxil/vout.c b/modules/codec/omxil/vout.c
index 3389855..a365aac 100644
--- a/modules/codec/omxil/vout.c
+++ b/modules/codec/omxil/vout.c
@@ -31,6 +31,10 @@
 
 #include "omxil.h"
 #include "omxil_core.h"
+#include "OMX_Broadcom.h"
+
+// Defined in the broadcom version of OMX_Index.h
+#define OMX_IndexConfigDisplayRegion 0x7f000010
 
 /*****************************************************************************
  * Module descriptor
@@ -233,6 +237,20 @@ static int Open(vlc_object_t *p_this)
     CHECK_ERROR(omx_error, "Wait for Executing failed (%x: %s)",
                 omx_error, ErrorToString(omx_error));
 
+    if (!strcmp(p_sys->psz_component, "OMX.broadcom.video_render")) {
+        OMX_CONFIG_DISPLAYREGIONTYPE config_display;
+        OMX_INIT_STRUCTURE(config_display);
+        config_display.nPortIndex = p_sys->port.i_port_index;
+
+        config_display.set = OMX_DISPLAY_SET_SRC_RECT;
+        config_display.src_rect.width = vd->cfg->display.width;
+        config_display.src_rect.height = vd->cfg->display.height;
+        OMX_SetConfig(p_sys->omx_handle, OMX_IndexConfigDisplayRegion, &config_display);
+        config_display.set = OMX_DISPLAY_SET_FULLSCREEN;
+        config_display.fullscreen = OMX_TRUE;
+        OMX_SetConfig(p_sys->omx_handle, OMX_IndexConfigDisplayRegion, &config_display);
+    }
+
 
     /* Setup chroma */
     video_format_t fmt = vd->fmt;



More information about the vlc-commits mailing list