Commit a6dee1e4 authored by Martin Storsjö's avatar Martin Storsjö

omxil_vout: Set broadcom specific parameters

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent b4c66102
...@@ -31,6 +31,10 @@ ...@@ -31,6 +31,10 @@
#include "omxil.h" #include "omxil.h"
#include "omxil_core.h" #include "omxil_core.h"
#include "OMX_Broadcom.h"
// Defined in the broadcom version of OMX_Index.h
#define OMX_IndexConfigDisplayRegion 0x7f000010
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
...@@ -233,6 +237,20 @@ static int Open(vlc_object_t *p_this) ...@@ -233,6 +237,20 @@ static int Open(vlc_object_t *p_this)
CHECK_ERROR(omx_error, "Wait for Executing failed (%x: %s)", CHECK_ERROR(omx_error, "Wait for Executing failed (%x: %s)",
omx_error, ErrorToString(omx_error)); 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 */ /* Setup chroma */
video_format_t fmt = vd->fmt; video_format_t fmt = vd->fmt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment