Page 1 of 1

In which module the Scaling is happening?

Posted: 09 Sep 2010 15:12
by nataraajc
Hi,

I would like to know, where the actual Scaling is implemented in VLC. When we select menu Video->Scale the scaling is happening, is that Hardware scaling?
Can I implement my own scaling algorithm instead of the actual VLC one?

Pls throw some light on this.

Thx
Natz

Re: In which module the Scaling is happening?

Posted: 10 Sep 2010 02:13
by RĂ©mi Denis-Courmont
Normally, scaling is done in the GPU. If that's not working, VLC will use libswscale instead.

Re: In which module the Scaling is happening?

Posted: 11 Sep 2010 12:44
by nataraajc
Normally, scaling is done in the GPU. If that's not working, VLC will use libswscale instead.
Hi, Can you be more detailed? Which file I can look for this scaling and change that to my own Scaling algorithm?

Re: In which module the Scaling is happening?

Posted: 13 Sep 2010 13:46
by nataraajc
Hi.. Pls advice me if anyone knows where the actual Scaling is happening...

Re: In which module the Scaling is happening?

Posted: 13 Sep 2010 14:28
by erwan10
As said earlier, in modern PC, scaling occurs at the hardware level (GPU), not at the vlc level.

If you choose to deactivate this GPU extra capability (--vout parameter set for instance to gdi (Windows) or xcb_x11(Linux)), then vlc does use sofware scaling from the libswscale library. (see ffmpeg projects)

If you really want to force software scaling and use your own algorithm, modules/video_filter/swscale.c is probably the file you are interested in.

Re: In which module the Scaling is happening?

Posted: 20 Sep 2010 07:56
by nataraajc
I have implemented the scaling in Video Filter. Its working fine. Thanks for the help :)