Hello All,
We are working on the DM8168 Decoder with decode_display example.
We are trying display the 800x600 scaled resolution.
The input given to the decoder component is 1280x720 and output's 1280x720. The 1280x720 decoded output is given to the scalar component input and the the scalar output is set to 800x600. Then the 800x600 scaled output is given to display component input and is output as 800x600.
We have set the display to 800x600 using this sysfs commands
echo 0 > /sys/devices/platform/vpss/display0/enabled
echo 800x600@60 > /sys/devices/platform/vpss/display0/mode
echo 1 > /sys/devices/platform/vpss/display0/enabled
We are using On-Chip HDMI to display this resolution.
The problem we are having is
In the function "IL_ClientSetDisplayParams()". what do i set the Display mode at "driverId.eDispVencMode".
We tried setting this to "driverId.eDispVencMode = OMX_DC_MODE_CUSTOM;" mode but this did not work, it is giving us error below,
set input port params (width = 800, height = 600)
setting input and output memory type to default
enable input port
got eventEnable/Disable Event
connect call for decoder-scalar
connect call for scalar-display
decoder inport buffers allocated
decoder outport buffers allocated
got eventState changed to: OMX_StateIdle
decoder state IDLE
Scalar input port use buffer done
scalar outport buffers allocated
got eventState changed to: OMX_StateIdle
scalar state IDLE
got eventState changed to: OMX_StateIdle
ctrl-dc state IDLE
got eventState changed to: OMX_StateIdle
display state IDLE
got eventState changed to: OMX_StateExecuting
display control state execute
got event*** unrecoverable error: OMX_ErrorBadParameter (0x80001005)
And the supported values for this "eDispVencMode" are
typedef enum
{
OMX_DC_MODE_NTSC = 0,
/**< Mode Id for NTSC, currently NOT supported */
OMX_DC_MODE_PAL,
/**< Mode Id for PAL, currently NOT supported */
OMX_DC_MODE_1080P_60,
/**< Mode Id for 1080p at 60fps mode */
OMX_DC_MODE_720P_60,
/**< Mode Id for 720p at 60fps mode */
OMX_DC_MODE_1080I_60,
/**< Mode Id for 1080I at 60fps mode */
OMX_DC_MODE_1080P_30,
/**< Mode Id for 1080P at 30fps mode */
OMX_DC_MODE_CUSTOM,
/**< Mode Id for Custom mode */
OMX_DC_MODE_Max = 0x7FFFFFFF
/**< This should be the last mode id */
} Omx_DcModeId;
Can anyone suggest us to get this resolution working. Any way of adding this custom display modes for On-Chip HDMI?
Thanks,
Srikanth.