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

DM8168 DEI LINK scale output failure

$
0
0

Hi all

I develop on dm8168 evm board + vs child board using dvrrdk  2.80,

i capture a XGA 60 progressive video ,and i want to use dei link to get three channel video ,

1,xga 60 for display

2.  xga 60 for h.264 encoder

3.xga 60 down sample to 512x384 for h.264 encoder,

the question is down sample chan no video output, Does progressive  video can not use dei link to do scale?

as progressive video i do not want to do dei , so     deiPrm[i].enableDeiForceBypass  = TRUE;  

or XGA channel will be blocked, no video output any more.

in my code two dei is used ,and i ued dei 0 to process XGA ,DEI 1 process 4 chan PAL ,

the following is my configure code:

  for(i=0; i<2; i++)    

 {         Int32 chId;

        DeiLink_CreateParams_Init(&deiPrm[i]);

        deiPrm[i].inQueParams.prevLinkId = gVcapModuleContext.captureId;        

        deiPrm[i].inQueParams.prevLinkQueId = i;           

        deiPrm[i].outQueParams[DEI_LINK_OUT_QUE_DEI_SC].nextLink =          gMultiCh_VcapVencVdisObj.mergeId[DEI_SC_D1_MERGE_LINK_IDX];           

        deiPrm[i].outQueParams[DEI_LINK_OUT_QUE_VIP_SC].nextLink =          gMultiCh_VcapVencVdisObj.mergeId[DEI_VIP_SC_MERGE_LINK_IDX];   

       deiPrm[i].outQueParams[DEI_LINK_OUT_QUE_VIP_SC_SECONDARY_OUT].nextLink = gMultiCh_VcapVencVdisObj.mergeId[DEI_VIP_SC_MERGE_LINK_IDX];         

       deiPrm[i].enableOut[DEI_LINK_OUT_QUE_DEI_SC]     = TRUE;        

       deiPrm[i].enableOut[DEI_LINK_OUT_QUE_VIP_SC]     = TRUE;        

      deiPrm[i].enableOut[DEI_LINK_OUT_QUE_VIP_SC_SECONDARY_OUT]  = TRUE;           

      deiPrm[i].tilerEnable    = FALSE;        

      deiPrm[i].comprEnable    = FALSE;        

      deiPrm[i].setVipScYuv422Format  = FALSE;     

      deiPrm[i].enableDeiForceBypass  = FALSE;      

      deiPrm[i].enableLineSkipSc   = FALSE;

if(i==0)  

 {   

     deiPrm[i].enableDeiForceBypass  = TRUE;   

     deiPrm[i].enableLineSkipSc   = TRUE;   

}

        /* Set Output Scaling at DEI based on ratio */      deiPrm[i].outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC_SECONDARY_OUT][0].scaleMode = DEI_SCALE_MODE_RATIO;      deiPrm[i].outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC_SECONDARY_OUT][0].ratio.widthRatio.numerator   = 1;      deiPrm[i].outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC_SECONDARY_OUT][0].ratio.widthRatio.denominator  = 2;      deiPrm[i].outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC_SECONDARY_OUT][0].ratio.heightRatio.numerator   = 1;    

 deiPrm[i].outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC_SECONDARY_OUT][0].ratio.heightRatio.denominator = 2;     

 for (chId=1; chId < DEI_LINK_MAX_CH; chId++)

{

             deiPrm[i].outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC_SECONDARY_OUT][chId] =                

             deiPrm[i].outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC_SECONDARY_OUT][0];  

 }

  ....

 }

 best regards

xavier


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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