path: root/core/cfg-mplayer.h
diff options
authorwm4 <wm4@nowhere>2012-12-11 18:16:42 +0100
committerwm4 <wm4@nowhere>2013-01-13 17:39:32 +0100
commit58d196c07e4faae0e9e7c03c64029c5c36e03c9a (patch)
treed0dd9713e7e2ba490ecaeac4b1a9150a93c97a2c /core/cfg-mplayer.h
parentdab286a159eacdfd995190dcd29513bad9e9fac2 (diff)
video: different way to enable hardware decoding, add software fallback
Deprecate the hardware specific video codec entries (like ffh264vdpau). Replace them with the --hwdec switch, which requests that a specific hardware decoding API should be used. The codecs.conf entries will be removed at a later time, but for now they are useful for testing and compatibility. Instead of --vc=ffh264vdpau, --hwdec=vdpau should be used. Add a fallback if hardware decoding fails. Most hardware decoders (including vdpau) support only a subset of h264, and having such a fallback is supposed to enable a better user experience.
Diffstat (limited to 'core/cfg-mplayer.h')
1 files changed, 6 insertions, 0 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h
index 8ddf4616a0..9627a25140 100644
--- a/core/cfg-mplayer.h
+++ b/core/cfg-mplayer.h
@@ -467,6 +467,12 @@ const m_option_t common_opts[] = {
{"ac", &audio_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
{"vc", &video_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
+ OPT_CHOICE("hwdec", hwdec_api, 0,
+ ({"no", 0},
+ {"vdpau", 1},
+ {"vda", 2},
+ {"crystalhd", 3})),
// postprocessing:
{"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0, NULL},