#omx omtb_dbg_lvl 0x10 #omx omtb_dbg_lvl 0x08 omx api init omx setp 0 vfdc frame_width 1920 omx setp 0 vfdc frame_height 1080 omx setp 0 vfdc ip_chromat_format 422YUYV omx setp 0 vfdc numinbuf 8 omx setp 0 vfdc inbufalign 0 omx setp 0 vfdc inbuf_contig disable omx setp 0 vfdc inbufsize 4147200 omx setp 0 vfdc inbuf allocate omx setp 0 vfdc graphics_flag disable #omx setp 0 vfdc vcdemo_flag enable # YUV422 interleaved format file, 422YUYV format omx setp 0 vfdc infile /ST/venc_in/amelie_1080p_422.yuv omx setp 0 vfdc data_ipmode file omx setp 0 vfdc inbuf allocate omx setp 0 vfdc inbufsize_flag enable omx setp 0 dc insmod_hdmi disable omx setp 0 vfdc mosaic_window_config vs omx api gethandle vfdc 0 0 omx api gethandle dc 0 0 omx api getparam vfdc 0 0 0 OMX_IndexParamPortDefinition omx setp 0 vfdc OMX_IndexParamPortDefinition nBufferSize 4147200 omx setp 0 vfdc OMX_IndexParamPortDefinition video.nStride 3840 omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameWidth 1920 omx setp 0 vfdc OMX_IndexParamPortDefinition video.nFrameHeight 1080 omx api setparam vfdc 0 0 0 OMX_IndexParamPortDefinition omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0 omx setp 0 vfdc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60 omx api setparam vfdc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartX 0 omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winStartY 0 omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winWidth 1920 omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout winHeight 1080 omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_INT_ADDR_IDX 3840 omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_Y_ADDR_IDX 3840 omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout pitch.VFDC_YUV_SP_CBCR_ADDR_IDX 3840 omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout dataFormat 422I_YUYV omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout bpp bits16 omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout priority 0 omx setp 0 vfdc OMX_TI_IndexParamVFDCCreateMosaicLayout nLayoutId 0 omx setp 0 vfdc mosaicNumRows 1 omx setp 0 vfdc mosaicNumCols 1 omx setp 0 vfdc mosaicDispWindowWidth 1920 omx setp 0 vfdc mosaicDispWindowHeight 1080 omx api setparam vfdc 0 0 0 OMX_TI_IndexParamVFDCCreateMosaicLayout omx setp 0 vfdc OMX_TI_IndexConfigVFDCMosaicPort2WinMap nLayoutId 0 omx api setconfig vfdc 0 0 0 OMX_TI_IndexConfigVFDCMosaicPort2WinMap 1 0 omx setp 0 vfdc OMX_TI_IndexParamBuffMemType eBufMemoryType default omx setp 0 vfdc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified omx setp 0 vfdc OMX_IndexParamVideoInit nPorts 1 omx setp 0 vfdc OMX_IndexParamVideoInit nStartPortNumber 0 #************************************************************ #SET ALL THE PARAMS FOR DC#0 omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId nDrvInstID 0 omx setp 0 dc OMX_TI_IndexParamVFDCDriverInstId eDispVencMode 1080p60 omx api setparam dc 0 0 0 OMX_TI_IndexParamVFDCDriverInstId omx api setparam vfdc 0 0 0 OMX_IndexParamPortDefinition omx api sendcommand port vfdc 0 enable 0 omx api sendcommand port vfdc 0 waitforsem 0 omx api sendcommand state dc 0 idle omx api sendcommand state dc 0 waitforsem omx api sendcommand state vfdc 0 idle omx api sendcommand state vfdc 0 waitforsem omx api sendcommand state dc 0 exec omx api sendcommand state dc 0 waitforsem omx api sendcommand state vfdc 0 exec omx api sendcommand state vfdc 0 waitforsem sleep 30000 omx api sendcommand state dc 0 idle omx api sendcommand state dc 0 waitforsem omx api sendcommand state vfdc 0 idle omx api sendcommand state vfdc 0 waitforsem omx api sendcommand state dc 0 loaded omx api sendcommand state dc 0 waitforsem omx api sendcommand state vfdc 0 loaded omx api sendcommand state vfdc 0 waitforsem #Free the Handles omx api freehandle dc 0 omx api freehandle vfdc 0 omx api uninit