diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-11-25 23:59:23 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-11-25 23:59:23 +0200 |
commit | 8d6fc26bb982c5ecb7dbe4c20d51dec47f82abbf (patch) | |
tree | 60e7fca2028093bf454f0d62bd96b40c3e4ab7a4 /libmpcodecs/vf.h | |
parent | 9fae75b81ce2eb475db7652083b388e704833a72 (diff) | |
parent | 3215ec05fe27b1e07c863aadf4402c5bd6dbec33 (diff) | |
download | mpv-8d6fc26bb982c5ecb7dbe4c20d51dec47f82abbf.tar.bz2 mpv-8d6fc26bb982c5ecb7dbe4c20d51dec47f82abbf.tar.xz |
Merge branch 'screenshot' (early part)
Diffstat (limited to 'libmpcodecs/vf.h')
-rw-r--r-- | libmpcodecs/vf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libmpcodecs/vf.h b/libmpcodecs/vf.h index fa58445e1e..0dac19c9f6 100644 --- a/libmpcodecs/vf.h +++ b/libmpcodecs/vf.h @@ -89,6 +89,12 @@ typedef struct vf_seteq { int value; } vf_equalizer_t; +struct vf_ctrl_screenshot { + // When the screenshot is complete, pass it to this callback. + void (*image_callback)(void *, mp_image_t *); + void *image_callback_ctx; +}; + #define VFCTRL_QUERY_MAX_PP_LEVEL 4 // query max postprocessing level (if any) #define VFCTRL_SET_PP_LEVEL 5 // set postprocessing level #define VFCTRL_SET_EQUALIZER 6 // set color options (brightness,contrast etc) @@ -98,7 +104,7 @@ typedef struct vf_seteq { #define VFCTRL_DUPLICATE_FRAME 11 // For encoding - encode zero-change frame #define VFCTRL_SKIP_NEXT_FRAME 12 // For encoding - drop the next frame that passes thru #define VFCTRL_FLUSH_FRAMES 13 // For encoding - flush delayed frames -#define VFCTRL_SCREENSHOT 14 // Make a screenshot +#define VFCTRL_SCREENSHOT 14 // Take screenshot, arg is vf_ctrl_screenshot #define VFCTRL_INIT_EOSD 15 // Select EOSD renderer #define VFCTRL_DRAW_EOSD 16 // Render EOSD */ #define VFCTRL_SET_DEINTERLACE 18 // Set deinterlacing status |