UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
614 Views
Registered: ‎01-20-2019

Scale down to 640x480 with vprocss_v2_5 IP

Jump to solution

Dear ALL 

 

great day !!

I successfully Scale down video I/P video from 1080p to 720p by using vprocss_v2_5 I.P.

My question is could we scale down to 640x480 resolution if the input video is 1080p. and if it possible then please tell me the extra configuration has to be required for 1080p to 640x480 conversion using vprocss_v2_5 I.P

Thank you

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
538 Views
Registered: ‎11-09-2015

回复: Scale down to 640x480 with vprocss_v2_5 IP

Jump to solution

Hi @deepg799 ,

I am quite sure I already tested this downscaling. Again, you might want to refer to the example design. Just modify the resolution for in and out.


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

9 Replies
Moderator
Moderator
576 Views
Registered: ‎08-01-2007

回复: Scale down to 640x480 with vprocss_v2_5 IP

Jump to solution

Yes you can, 480p setting is just like 720p.

Adventurer
Adventurer
569 Views
Registered: ‎01-20-2019

回复: Scale down to 640x480 with vprocss_v2_5 IP

Jump to solution

I has tried with below code but this code is working for 720p not for 480p.

XVprocSs_Config* vprocss_config; 
vprocss_config = XVprocSs_LookupConfig(XPAR_XVPROCSS_0_DEVICE_ID); // same ID

if(vprocss_config == NULL){
xil_printf("ERROR:: VProcess Lookup failed\r\n");
return(XST_FAILURE);
}

XVprocSs_LogReset(&vprocss); 
memset(&vprocss, 0, sizeof(XVprocSs)); 
status = XVprocSs_CfgInitialize(&vprocss, vprocss_config, vprocss_config->BaseAddress); /

if(status != XST_SUCCESS){
xil_printf("ERROR:: VProcess Initialization failed\r\n");
return(XST_FAILURE);
}

if (rx_mode == 0) {
resolution = 4; 
}
else if (rx_mode == 2){
resolution = 6;
}

FRAME_HORIZONTAL_HSIZE = (u32) resolutions[resolution][5]; // rx_mode
FRAME_VERTICAL_LEN = (u32) resolutions[resolution][0];

thisCase.width_in = FRAME_HORIZONTAL_HSIZE;
thisCase.height_in = FRAME_VERTICAL_LEN;

thisCase.Cformat_in = XVIDC_CSF_YCRCB_422;
thisCase.IsInterlaced = FALSE;
thisCase.width_out = 640;     //1280;
thisCase.height_out =480 ;   //720;
thisCase.Cformat_out = XVIDC_CSF_YCRCB_422;

//Stream In
XSys_SetStreamParam(&vprocss, XSYS_VPSS_STREAM_IN, thisCase.width_in, thisCase.height_in,
thisCase.Cformat_in, thisCase.IsInterlaced);

//Stream Out
XSys_SetStreamParam(&vprocss, XSYS_VPSS_STREAM_OUT, thisCase.width_out, thisCase.height_out,
thisCase.Cformat_out, thisCase.IsInterlaced);

status = XVprocSs_SetSubsystemConfig(&vprocss); 

XVprocSs_ReportSubsystemConfig(&vprocss);

 

 

0 Kudos
Adventurer
Adventurer
545 Views
Registered: ‎01-20-2019

回复: Scale down to 640x480 with vprocss_v2_5 IP

Jump to solution

@nathanxI could helpful for me if you give some suggestion for the above mentioned code, the above mentioned code is working fine for 720p scale down but it is not working for 480p.

0 Kudos
Mentor watari
Mentor
540 Views
Registered: ‎06-16-2013

回复: Scale down to 640x480 with vprocss_v2_5 IP

Jump to solution

Hi @deepg799 

 

Do you want to keep aspect ratio ?

If yes, it is hard to do it.

 

Best regards,

0 Kudos
Moderator
Moderator
539 Views
Registered: ‎11-09-2015

回复: Scale down to 640x480 with vprocss_v2_5 IP

Jump to solution

Hi @deepg799 ,

I am quite sure I already tested this downscaling. Again, you might want to refer to the example design. Just modify the resolution for in and out.


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

Adventurer
Adventurer
515 Views
Registered: ‎01-20-2019

回复: Scale down to 640x480 with vprocss_v2_5 IP

Jump to solution

@florentwCan you tell me, what is the  max. scaling down is possible using vpss,

In my case input to a scalar is 1080p & I am scaling down to 720p but scaling down to 480p is not working for me. your suggestion could be helpful for me.

0 Kudos
Adventurer
Adventurer
514 Views
Registered: ‎01-20-2019

回复: Scale down to 640x480 with vprocss_v2_5 IP

Jump to solution

@watari can you tell me what is the max. scaling down ratio which vpss is supports. 

0 Kudos
Mentor watari
Mentor
477 Views
Registered: ‎06-16-2013

回复: Scale down to 640x480 with vprocss_v2_5 IP

Jump to solution

Hi @deepg799 

 

> can you tell me what is the max. scaling down ratio which vpss is supports. 

 

VPSS doen't have any limitation about scaling down ratio.

You only need to consider aspect ratio, if ex. you down-scale from FHD to VGA.

Because an aspect ratio is different between them. (FHD -> 16:9, VGA -> 4:3)

 

Best regards,

 

0 Kudos
Moderator
Moderator
457 Views
Registered: ‎11-09-2015

回复: Scale down to 640x480 with vprocss_v2_5 IP

Jump to solution

Hi @deepg799 ,

As mentioned by @watari , the VPSS does not have a real limitation. It might no be happy with resolution below 32 pixels but usual video resolutions should work


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos