Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

How the video capture decoder(TVP7002) is inited ?

$
0
0

Hi,all

I develop on dm8186 evm, and i see the

int Capture_Encode_Example (IL_ARGS *args) demo  in omx_05_02_00_15, of ezsdk ezsdk_5_02_02_60,

The question is how can configure TVP7002 through IC, I did not find this function in demo? Using V4L2 driver ?

And now i want to using another TVP7002 on EOI child board to capture VGA video signal,

And I also want to use DIV input to rewrite the Capture_Encode_Example demo based OMX,

How to do this then ?Could you give me some help?

Can V4L2 driver used togther with OMX?

-----------------------------------------------------------------------------------

I only find the following code in the source files:

/* capture on EIO card is component input at VIP1 port */
  sHwPortId.eHwPortId = OMX_VIDEO_CaptureHWPortVIP1_PORTA;
  eError = OMX_SetParameter (pAppData->pTvpHandle,
                             (OMX_INDEXTYPE) OMX_TI_IndexParamVFCCHwPortID,
                             (OMX_PTR) & sHwPortId);
  OMX_INIT_PARAM (&sHwPortParam);
  sHwPortParam.eCaptMode = OMX_VIDEO_CaptureModeSC_NON_MUX;
  sHwPortParam.eVifMode = OMX_VIDEO_CaptureVifMode_16BIT;
  sHwPortParam.eInColorFormat = OMX_COLOR_FormatYCbYCr;
  sHwPortParam.eScanType = OMX_VIDEO_CaptureScanTypeProgressive;
  sHwPortParam.nMaxHeight = pAppData->nHeight;
  sHwPortParam.nMaxWidth = pAppData->nWidth;
  sHwPortParam.nMaxChnlsPerHwPort = 1;

  eError = OMX_SetParameter (pAppData->pTvpHandle,
                             (OMX_INDEXTYPE)
                             OMX_TI_IndexParamVFCCHwPortProperties,
                             (OMX_PTR) & sHwPortParam);

  OMX_INIT_PARAM (&sVidDecParam);

  /* set the mode based on capture/display device */
  if (strcmp (pAppData->mode, "1080p") == 0) {
  sVidDecParam.videoStandard =  OMX_VIDEO_DECODER_STD_1080P_60;
  }
  else if (strcmp (pAppData->mode, "720p") == 0) {
  sVidDecParam.videoStandard =  OMX_VIDEO_DECODER_STD_720P_60;
  }
 
  /* setting TVP7002 component input */
  sVidDecParam.videoDecoderId = OMX_VID_DEC_TVP7002_DRV;
  sVidDecParam.videoSystemId = OMX_VIDEO_DECODER_VIDEO_SYSTEM_AUTO_DETECT;
  eError = OMX_SetParameter (pAppData->pTvpHandle,
                             (OMX_INDEXTYPE) OMX_TI_IndexParamCTRLVidDecInfo,
                             (OMX_PTR) & sVidDecParam);


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>