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.

DM814X VPSS capture high 8bits and low 8bits swapped

hello,everybody

        i'm using  DM8147 's  vpss  to capture  datas.   the develop version is  EZSDK 5.05   linux-2.6.37-psp04.04.00.01  . 

      i  found the  input  data  is  0x01 0x02 0x03 0x04,       the  output is  0x02,0x01 ,0x04,0x03   

       the  high  8bits and the low 8bits  exchanged.     it seems that  the  input data is  YUYV and  the  output is UYVY

   THE  CAPTURE SETUP IS:

.video_capture_mode =VPS_CAPT_VIDEO_CAPTURE_MODE_SINGLE_CH_NON_MUX_DISCRETE_SYNC_HSYNC_VSYNC,
.video_if_mode = VPS_CAPT_VIDEO_IF_MODE_8BIT,
.input_data_format = FVID2_DF_YUV422P,

and  i had changed the input_data_format to   FVID2_DF_YUV422I_YUYV,,FVID2_DF_YUV422I_UYVY, but  nothing happened.  

 The  transfer 16bits data between DSP and ARM is different?    Is there some setup about big-edian or  little-endian?    

       thanks and regards

                                                                                                          owen 

       

      

        

  • Hello,

    You could check this topic:

    Hope it helps.

    BR

    Margarita

  • hello, Margarita:

         thanks for your reply.  i  had refer the linked website.  and  found that the below method could solve the problem:

     .       

    Hi Brijesh and Sujith,

    In file \ti_tools\hdvpss\hdvpss_01_00_01_37_patched\packages\ti\psp\vps\core\src\vpscore_vipResSingleChYuv422.c

    I changed all

    pObj->vpdmaInfo[outId].vpdmaChDataType[0] = VPSHAL_VPDMA_CHANDT_YC422;

    to

    pObj->vpdmaInfo[outId].vpdmaChDataType[0] = VPSHAL_VPDMA_CHANDT_CY422;

    Regards,

    Tim

     

         But they are  using  DVR-RDK 3.0.0  ,  we are using  EZSDK-5.05.    And maybe the config had been compiled into the  hdvpss-xmem3.bin  files.  So maybe we could not change it.   

         Could you help  us  ,  how to  setup this "CHdataType"  in  our  environment ?   

        thanks   

                                                                                                                  owen  

     

  • Hello,

    If you make changes in the HDVPSS you shall rebuild the firmware.

    BR
    Margarita