Dear all:
I am using DVRRDK3.0 with DM8168EVM.
I create a chain to archive dual stream and JPEG encoding.And I have these three streams saved to 3 files.
I found the stream about the JPEG is always output. The following is my JPEG Coding parameters:
pLinkChPrm = &encPrm.chCreateParams[1];
pLinkDynPrm = &pLinkChPrm->defaultDynamicParams;
pLinkChPrm->format = IVIDEO_MJPEG;
pLinkChPrm->profile = 0;
pLinkChPrm->dataLayout = IVIDEO_FIELD_SEPARATED;
pLinkChPrm->fieldMergeEncodeEnable = FALSE;
pLinkChPrm->enableAnalyticinfo = 0;
pLinkChPrm->enableWaterMarking = 0;
pLinkChPrm->maxBitRate = 0;
pLinkChPrm->encodingPreset = XDM_DEFAULT;
pLinkChPrm->rateControlPreset = 0;
pLinkChPrm->enableHighSpeed = 0;
pLinkDynPrm->intraFrameInterval = 0;
pLinkDynPrm->targetBitRate = (100*1000);
pLinkDynPrm->interFrameInterval = 0;
pLinkDynPrm->mvAccuracy = 0;
pLinkDynPrm->inputFrameRate = 1;
pLinkDynPrm->targetFrameRate = 0;
pLinkDynPrm->qpMin = 0;
pLinkDynPrm->qpMax = 0;
pLinkDynPrm->qpInit = -1;
pLinkDynPrm->vbrDuration = 0;
pLinkDynPrm->vbrSensitivity = 0;
Then I saw this post:http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/270659.aspx
According to this post, I use Venc_disableChn and Venc_enableChn to disable and enable the JPEG encoder channel with out invoke Venc_snapshotDump, I was able to successfully get a frame JPEG stream.
I want to know what is the role about the cmd "ENC_LINK_CMD_SET_CODEC_SNAPSHOT", and when I save a JPEG picture I need to use it?