1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-09 23:58:06 +00:00
mpv/core
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
..
input m_config: refactor some things 2013-07-28 18:44:21 +02:00
timeline core: make mpctx->opts a pointer 2013-07-28 18:44:21 +02:00
asxparser.c Cleanup some include statements 2013-07-12 22:16:26 +02:00
asxparser.h
av_common.c core: add common function to initialize AVPacket 2013-06-03 22:40:07 +02:00
av_common.h core: add common function to initialize AVPacket 2013-06-03 22:40:07 +02:00
av_log.c av_log: restore handling of prefixes and line breaks 2013-07-22 15:11:04 +02:00
av_log.h
av_opts.c vf_lavfi: allow setting avopts 2013-05-26 16:44:18 +02:00
av_opts.h
bstr.c
bstr.h
charset_conv.c sub: libguess support for -subcp 2013-06-25 00:11:57 +02:00
charset_conv.h sub: add subtitle charset conversion 2013-06-25 00:11:56 +02:00
codecs.c
codecs.h
command.c core: make mpctx->opts a pointer 2013-07-28 18:44:21 +02:00
command.h input: handle mouse movement differently 2013-06-29 22:58:13 +02:00
cpudetect.c
cpudetect.h
encode_lavc.c core: change open_stream and demux_open signature 2013-07-12 21:56:40 +02:00
encode_lavc.h encode_lavc: simplify encoding status output; remove percentage 2013-06-20 11:17:13 +02:00
encode.h encode_lavc: simplify encoding status output; remove percentage 2013-06-20 11:17:13 +02:00
m_config.c m_config: try to print min/max values as integers in --list-options 2013-07-28 18:56:49 +02:00
m_config.h m_config: hide no-* opts in --list-options, simplify positional subopts 2013-07-28 18:56:48 +02:00
m_option.c options: make legacy hacks for AFs/VFs more explicit 2013-07-22 23:07:23 +02:00
m_option.h options: make legacy hacks for AFs/VFs more explicit 2013-07-22 23:07:23 +02:00
m_property.c m_property: fix non-sense code 2013-07-26 00:19:15 +02:00
m_property.h
m_struct.c
m_struct.h m_struct: try to be more standard C 2013-07-12 18:40:08 +02:00
mp_common.c
mp_common.h options: use m_config for options instead of m_struct 2013-07-21 23:27:31 +02:00
mp_core.h core: make mpctx->opts a pointer 2013-07-28 18:44:21 +02:00
mp_memory_barrier.h core: add a spsc ringbuffer implementation 2013-06-16 18:20:39 +02:00
mp_msg.c mp_msg: Support colors on cygwin 2013-07-24 23:59:05 -03:00
mp_msg.h
mp_osd.h
mp_ring.c mp_ring: make mp_ring_read_cb provide an exact amount of bytes 2013-07-13 10:25:39 +02:00
mp_ring.h mp_ring: improve documentation 2013-07-13 10:33:07 +02:00
mp_talloc.h
mplayer.c vdpau: split off decoder parts, use "new" libavcodec vdpau hwaccel API 2013-07-28 19:25:07 +02:00
options.c m_config: refactor some things 2013-07-28 18:44:21 +02:00
options.h m_config: refactor some things 2013-07-28 18:44:21 +02:00
parser-cfg.c
parser-cfg.h
parser-mpcmd.c options: fix exit code when using help options 2013-05-15 16:02:52 +02:00
parser-mpcmd.h options: fix exit code when using help options 2013-05-15 16:02:52 +02:00
path.c command: add screenshot_to_file command 2013-07-08 20:37:11 +02:00
path.h command: add screenshot_to_file command 2013-07-08 20:37:11 +02:00
playlist_parser.c core: change open_stream and demux_open signature 2013-07-12 21:56:40 +02:00
playlist_parser.h
playlist.c playlist: don't add entries in reverse 2013-07-05 14:07:56 +02:00
playlist.h command: add some playlist manipulation commands 2013-07-02 13:23:26 +02:00
resolve_quvi9.c core: add libquvi 0.9 support 2013-06-28 15:47:35 +02:00
resolve_quvi.c core: rename mplayer.h and quvi.c 2013-06-28 15:40:28 +02:00
resolve.h core: add libquvi 0.9 support 2013-06-28 15:47:35 +02:00
screenshot.c core: make mpctx->opts a pointer 2013-07-28 18:44:21 +02:00
screenshot.h command: add screenshot_to_file command 2013-07-08 20:37:11 +02:00
version.c build: make the "built on" report opt-out 2013-07-11 09:27:01 +02:00