[MPlayer-dev-eng] writing a 'screenshot' function
D Richard Felker III
dalias at aerifal.cx
Sun Jan 4 19:07:23 CET 2004
On Sun, Jan 04, 2004 at 06:48:05PM +0100, Jiri Svoboda wrote:
> Hi,
>
> > i've seen a keybinding for 's'->MP_CMD_SCREENSHOT using
> > VOCTRL_SCREENSHOT in video_out, so i'd like to try to implement it.
> > my real question is:
> > is there a common interface for all vo drivers to get current
> > image attributes or it depends by the driver in use???
> > just to know if i must implement it into vo_<drivername>.c or
> > elsewhere in a common place :-)
> > (if not i'll insert into vo_xv.c)
>
> Did You think about differrent approach - using filter layer? You can create
> "dummy"
> filter for this. This filter will not change image but when filter receives
> MP_CMD_SCREENSHOT filter will copy data from mp_image to whereever
> you wont. This filter can be loaded at user request or automatically at the
> end
> of filter chain (same system as menu filter is used).
> This way You will not need to mess with vo_xxxx.c
Actually not possible. By the time the screenshot request comes, the
filter no longer has the picture. Saving a copy every frame is
prohibitively slow.
Rich
More information about the MPlayer-dev-eng
mailing list