[MPlayer-dev-eng] writing a 'screenshot' function
Jiri Svoboda
jiri.svoboda at seznam.cz
Sun Jan 4 18:48:05 CET 2004
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
Jiri Svoboda
More information about the MPlayer-dev-eng
mailing list