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.

Davinci dm6446 video change video resolution, resize

Hello everyone,

I am now ecperience a problem. I want to capture video and do some processing with my Davinci dm6446.

The input is D1 size, i.e. 720x480. so I can get a D1-sized frame buffer

But the processing part can only accept buffer sized 176x144, and after that, I want to show the processed video in size 360x240.

I tried to modify the buffer parameter, but it didn't work.

It did truncate or crop, but not resize.

I am a newbie of DSP, so could someone offer me an easy way to chage the resolution of video ?

Thx!

  • Hello,

    Your question is not specific enough for our experts to comment on.

    Are you working on Linux or CCS?

    Are you using the VPFE resizer to resize the D1 image? How do you plan to generate the 360x240 from 176x144? using only the HW in VPBE OSD?

    I would first recommend you to look at the VPBE and VPFE user guide available in the product folder, specifically page 96 of SPRUE38H, which explains how to program the VPFE resizer. Compare your settings with the value that is set currently. Once you are able to get that 176x144 frame correctly, move on to the display side.

  • Hello ,Yin

    Thanks for your reply. Let me clarify some points.

    First, I am now working on Linux, not CCS.

    I have read the encode and encodedecode example provided by DVSDK.

    So, I think I know a little bit about how to capture a video from a camera and display it.

    What I want to do is,

    video from camera->capture a video( D1 size)->resize it to 360x240(a little bit change from last post)->do processing->display it

     

    Can you give me some hint or advice or some material I could read to get my job done?

    Thx.

  • So you are downsampling by 2 both vertically and horizontally, and you want to know which API can do that, right?

    How are you displaying the processed frame? are you displaying 360x240 or are you up-sampling it back to D1?

    I would STILL first recommend you to spend some time and look at the VPBE and VPFE user guide available in the product folder, if you have not already done so.

    After that, please be specific about your questions.

     

  • Hi, I have read the manual you recommended.

    And I decided to use the Resizer.

    So, what I want is to find a API to call to resize a captured frame buffer from D1 to 360x240.

    Is there some examples for resizer?

    Let me describe the program flow I want as below,

    video input->capture a D1 size frame->resize it to 360x480->do my own process->display(still in 360x480 size)

    Thx!

     

  • I am sure you meant 360x240. Just a quick question, how do you plan to display 360x240? directly to a LCD panel? You might find it a lot easier to display it @ D1 resolution as well (VPBE has internal upscaler that you can use to easily upscale 360x240 to D1).

    Which DVSDK demo / project are you modifying to create your own application? Please list the exact path in the DVSDK folder. Also, which DVSDK/Linux version are you using?

  • Sorry for the typo, and yes I mean 360x240.

     

    I will display it directly to a LCD panel.

     

    I am now using DVSDK_2_00_00_22,

     

    and the example I am going to modify is from DVSDK/dvsdk_demos_2_00_00_07/dm6446/encode

     

    I want to modify this example for capture video and display part.

     

    But I cannot find a resizer example from my dvsdk files.

  • Try SPRUG86.pdf - LSP 2.0 DaVinci Linux Resizer Driver

    For more info, see here: http://processors.wiki.ti.com/index.php/DVSDK_2.0_Contents

    I didn't find any other resizer example.

  • Hi jay jay,

     

    i think that the DMAI resizer suits your case.

    Have a look at http://processors.wiki.ti.com/index.php/Davinci_Multimedia_Application_Interface.

    You can download the framework and inside you will find examples using the resizer that was suggested to you, but with a simpler interface.

     

     

    Best Regards