This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

About OMTB NF Example Operation(DM8168)



(EZSDK505, DM8168)

If OMTB is:

omx setp 0 nf OMX_TI_IndexConfigAlgEnable bAlgBypass enable

omx setp 0 nf OMX_TI_IndexConfigAlgEnable nChId 0

omx api setconfig nf 0 0 0 OMX_TI_IndexConfigAlgEnableT

This is just use the bypass channel(422P to 420T), and not execute NF,is right?

If I want to execute 422P-NF-420T, how should I set?

Thanks.

  • Hello,

    You could check here for more information:

    ti-ezsdk_dm816x-evm_5_05_01_04/example-applications/omtb_xx_xx_xx_xx/packages/ti/sdo/omtb/docs

    OMTB_xx_xx_xx_xx_UserGuide.pdf

    Best regards,

    Margarita

  • Hi,

    NF was not functional in EZSDK 5.04, So as suggested please migrate to 5.05; Also please use IL client examples as application.  Decode_display example use NF for color conversion for SD display.

    Regards

    Vimal

  • Hi, I tried to create a 1080P OMTB script , why I get is a gray square on the display. (DM8168 ,EZSDK505)

    I change SetpIndex.c as follow:

    SetpIndex.c

     

    /* Entry for Set Selecting Video Decoder Standards */

    PRIVATE MX_DBG_CMD_ENTRY_T cmdEntryVPSSTvpVideoDecoderStd =

    {

      "videoStandard",

      MX_DBG_CMD_TYPE_VAR_UINT32,

      MX_DBG_CMD_OPT_INST_CUR     |

      MX_DBG_CMD_OPT_ENUM         |

      MX_DBG_CMD_OPT_VALID_PTR,

      FIELDOFFSET(OMX_PARAM_CTRL_VIDDECODER_INFO,videoStandard),

      FIELDOFFSET(OMX_PARAM_CTRL_VIDDECODER_INFO,nSize) -

      FIELDOFFSET(OMX_PARAM_CTRL_VIDDECODER_INFO,videoStandard),

      0,

      OMX_VIDEO_DECODER_STD_Unused,

      OMX_VIDEO_DECODER_STD_1080

    #omx omtb_dbg_lvl 0x00
    #omx omtb_dbg_lvl 0x04
    #omx omtb_dbg_lvl 0x08
    #omx omtb_dbg_lvl 0x10
    #omx omtb_dbg_lvl 0x80
    omx api init
    omx setp 0 vfcc compname OMX.TI.VPSSM3.VFCC 
    omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    omx setp 0 nf compname OMX.TI.VPSSM3.VFPC.NF
    omx setp 0 dc insmod_hdmi disable
    #I/P Port or O/P Port Params for VFCC
    omx setp 0 vfcc numoutbuf 6
    omx setp 0 vfcc frame_width 1920
    omx setp 0 vfcc frame_height 1080
    omx setp 0 vfcc op_chromat_format 422YUYV
    omx setp 0 vfcc outbufalign 0
    omx setp 0 vfcc outbuf_contig disable
    omx setp 0 vfcc outbufsize 4147200
    omx setp 0 vfcc data_opmode driver
    omx setp 0 vfcc outbuf allocate
    omx setp 0 vfcc outbufsize_flag disable
    omx setp 0 vfcc numoutbuf 8
    omx setp 0 vfcc outbuf_contig disable
    
    omx setp 0 nf frame_width 1920
    omx setp 0 nf frame_height 1080
    omx setp 0 nf op_chromat_format 420SP
    omx setp 0 nf ip_chromat_format 422YUYV
    omx setp 0 nf numinbuf 8 
    omx setp 0 nf inbufalign 0 
    omx setp 0 nf inbuf_contig disable
    omx setp 0 nf inbufsize_flag enable
    omx setp 0 nf inbufsize 4147200
    omx setp 0 nf numoutbuf 8
    omx setp 0 nf outbufalign 0
    omx setp 0 nf outbuf_contig disable
    omx setp 0 nf outbufsize_flag enable
    omx setp 0 nf outbufsize 4147200 
    omx setp 0 nf data_ipmode driver
    omx setp 0 nf data_opmode driver
    omx setp 0 nf inbuf use
    omx setp 0 nf outbuf allocate
    
    omx setp 0 sc frame_width 1920
    omx setp 0 sc frame_height 1080
    omx setp 0 sc op_chromat_format 422YUYV
    omx setp 0 sc ip_chromat_format 420SP
    omx setp 0 sc numinbuf 8
    omx setp 0 sc inbufalign 0
    omx setp 0 sc inbuf_contig disable
    omx setp 0 sc inbufsize_flag enable
    omx setp 0 sc inbufsize 4147200
    omx setp 0 sc numoutbuf 8
    omx setp 0 sc outbufalign 0
    omx setp 0 sc outbuf_contig disable
    omx setp 0 sc outbufsize_flag enable
    omx setp 0 sc outbufsize 4147200 
    omx setp 0 sc data_opmode driver
    omx setp 0 sc inbuf use
    
    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 use
    omx setp 0 vfdc graphics_flag disable
    #omx setp 0 vfdc vcdemo_flag enable
    omx setp 0 vfdc mosaic_window_config vs
    omx setp 0 dc insmod_hdmi disable
    omx api gethandle tvp 0 0
    omx api gethandle vfcc 0 0
    omx api gethandle nf 0 0
    omx api gethandle sc 0 0
    omx api gethandle vfdc 0 0
    omx api gethandle dc 0 0
    #SET ALL THE PARAMS FOR TVP
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1920
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 1080
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoStandard 1080P60
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId tvp7002
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoSystemId auto_detect
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamCTRLVidDecInfo
    #************************************************************
    #SET ALL THE PARAMS FOR VFCC
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1920
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 1080
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 vfcc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  vfcc 0 0 0  OMX_TI_IndexParamBuffMemType
    omx setp 0 vfcc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamCompBufferSupplier
    omx setp 0 vfcc OMX_TI_IndexConfigVFCCFrameSkip frameSkipMask 0
    #omx api setconfig  vfcc 0 0 0  OMX_TI_IndexConfigVFCCFrameSkip
    omx setp 0 vfcc OMX_IndexParamVideoInit nPorts 16
    omx setp 0 vfcc OMX_IndexParamVideoInit nStartPortNumber 0
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamVideoInit
    
    #**********************************************************************************
    
    omx setp 0 nf OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx api setparam nf 0 0 0 OMX_TI_IndexParamVFPCNumChPerHandle
    
    omx setp 0 nf OMX_TI_IndexConfigAlgEnable bAlgBypass enable
    omx setp 0 nf OMX_TI_IndexConfigAlgEnable nChId 0
    omx api setconfig nf 0 0 0 OMX_TI_IndexConfigAlgEnable
    
    omx setp 0 nf OMX_TI_IndexConfigSubSamplingFactor nSubSamplingFactor 1
    omx api setconfig nf 0 0 0 OMX_TI_IndexConfigSubSamplingFactor
    
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Width  1920
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Height 1080
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Pitch  3840
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmCropHeight 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution eDir input
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig nf 0 0 0  OMX_TI_IndexConfigVidChResolution
    
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Width  1920
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Height 1080
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Pitch  1920
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmCropHeight 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution eDir output
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig nf 0 0 16  OMX_TI_IndexConfigVidChResolution
    
    omx setp 0 nf OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  nf  0 0 0  OMX_TI_IndexParamBuffMemType
    
    omx setp 0 nf OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  nf  0 0 16  OMX_TI_IndexParamBuffMemType
    
    omx setp 0 nf OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  nf  0 0 0  OMX_TI_IndexParamCompPortNotifyType
    
    omx setp 0 nf OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  nf  0 0 16  OMX_TI_IndexParamCompPortNotifyType
    
    omx setp 0 nf OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    omx setp 0 nf OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx setp 0 nf OMX_IndexParamVideoInit nPorts 2
    omx setp 0 nf OMX_IndexParamVideoInit nStartPortNumber 0
    omx api getparam  nf 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 nf OMX_IndexParamPortDefinition video.nStride 3840
    omx api setparam  nf 0 0 0 OMX_IndexParamPortDefinition
    
    #**********************************************************************************
    
    omx setp 0 sc OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx api setparam  sc 0 0 0 OMX_TI_IndexParamVFPCNumChPerHandle
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Width  1920
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Height 1080
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Pitch  2048
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropHeight 0 
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution eDir input
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig  sc 0 0 0 OMX_TI_IndexConfigVidChResolution
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Width  1920
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Height 1080
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Pitch  3840
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropHeight 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution eDir output
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig  sc 0 0 16 OMX_TI_IndexConfigVidChResolution
    omx setp 0 sc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  sc 0 0 0 OMX_TI_IndexParamBuffMemType
    omx setp 0 sc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  sc 0 0 16 OMX_TI_IndexParamBuffMemType
    omx setp 0 sc OMX_TI_IndexConfigAlgEnable bAlgBypass disable
    omx setp 0 sc OMX_TI_IndexConfigAlgEnable nChId 0
    omx api setconfig sc 0 0 0 OMX_TI_IndexConfigAlgEnable
    omx setp 0 sc OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam sc 0 0 0 OMX_TI_IndexParamCompPortNotifyType
    omx setp 0 sc OMX_TI_IndexParmaCompPortNotifyType eNotifyType always
    omx api setparam sc 0 0 16 OMX_TI_IndexParamCompPortNotifyType
    
    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
    omx api getparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nStride 3840
    omx api setparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    #************************************************************
    #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 sendcommand port vfcc 0 enable 0
    omx api sendcommand port vfcc 0 waitforsem 0
    omx api sendcommand port nf 0 enable 0
    omx api sendcommand port nf 0 waitforsem 0
    omx api sendcommand port nf 0 enable 16
    omx api sendcommand port nf 0 waitforsem 16
    omx api sendcommand port sc 0 enable 0
    omx api sendcommand port sc 0 waitforsem 0
    omx api sendcommand port sc 0 enable 16
    omx api sendcommand port sc 0 waitforsem 16
    omx api sendcommand port vfdc 0 enable 0
    omx api sendcommand port vfdc 0 waitforsem 0
    
    omx api connect vfcc 0 0 nf 0 0
    omx api connect nf 0 16 sc 0 0
    #omx api connect vfcc 0 0 sc 0 0
    omx api connect sc 0 16 vfdc 0 0
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state nf 0 idle
    omx api sendcommand state nf 0 waitforsem
    omx api sendcommand state sc 0 idle
    omx api sendcommand state sc 0 waitforsem
    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
    omx api sendcommand state vfcc 0 exec
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state nf 0 exec
    omx api sendcommand state nf 0 waitforsem
    omx api sendcommand state sc 0 exec
    omx api sendcommand state sc 0 waitforsem
    omx api sendcommand state tvp 0 exec
    omx api sendcommand state tvp 0 waitforsem
    sleep 10000
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state nf 0 idle
    omx api sendcommand state nf 0 waitforsem
    omx api sendcommand state sc 0 idle
    omx api sendcommand state sc 0 waitforsem
    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 vfcc 0 loaded
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 loaded
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state nf 0 loaded
    omx api sendcommand state nf 0 waitforsem
    omx api sendcommand state sc 0 loaded
    omx api sendcommand state sc 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
    omx api freehandle vfcc 0
    omx api freehandle tvp 0
    omx api freehandle nf 0
    omx api freehandle sc 0
    omx api freehandle dc 0
    omx api freehandle vfdc 0
    omx api uninit
    
    P_60,

      OMX_VIDEO_DECODER_STD_MUX_4CH_D1,

      &enumTblVPSSTvpVideoDecoderStd,

      XdbgCmdVarFunc,

      "TVP video decoder standards...................",

     

    Thanks!

  • Hi, I tried to create a 1080P OMTB script , why I get is a gray square on the display. (DM8168 ,EZSDK505)

    I change SetpIndex.c as follow:

    SetpIndex.c

     

    /* Entry for Set Selecting Video Decoder Standards */

    PRIVATE MX_DBG_CMD_ENTRY_T cmdEntryVPSSTvpVideoDecoderStd =

    {

      "videoStandard",

      MX_DBG_CMD_TYPE_VAR_UINT32,

      MX_DBG_CMD_OPT_INST_CUR     |

      MX_DBG_CMD_OPT_ENUM         |

      MX_DBG_CMD_OPT_VALID_PTR,

      FIELDOFFSET(OMX_PARAM_CTRL_VIDDECODER_INFO,videoStandard),

      FIELDOFFSET(OMX_PARAM_CTRL_VIDDECODER_INFO,nSize) -

      FIELDOFFSET(OMX_PARAM_CTRL_VIDDECODER_INFO,videoStandard),

      0,

      OMX_VIDEO_DECODER_STD_Unused,

      OMX_VIDEO_DECODER_STD_1080P_60,

      OMX_VIDEO_DECODER_STD_MUX_4CH_D1,

      &enumTblVPSSTvpVideoDecoderStd,

      XdbgCmdVarFunc,

      "TVP video decoder standards...................",

     

    #omx omtb_dbg_lvl 0x00
    #omx omtb_dbg_lvl 0x04
    #omx omtb_dbg_lvl 0x08
    #omx omtb_dbg_lvl 0x10
    #omx omtb_dbg_lvl 0x80
    omx api init
    omx setp 0 vfcc compname OMX.TI.VPSSM3.VFCC 
    omx setp 0 tvp compname OMX.TI.VPSSM3.CTRL.TVP
    omx setp 0 nf compname OMX.TI.VPSSM3.VFPC.NF
    omx setp 0 dc insmod_hdmi disable
    #I/P Port or O/P Port Params for VFCC
    omx setp 0 vfcc numoutbuf 6
    omx setp 0 vfcc frame_width 1920
    omx setp 0 vfcc frame_height 1080
    omx setp 0 vfcc op_chromat_format 422YUYV
    omx setp 0 vfcc outbufalign 0
    omx setp 0 vfcc outbuf_contig disable
    omx setp 0 vfcc outbufsize 4147200
    omx setp 0 vfcc data_opmode driver
    omx setp 0 vfcc outbuf allocate
    omx setp 0 vfcc outbufsize_flag disable
    omx setp 0 vfcc numoutbuf 8
    omx setp 0 vfcc outbuf_contig disable
    
    omx setp 0 nf frame_width 1920
    omx setp 0 nf frame_height 1080
    omx setp 0 nf op_chromat_format 420SP
    omx setp 0 nf ip_chromat_format 422YUYV
    omx setp 0 nf numinbuf 8 
    omx setp 0 nf inbufalign 0 
    omx setp 0 nf inbuf_contig disable
    omx setp 0 nf inbufsize_flag enable
    omx setp 0 nf inbufsize 4147200
    omx setp 0 nf numoutbuf 8
    omx setp 0 nf outbufalign 0
    omx setp 0 nf outbuf_contig disable
    omx setp 0 nf outbufsize_flag enable
    omx setp 0 nf outbufsize 4147200 
    omx setp 0 nf data_ipmode driver
    omx setp 0 nf data_opmode driver
    omx setp 0 nf inbuf use
    omx setp 0 nf outbuf allocate
    
    omx setp 0 sc frame_width 1920
    omx setp 0 sc frame_height 1080
    omx setp 0 sc op_chromat_format 422YUYV
    omx setp 0 sc ip_chromat_format 420SP
    omx setp 0 sc numinbuf 8
    omx setp 0 sc inbufalign 0
    omx setp 0 sc inbuf_contig disable
    omx setp 0 sc inbufsize_flag enable
    omx setp 0 sc inbufsize 4147200
    omx setp 0 sc numoutbuf 8
    omx setp 0 sc outbufalign 0
    omx setp 0 sc outbuf_contig disable
    omx setp 0 sc outbufsize_flag enable
    omx setp 0 sc outbufsize 4147200 
    omx setp 0 sc data_opmode driver
    omx setp 0 sc inbuf use
    
    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 use
    omx setp 0 vfdc graphics_flag disable
    #omx setp 0 vfdc vcdemo_flag enable
    omx setp 0 vfdc mosaic_window_config vs
    omx setp 0 dc insmod_hdmi disable
    omx api gethandle tvp 0 0
    omx api gethandle vfcc 0 0
    omx api gethandle nf 0 0
    omx api gethandle sc 0 0
    omx api gethandle vfdc 0 0
    omx api gethandle dc 0 0
    #SET ALL THE PARAMS FOR TVP
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1920
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 1080
    omx setp 0 tvp OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoStandard 1080P60
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoDecoderId tvp7002
    omx setp 0 tvp OMX_TI_IndexParamCTRLVidDecInfo videoSystemId auto_detect
    omx api setparam tvp 0 0 0 OMX_TI_IndexParamCTRLVidDecInfo
    #************************************************************
    #SET ALL THE PARAMS FOR VFCC
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortID eHwPortId vip1_porta
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortID
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eCaptMode sc_non_mux
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eVifMode 16_bit
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eInColorFormat 422YUYV
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties eScanType progressive
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxWidth 1920
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxHeight 1080
    omx setp 0 vfcc OMX_TI_IndexParamVFCCHwPortProperties nMaxChnlsPerHwPort 1
    omx api setparam vfcc 0 0 0 OMX_TI_IndexParamVFCCHwPortProperties
    omx setp 0 vfcc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  vfcc 0 0 0  OMX_TI_IndexParamBuffMemType
    omx setp 0 vfcc OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamCompBufferSupplier
    omx setp 0 vfcc OMX_TI_IndexConfigVFCCFrameSkip frameSkipMask 0
    #omx api setconfig  vfcc 0 0 0  OMX_TI_IndexConfigVFCCFrameSkip
    omx setp 0 vfcc OMX_IndexParamVideoInit nPorts 16
    omx setp 0 vfcc OMX_IndexParamVideoInit nStartPortNumber 0
    #omx api setparam  vfcc 0 0 0  OMX_IndexParamVideoInit
    
    #**********************************************************************************
    
    omx setp 0 nf OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx api setparam nf 0 0 0 OMX_TI_IndexParamVFPCNumChPerHandle
    
    omx setp 0 nf OMX_TI_IndexConfigAlgEnable bAlgBypass enable
    omx setp 0 nf OMX_TI_IndexConfigAlgEnable nChId 0
    omx api setconfig nf 0 0 0 OMX_TI_IndexConfigAlgEnable
    
    omx setp 0 nf OMX_TI_IndexConfigSubSamplingFactor nSubSamplingFactor 1
    omx api setconfig nf 0 0 0 OMX_TI_IndexConfigSubSamplingFactor
    
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Width  1920
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Height 1080
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Pitch  3840
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmCropHeight 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution eDir input
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig nf 0 0 0  OMX_TI_IndexConfigVidChResolution
    
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Width  1920
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Height 1080
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm0Pitch  1920
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution FrmCropHeight 0
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution eDir output
    omx setp 0 nf OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig nf 0 0 16  OMX_TI_IndexConfigVidChResolution
    
    omx setp 0 nf OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  nf  0 0 0  OMX_TI_IndexParamBuffMemType
    
    omx setp 0 nf OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  nf  0 0 16  OMX_TI_IndexParamBuffMemType
    
    omx setp 0 nf OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  nf  0 0 0  OMX_TI_IndexParamCompPortNotifyType
    
    omx setp 0 nf OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam  nf  0 0 16  OMX_TI_IndexParamCompPortNotifyType
    
    omx setp 0 nf OMX_IndexParamCompBufferSupplier eBufferSupplier unspecified
    omx setp 0 nf OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx setp 0 nf OMX_IndexParamVideoInit nPorts 2
    omx setp 0 nf OMX_IndexParamVideoInit nStartPortNumber 0
    omx api getparam  nf 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 nf OMX_IndexParamPortDefinition video.nStride 3840
    omx api setparam  nf 0 0 0 OMX_IndexParamPortDefinition
    
    #**********************************************************************************
    
    omx setp 0 sc OMX_TI_IndexParamVFPCNumChPerHandle nNumChannelsPerHandle 1
    omx api setparam  sc 0 0 0 OMX_TI_IndexParamVFPCNumChPerHandle
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Width  1920
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Height 1080
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Pitch  2048
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropHeight 0 
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution eDir input
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig  sc 0 0 0 OMX_TI_IndexConfigVidChResolution
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Width  1920
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Height 1080
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm0Pitch  3840
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Width  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Height 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution Frm1Pitch  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartX  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmStartY  0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropWidth 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution FrmCropHeight 0
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution eDir output
    omx setp 0 sc OMX_TI_IndexConfigVidChResolution nChId 0
    omx api setconfig  sc 0 0 16 OMX_TI_IndexConfigVidChResolution
    omx setp 0 sc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  sc 0 0 0 OMX_TI_IndexParamBuffMemType
    omx setp 0 sc OMX_TI_IndexParamBuffMemType eBufMemoryType default
    omx api setparam  sc 0 0 16 OMX_TI_IndexParamBuffMemType
    omx setp 0 sc OMX_TI_IndexConfigAlgEnable bAlgBypass disable
    omx setp 0 sc OMX_TI_IndexConfigAlgEnable nChId 0
    omx api setconfig sc 0 0 0 OMX_TI_IndexConfigAlgEnable
    omx setp 0 sc OMX_TI_IndexParamCompPortNotifyType eNotifyType always
    omx api setparam sc 0 0 0 OMX_TI_IndexParamCompPortNotifyType
    omx setp 0 sc OMX_TI_IndexParmaCompPortNotifyType eNotifyType always
    omx api setparam sc 0 0 16 OMX_TI_IndexParamCompPortNotifyType
    
    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
    omx api getparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    omx setp 0 vfdc OMX_IndexParamPortDefinition video.nStride 3840
    omx api setparam  vfdc 0 0 0 OMX_IndexParamPortDefinition
    #************************************************************
    #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 sendcommand port vfcc 0 enable 0
    omx api sendcommand port vfcc 0 waitforsem 0
    omx api sendcommand port nf 0 enable 0
    omx api sendcommand port nf 0 waitforsem 0
    omx api sendcommand port nf 0 enable 16
    omx api sendcommand port nf 0 waitforsem 16
    omx api sendcommand port sc 0 enable 0
    omx api sendcommand port sc 0 waitforsem 0
    omx api sendcommand port sc 0 enable 16
    omx api sendcommand port sc 0 waitforsem 16
    omx api sendcommand port vfdc 0 enable 0
    omx api sendcommand port vfdc 0 waitforsem 0
    
    omx api connect vfcc 0 0 nf 0 0
    omx api connect nf 0 16 sc 0 0
    #omx api connect vfcc 0 0 sc 0 0
    omx api connect sc 0 16 vfdc 0 0
    
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state nf 0 idle
    omx api sendcommand state nf 0 waitforsem
    omx api sendcommand state sc 0 idle
    omx api sendcommand state sc 0 waitforsem
    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
    omx api sendcommand state vfcc 0 exec
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state nf 0 exec
    omx api sendcommand state nf 0 waitforsem
    omx api sendcommand state sc 0 exec
    omx api sendcommand state sc 0 waitforsem
    omx api sendcommand state tvp 0 exec
    omx api sendcommand state tvp 0 waitforsem
    sleep 10000
    omx api sendcommand state vfcc 0 idle
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 idle
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state nf 0 idle
    omx api sendcommand state nf 0 waitforsem
    omx api sendcommand state sc 0 idle
    omx api sendcommand state sc 0 waitforsem
    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 vfcc 0 loaded
    omx api sendcommand state vfcc 0 waitforsem
    omx api sendcommand state tvp 0 loaded
    omx api sendcommand state tvp 0 waitforsem
    omx api sendcommand state nf 0 loaded
    omx api sendcommand state nf 0 waitforsem
    omx api sendcommand state sc 0 loaded
    omx api sendcommand state sc 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
    omx api freehandle vfcc 0
    omx api freehandle tvp 0
    omx api freehandle nf 0
    omx api freehandle sc 0
    omx api freehandle dc 0
    omx api freehandle vfdc 0
    omx api uninit
    

    Thanks!

  • Hi,

    As requested earlier, please refer to examples provided e.g. capture_encode, decode_display etc. OMTB does not support all component supported features.

    Regards

    Vimal

  • Thanks for your answer.

    But I don't understand why there is a gray square on dispaly. I refered to capture_encode, decode_display.

    Can you help me how to get rid of the gray square?

    Thanks.

  • I assume, this is due to capture not getting detected. So it is in loop for detecting the capture.

    Regards

    Vimal

  • Sorry, I am not very clear what you mean. If there has no NF, the display is normal. 

  • I tested the capture component, the display is normal(capture-dei-display). Can you help me?

    Thanks very much.

  • Are you using latest SDK ? 5.05.01.04 ? 

    There is an example decode_display , where NF is used; you can refer that. Please note NF has limitation of height /width beinG multiple of 32.

    Regards

    Vimal

  • Yes, it's EZSDK5.05.01.04.

    In the example decode_display, the note is:

    /* SD display is through NF in this example, and NF has limitation of multiple of 32 ;

    so I tested using 720P60, but the display is same as 1080P60. It also has a gray rectangle in the bottom of screen.

    Can you help me?

  • Hi, can you help me?

    I used EZSDK505.OMTB is as following:

    omx setp 0 vfcc data_opmode file
    omx setp 0 vfcc outfile /usr/share/ti/ti-omtb/cap.yuv

    why the size of cap.yuv is zero?

    Thanks very much.

  • Hello,

    Are you have enough free space ?

    You could try to create *.yuv file using OMX Decode example:


    /ti-ezsdk_dm81x-evm_x_xx_xx_xx/component-sources/omx_xx_xx_xx_xx

    OMX_0x_0x_00_xx_UserGuide.pdf (page 64)

    Best Regards

    Margarita

  • Hi, Vimal, can you help me?

    there is a gray rectangle in the bottom of screen.

    why the display is no normal ?

    The configuration  of NF is as following:

    OMX_ERRORTYPE eError = OMX_ErrorNone;
      OMX_PARAM_BUFFER_MEMORYTYPE memTypeCfg;
      OMX_PARAM_PORTDEFINITIONTYPE paramPort;
      OMX_PARAM_VFPC_NUMCHANNELPERHANDLE sNumChPerHandle;
      OMX_CONFIG_ALG_ENABLE algEnable;
      OMX_CONFIG_SUBSAMPLING_FACTOR   para;
      OMX_CONFIG_VIDCHANNEL_RESOLUTION chResolution;

      OMX_INIT_PARAM (&memTypeCfg);
      memTypeCfg.nPortIndex = OMX_VFPC_INPUT_PORT_START_INDEX; //0,VFPC comp index
      memTypeCfg.eBufMemoryType = OMX_BUFFER_MEMORY_DEFAULT;
      eError =
        OMX_SetParameter (pAppData->pNfHandle, OMX_TI_IndexParamBuffMemType,
                          &memTypeCfg);

      if (eError != OMX_ErrorNone)
      {
        ERROR ("failed to set memory Type at input port\n");
      }

      /* Setting Memory type at output port to Raw Memory */
      OMX_INIT_PARAM (&memTypeCfg);
      memTypeCfg.nPortIndex = OMX_VFPC_OUTPUT_PORT_START_INDEX;
      memTypeCfg.eBufMemoryType = OMX_BUFFER_MEMORY_DEFAULT;
      eError = OMX_SetParameter (pAppData->pNfHandle, OMX_TI_IndexParamBuffMemType,
                          &memTypeCfg);

      if (eError != OMX_ErrorNone)
      {
        ERROR ("failed to set memory Type at output port\n");
      }

      /* set input height/width and color format */
      OMX_INIT_PARAM (&paramPort);
      paramPort.nPortIndex = OMX_VFPC_INPUT_PORT_START_INDEX; //0

      eError=OMX_GetParameter (pAppData->pNfHandle, OMX_IndexParamPortDefinition,
                        &paramPort);
      if (eError!= OMX_ErrorNone)
      {
       printf("IL_ClientSetNfParams( ): OMX_GetParameter( ) Error\n");
      }
      /////////////////////////////////////////////
      // input

      paramPort.nPortIndex = OMX_VFPC_INPUT_PORT_START_INDEX; //0
      paramPort.eDir = OMX_DirInput;
      paramPort.format.video.nFrameWidth  = pAppData->nWidth;
      paramPort.format.video.nFrameHeight = pAppData->nHeight;
      paramPort.nBufferCountActual = IL_CLIENT_NF_INPUT_BUFFER_COUNT;//IL_CLIENT_CAPTURE_OUTPUT_BUFFER_COUNT
      /* Scalar is connceted to H264 decoder, whose stride is different than width*/
      paramPort.format.video.nStride =pAppData->nWidth * 2;
      paramPort.format.video.eCompressionFormat = OMX_VIDEO_CodingUnused;
      paramPort.format.video.eColorFormat = OMX_COLOR_FormatYCbYCr;
      paramPort.nBufferSize = paramPort.format.video.nStride *
                               paramPort.format.video.nFrameHeight;

      printf("Buffer Size computed: %d\n", (int)paramPort.nBufferSize);
      paramPort.nBufferAlignment = 128;
      paramPort.bBuffersContiguous = 0;
      paramPort.nBufferCountActual = IL_CLIENT_NF_INPUT_BUFFER_COUNT;
      printf ("set input port params (width = %u, height = %u) \n",
              (unsigned int) pAppData->nWidth, (unsigned int) pAppData->nHeight);
     
      eError = OMX_SetParameter (pAppData->pNfHandle, OMX_IndexParamPortDefinition,
                        &paramPort);
       if (eError != OMX_ErrorNone) 
       {
           printf("IL_ClientSetNfParams(): OMX_GetParameter() Error %s\n", IL_ClientErrorToStr(eError));
        }

       //////////////////////////////////
      /* set output height/width and color format */
      OMX_INIT_PARAM (&paramPort);
      paramPort.nPortIndex = OMX_VFPC_OUTPUT_PORT_START_INDEX;
      OMX_GetParameter (pAppData->pNfHandle, OMX_IndexParamPortDefinition,
                        &paramPort);

      paramPort.nPortIndex = OMX_VFPC_OUTPUT_PORT_START_INDEX;
      paramPort.eDir = OMX_DirOutput;
      paramPort.format.video.nFrameWidth  = pAppData->nWidth;
      paramPort.format.video.nFrameHeight = pAppData->nHeight;
      paramPort.format.video.eCompressionFormat = OMX_VIDEO_CodingUnused;
      paramPort.format.video.eColorFormat = OMX_COLOR_FormatYUV420SemiPlanar;
      paramPort.nBufferAlignment = 128;
      paramPort.bBuffersContiguous = 0;
      paramPort.nBufferCountActual = IL_CLIENT_NF_OUTPUT_BUFFER_COUNT;
      /* scalar buffer pitch should be multiple of 16 */
      paramPort.format.video.nStride = pAppData->nWidth;

      paramPort.nBufferSize =
       (paramPort.format.video.nStride * paramPort.format.video.nFrameHeight * 3 )>> 1;
      printf("Buffer Size computed: %d\n", (int)paramPort.nBufferSize);
      printf ("set output port params (width = %d, height = %d) \n",
              (int) paramPort.format.video.nFrameWidth,
              (int) paramPort.format.video.nFrameHeight);

      eError = OMX_SetParameter (pAppData->pNfHandle, OMX_IndexParamPortDefinition,
                        &paramPort);

      if (eError != OMX_ErrorNone)
      {
          printf("IL_ClientSetNfParams(): OMX_GetParameter() Error %s\n", IL_ClientErrorToStr(eError));
       }
     
      /* set number of channles */
       printf ("set number of channels \n");

      OMX_INIT_PARAM (&sNumChPerHandle);
      sNumChPerHandle.nNumChannelsPerHandle = 1;
      eError =
        OMX_SetParameter (pAppData->pNfHandle,
                          (OMX_INDEXTYPE) OMX_TI_IndexParamVFPCNumChPerHandle,
                          &sNumChPerHandle);
      if (eError != OMX_ErrorNone)
      {
        ERROR ("failed to set num of channels\n");
      }

      /* set VFPC input and output resolution information */
      printf ("set input resolution \n");

      OMX_INIT_PARAM (&chResolution);
      chResolution.Frm0Width =  pAppData->nWidth;
      chResolution.Frm0Height = pAppData->nHeight;
      chResolution.Frm0Pitch =  pAppData->nWidth * 2;
      chResolution.Frm1Width = 0;
      chResolution.Frm1Height = 0;
      chResolution.Frm1Pitch = 0;
      chResolution.FrmStartX = 0;
      chResolution.FrmStartY = 0;
      chResolution.FrmCropWidth = pAppData->nWidth;
      chResolution.FrmCropHeight = pAppData->nHeight;
      chResolution.eDir = OMX_DirInput;
      chResolution.nChId = 0;

      eError =
        OMX_SetConfig (pAppData->pNfHandle,
                       (OMX_INDEXTYPE) OMX_TI_IndexConfigVidChResolution,
                       &chResolution);
      if (eError != OMX_ErrorNone)
      {
        ERROR ("failed to set input channel resolution\n");
      }

      printf ("set output resolution \n");
      OMX_INIT_PARAM (&chResolution);
      chResolution.Frm0Width  = pAppData->nWidth;
      chResolution.Frm0Height = pAppData->nHeight;
      chResolution.Frm0Pitch  = pAppData->nWidth;
      chResolution.Frm1Width = 0;
      chResolution.Frm1Height = 0;
      chResolution.Frm1Pitch = 0;
      chResolution.FrmStartX = 0;
      chResolution.FrmStartY = 0;
      chResolution.FrmCropWidth = pAppData->nWidth;
      chResolution.FrmCropHeight = pAppData->nHeight;
      chResolution.eDir = OMX_DirOutput;
      chResolution.nChId = 0;

      eError =
        OMX_SetConfig (pAppData->pNfHandle,
                       (OMX_INDEXTYPE) OMX_TI_IndexConfigVidChResolution,
                       &chResolution);
      if (eError != OMX_ErrorNone)
      {
        ERROR ("failed to set output channel resolution\n");
      }

      /* disable algo bypass mode */
      OMX_INIT_PARAM (&algEnable);
      algEnable.nPortIndex = 0;
      algEnable.nChId = 0;
      algEnable.bAlgBypass = 0;

      eError =
        OMX_SetConfig (pAppData->pNfHandle,
                       (OMX_INDEXTYPE) OMX_TI_IndexConfigAlgEnable, &algEnable);
      if (eError != OMX_ErrorNone)
        ERROR ("failed to disable algo by pass mode\n");

      OMX_INIT_PARAM (&para);
      para.nPortIndex = OMX_VFPC_OUTPUT_PORT_START_INDEX;   /**< Index of the port */
      para. nSubSamplingFactor = 1;                         /**< Video frame rate sub sampling factor */
           
      eError = OMX_SetConfig (pAppData->pNfHandle, (OMX_INDEXTYPE) OMX_TI_IndexConfigSubSamplingFactor, &para);
      if (eError != OMX_ErrorNone)
          ERROR ("failed to (Nf) OMX_TI_IndexConfigSubSamplingFactor\n");
      
      return (eError);
    }

  • Hi,

    What is width /height you are using. Please note NF has limitation of these to be multiple of 32. Without algEnable ( ie just the color conversion,) do you see same result ?

    Regards

    Vimal

  • Hi, Vimal

    Thanks very much for your reply.

    I tested using 720P, the result is same. Can you check for this?

    Thanks.

  • Hi,

    720 is not multiple of 32, So NF would not work as expected. 

    Regards

    Vimal

  • Hi, Vimal

    Thanks very much for your reply.

    I refer the Nf component of example decode-display. I handle the issue of multiple of 32.

    The result of 720P is relatively normal, but there are flashes.

    However,  the result of 1080P is not very normal, I can't completely removed the excess part, just has a little in screen and also many flashes.

    How can I make the display becomes normal?

    Can you help me?

    Best regards.

  • Hi,

    Could you please let us know about your use case. Also Do you see extra video padding or video is totally garbage. It will help if you could post a clip?

    Thanks

    Vimal