In which module the Scaling is happening?

This forum is about all development around libVLC.
nataraajc
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Aug 2010 09:03

In which module the Scaling is happening?

Postby nataraajc » 09 Sep 2010 15:12

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15257
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: In which module the Scaling is happening?

Postby Rémi Denis-Courmont » 10 Sep 2010 02:13

Normally, scaling is done in the GPU. If that's not working, VLC will use libswscale instead.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

nataraajc
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Aug 2010 09:03

Re: In which module the Scaling is happening?

Postby nataraajc » 11 Sep 2010 12:44

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?

nataraajc
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Aug 2010 09:03

Re: In which module the Scaling is happening?

Postby nataraajc » 13 Sep 2010 13:46

Hi.. Pls advice me if anyone knows where the actual Scaling is happening...

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: In which module the Scaling is happening?

Postby erwan10 » 13 Sep 2010 14:28

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.

nataraajc
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Aug 2010 09:03

Re: In which module the Scaling is happening?

Postby nataraajc » 20 Sep 2010 07:56

I have implemented the scaling in Video Filter. Its working fine. Thanks for the help :)


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests

cron