diff options
author | wm4 <wm4@nowhere> | 2012-11-04 16:24:18 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 17:39:31 +0100 |
commit | 58d3469fd6e983887a64afc51e0611504b749b3e (patch) | |
tree | d86f179247720d6b88be1e5522edcf7d530d7375 /video/out/vo.h | |
parent | 191bcbd1f2a0aa7ab64ed0e2768f29fedf2f4c30 (diff) | |
download | mpv-58d3469fd6e983887a64afc51e0611504b749b3e.tar.bz2 mpv-58d3469fd6e983887a64afc51e0611504b749b3e.tar.xz |
video/out: replace VOCTRL_QUERY_FORMAT with vo_driver.query_format
Diffstat (limited to 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index 7798d6393b..186ce4d4cf 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -36,10 +36,8 @@ #define VO_EVENT_MOVE 16 enum mp_voctrl { - /* does the device support the required format */ - VOCTRL_QUERY_FORMAT = 1, /* signal a device reset seek */ - VOCTRL_RESET, + VOCTRL_RESET = 1, /* used to switch to fullscreen */ VOCTRL_FULLSCREEN, /* signal a device pause */ @@ -154,6 +152,14 @@ struct vo_driver { * returns: zero on successful initialization, non-zero on error. */ int (*preinit)(struct vo *vo, const char *arg); + + /* + * Whether the given image format is supported and config() will succeed. + * format: fourcc of pixel format + * returns: 0 on not supported, otherwise a bitmask of VFCAP_* values + */ + int (*query_format)(struct vo *vo, uint32_t format); + /* * Initialize (means CONFIGURE) the display driver. * params: |