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.

How to downscale image that is outputted by SD VENC

Hi Sir :

I work on DM8148 platform and use DVRRDK_03.00.00.00 to develop our system.

I try to down scale image and change it's X,Y position that is outputted by SD VENC.

In other words, I want to adjust the resolution and position of image that is outputted by SD VENC.

I try to use Demo_displaySetResolution to down scale image but it does not work.

Could you please give me some suggestion or example that shows how to down scale image ?

Best regards,

Marcus

Marcus

  • SD VENC can output only NTSC or PAL resolution and it is not possible scale it. Do you want to display the image in a small portion of the screen and keep the remaining blank ?

  • Hi Badri:

    I appreciate your reply!

    I think I post wrong question.

    I know the SD venc can only output NTSC or PAL resolution.

    My question is how to resize OSD image that is outputted by SD venc?

    I had worked on DM365 platform and I remembered that I could adjust OSD registers to resize image or change the position of the image.

    I try to use grpx_fb_scale routine to adjust size but it does not work.

    Please give me some suggestion or example!

    Best regards,

    Marcus

  • Do you mean you want to scale the graphics plane ? Are you first seeng graphics on SD VENC ? What is the issue you see when you scale the graphics plane

  • Hi Badri:

    I appreciate your reply!

    Yes, I want to scale the graphics plane.

    I try to modify grpx_fb_start_singleBufTied() routine in graphic_single_buf_tied.c to scale the graphics plane.

    Below is what I modify.

    Demo_swMsGetOutSize(Vdis_getResolution(VDIS_DEV_SD), &outWidth, &outHeight);
    //grpx_fb_scale(VDIS_DEV_SD, 0, 0, outWidth, outHeight);
    grpx_fb_scale(VDIS_DEV_SD, 0, 0, outWidth/2, outHeight);

    However, when system run this routine, the system hangs.

    Could you show me how to scale the graphics plane?

    Please help me!

    Best regards,

    Marcus

  • Hi Badri:

    Today, I find out a example saFbdevScalingDisplay.c that shows how to scale the graphics using fb0.

    I try to modify the file and downscale 720*480 to 360*240, but the error message below shows.

    MMap Failed!

    I wonder if it can downscale or something I make a mistake.

    Could you give me some suggestions?

    As I know, DM8148 use single_buf_tied for HDMI and SD venc.

    Does it mean that they use the same memory buffer for display?

    I can see the graphic on screen is downscale but the video image is not.

    Could you give me some idea to downscale video image?

    I really need your help!

    Best regards,

    Marcus 

  • Hi Sir:

    Is there anyone could give me some suggestion?

    Best regards,

    Marcus