Hi,
I am working on dm814x with DVR_RDK v03.50.00.06, and recently study SCD (scene change detection).
It is strange about the 317 line of demo_vcap_venc_vdec_vdis.c:
#if defined(TI_814X_BUILD) || defined(TI_8107_BUILD)
vsysParams.enableScd = FALSE; <====
vsysParams.numDeis = 1;
vsysParams.numSwMs = 2;
vsysParams.numDisplays = 2;
vsysParams.enableAVsync = TRUE;
#else
vsysParams.enableScd = TRUE;
vsysParams.numDeis = 2;
vsysParams.numSwMs = 2;
vsysParams.numDisplays = 3;
vsysParams.enableAVsync = TRUE;
#endif
I set the vsysParams.enableScd to be TURE, but it seems no effect.
the function OSA_semWait (#224 of demo_scd_bits_wr.c) is never returned:
while(!gScd_ctrl.exitWrThr)
{
status = OSA_semWait(&gScd_ctrl.wrSem, OSA_TIMEOUT_FOREVER);
if(status!=OSA_SOK)
break;
trackChId = gScd_ctrl.chIdTrack; /* so that channel to be displayed/tracked is not changed by parallel threads */
status = Vcap_getAlgResultBuffer(&bitsBuf, TIMEOUT_NO_WAIT);
...
{
status = OSA_semWait(&gScd_ctrl.wrSem, OSA_TIMEOUT_FOREVER);
if(status!=OSA_SOK)
break;
trackChId = gScd_ctrl.chIdTrack; /* so that channel to be displayed/tracked is not changed by parallel threads */
status = Vcap_getAlgResultBuffer(&bitsBuf, TIMEOUT_NO_WAIT);
...
}