mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
vf: declare config() as legacy
This commit is contained in:
parent
2d0a9c7af0
commit
9839bb08df
@ -49,15 +49,15 @@ struct vf_format {
|
||||
typedef struct vf_instance {
|
||||
const vf_info_t *info;
|
||||
|
||||
int (*config)(struct vf_instance *vf,
|
||||
int width, int height, int d_width, int d_height,
|
||||
unsigned int flags, unsigned int outfmt);
|
||||
|
||||
// Alternative to config() (can pass more image parameters)
|
||||
// Note: the callee is allowed to write *params.
|
||||
int (*reconfig)(struct vf_instance *vf, struct mp_image_params *params,
|
||||
int flags);
|
||||
|
||||
// Legacy variant, use reconfig instead.
|
||||
int (*config)(struct vf_instance *vf,
|
||||
int width, int height, int d_width, int d_height,
|
||||
unsigned int flags, unsigned int outfmt);
|
||||
|
||||
int (*control)(struct vf_instance *vf, int request, void *data);
|
||||
int (*query_format)(struct vf_instance *vf, unsigned int fmt);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user