mpv/demux
wm4 5accc5e7c1 vdpau: split off decoder parts, use "new" libavcodec vdpau hwaccel API
Move the decoder parts from vo_vdpau.c to a new file vdpau_old.c. This
file is named so because because it's written against the "old"
libavcodec vdpau pseudo-decoder (e.g. "h264_vdpau").

Add support for the "new" libavcodec vdpau support. This was recently
added and replaces the "old" vdpau parts. (In fact, Libav is about to
deprecate and remove the "old" API without deprecation grace period,
so we have to support it now. Moreover, there will probably be no Libav
release which supports both, so the transition is even less smooth than
we could hope, and we have to support both the old and new API.)

Whether the old or new API is used is checked by a configure test: if
the new API is found, it is used, otherwise the old API is assumed.

Some details might be handled differently. Especially display preemption
is a bit problematic with the "new" libavcodec vdpau support: it wants
to keep a pointer to a specific vdpau API function (which can be driver
specific, because preemption might switch drivers). Also, surface IDs
are now directly stored in AVFrames (and mp_images), so they can't be
forced to VDP_INVALID_HANDLE on preemption. (This changes even with
older libavcodec versions, because mp_image always uses the newer
representation to make vo_vdpau.c simpler.)

Decoder initialization in the new code tries to deal with codec
profiles, while the old code always uses the highest profile per codec.

Surface allocation changes. Since the decoder won't call config() in
vo_vdpau.c on video size change anymore, we allow allocating surfaces
of arbitrary size instead of locking it to what the VO was configured.
The non-hwdec code also has slightly different allocation behavior now.

Enabling the old vdpau special decoders via e.g. --vd=lavc:h264_vdpau
doesn't work anymore (a warning suggesting the --hwdec option is
printed instead).
2013-07-28 19:25:07 +02:00
..
codec_tags.c demux: fix big endian PCM in mkv with demux_mkv 2013-05-11 20:19:08 +02:00
codec_tags.h
demux.c core: make --demuxer not affect external subtitles 2013-07-22 15:11:04 +02:00
demux.h options: simplify --correct-pts handling 2013-07-26 02:11:34 +02:00
demux_cue.c demux: remove useless author/comment fields 2013-07-12 22:16:27 +02:00
demux_edl.c demux: remove useless author/comment fields 2013-07-12 22:16:27 +02:00
demux_lavf.c options: simplify --correct-pts handling 2013-07-26 02:11:34 +02:00
demux_libass.c demux_libass: actually set priv context 2013-07-24 19:47:22 +02:00
demux_mf.c demux: assume correct-pts mode by default 2013-07-12 22:16:27 +02:00
demux_mkv.c Fix some -Wshadow warnings 2013-07-23 00:45:23 +02:00
demux_mng.c demux: make claiming accurate seek the default 2013-07-12 22:29:34 +02:00
demux_packet.h demux: workaround for -demuxer mpegts -correct-pts 2013-05-21 22:07:13 +02:00
demux_raw.c demux_raw: uncrustify 2013-07-14 17:55:54 +02:00
demux_subreader.c demux_subreader: make clang happy to fix warning 2013-07-15 21:28:58 +02:00
ebml.c Fix some -Wshadow warnings 2013-07-23 00:45:23 +02:00
ebml.h
matroska.h demux_mkv: support dirac in mkv 2013-05-21 22:07:12 +02:00
mf.c Fix some -Wshadow warnings 2013-07-23 00:45:23 +02:00
mf.h
ms_hdr.h ms_hdr: remove unused definitions 2013-07-10 02:00:47 +02:00
stheader.h vdpau: split off decoder parts, use "new" libavcodec vdpau hwaccel API 2013-07-28 19:25:07 +02:00