diff options
Diffstat (limited to 'libmpcodecs/vd.h')
-rw-r--r-- | libmpcodecs/vd.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libmpcodecs/vd.h b/libmpcodecs/vd.h index 4615a9dc6e..76f3d00553 100644 --- a/libmpcodecs/vd.h +++ b/libmpcodecs/vd.h @@ -49,7 +49,15 @@ extern const vd_functions_t * const mpcodecs_vd_drivers[]; #define VDCTRL_QUERY_UNSEEN_FRAMES 9 /* current decoder lag */ // callbacks: -int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt); +int mpcodecs_config_vo2(sh_video_t *sh, int w, int h, + const unsigned int *outfmts, + unsigned int preferred_outfmt); +static inline int mpcodecs_config_vo(sh_video_t *sh, int w, int h, + unsigned int preferred_outfmt) +{ + return mpcodecs_config_vo2(sh, w, h, NULL, preferred_outfmt); +} + mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h); void mpcodecs_draw_slice(sh_video_t *sh, unsigned char** src, int* stride, int w,int h, int x, int y); |