diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-06-25 23:12:03 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-07-16 21:08:42 +0300 |
commit | 9426c5f92aab4b561c568e4250f5b250e2aa45c5 (patch) | |
tree | bd66b2fd5973e8fb0aa0815d4151e8ff3440b0e0 /libvo/video_out.h | |
parent | 48f0692ab973448de5faa323478d1cba3d42e2af (diff) | |
download | mpv-9426c5f92aab4b561c568e4250f5b250e2aa45c5.tar.bz2 mpv-9426c5f92aab4b561c568e4250f5b250e2aa45c5.tar.xz |
VO: implement shared option handling, use for vdpau
Add infrastructure that allows VOs to specify the suboptions they
take, and get the values directly parsed into their private struct.
The option functionality available with the new system is the same as
for top-level player options. Convert vo_vdpau to use the new system
instead of the old subopt_helper.
Diffstat (limited to 'libvo/video_out.h')
-rw-r--r-- | libvo/video_out.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h index 3dd3ca8a8d..10a3891b7b 100644 --- a/libvo/video_out.h +++ b/libvo/video_out.h @@ -239,6 +239,12 @@ struct vo_driver { * Closes driver. Should restore the original state of the system. */ void (*uninit)(struct vo *vo); + + // Size of private struct for automatic allocation + int privsize; + + // List of options to parse into priv struct (requires privsize to be set) + const struct m_option *options; }; struct vo_old_functions { |