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.

DMAI application to capture UYVY in dm368

Hi all,

 

        I am able to capture NV12 format on dm368 using dm368, But not able to capture UYVY format and how to use resizer to resize the video from 720P to 480P.  kept cAttrs.colorSpace=ColorSpace_YUV422P and tried but still i am getting NV12 only.Can any help what are the changes required to capture UYVY format and how to use resizer.

 

 

 

 

Thanks in advance..

  • Hi Venu,

    Which DVSDK version are you using?

    Which demo are you using?

    How did you try changing the NV12 format to UYVY format? I mean, which source file did you change?

    Based on the above answers, i can guide you in the right direction.

    Regards,

    Anshuman

     

  • Hi Anshuman,

         Thanks for reply and sorry for my late response.

         I am using dvsdk4_02_00_06 . Now i am able to get UYVY after changing cAttrs.colorSpace to COLORSPACE_UYVY. Is it possible to resize the camera output to different resolutions . For example i am capturing 720P video i want to resize it to 480P . can u give me some suggestions if it's possible . I am able to crop the image but i need resizer, and its possible to give resizer output to h264 encoder..

     

     

     

    Thanks in advance .....

  • Hi,

    You should be able to do it using the envp->imageWidth and envp->imageHeight parameters passed to the Capture Thr Fxn. This is actually passed from the application.

    In case you are not passing the parameters, DMAI automatically calculates based on the Buffer size. You can look at BufferGfx_calcDimensions().

    I would recommend you to actually just pass the parameters to the capture thread and everything should work.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.