1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 06:30:06 +00:00
mpv/player
wm4 0348cd080f video: remove d3d11 video processor use from OpenGL interop
We now have a video filter that uses the d3d11 video processor, so it
makes no sense to have one in the VO interop code. The VO uses it for
formats not directly supported by ANGLE (so the video data is converted
to a RGB texture, which ANGLE can take in).

Change this so that the video filter is automatically inserted if
needed. Move the code that maps RGB surfaces to its own inteorp backend.
Add a bunch of new image formats, which are used to enforce the new
constraints, and to automatically insert the filter only when needed.

The added vf mechanism to auto-insert the d3d11vpp filter is very dumb
and primitive, and will work only for this specific purpose. The format
negotiation mechanism in the filter chain is generally not very pretty,
and mostly broken as well. (libavfilter has a different mechanism, and
these mechanisms don't match well, so vf_lavfi uses some sort of hack.
It only works because hwaccel and non-hwaccel formats are strictly
separated.)

The RGB interop is now only used with older ANGLE versions. The only
reason I'm keeping it is because it's relatively isolated (uses only
existing mechanisms and adds no new concepts), and because I want to be
able to compare the behavior of the old code with the new one for
testing. It will be removed eventually.

If ANGLE has NV12 interop, P010 is now handled by converting to NV12
with the video processor, instead of converting it to RGB and using the
old mechanism to import that as a texture.
2016-05-29 19:00:55 +02:00
..
lua ytdl_hook: support multi-arc subtitles 2016-05-23 15:14:14 +02:00
audio.c player: really start audio only once video is ready 2016-04-20 13:08:06 +02:00
client.c command: log property set calls 2016-04-15 13:20:05 +02:00
client.h global: add client API pointer to library handle 2016-01-15 22:54:08 +01:00
command.c video: remove d3d11 video processor use from OpenGL interop 2016-05-29 19:00:55 +02:00
command.h
configfiles.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
core.h video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
external_files.c ta: remove old and redundant macro 2016-05-17 10:53:14 +02:00
external_files.h
lavfi.c lavfi: shut up false positive compiler warnings 2016-04-26 19:38:51 +02:00
lavfi.h player: add complex filter graph support 2016-02-05 23:19:56 +01:00
loadfile.c player: force VO reconfig when unselecting video track 2016-04-23 18:55:24 +02:00
lua.c osd: cleanup: make OSDTYPE_ constants private to OSD code 2016-03-08 22:01:57 +01:00
main.c ipc: add Windows implementation with named pipes 2016-03-23 23:15:20 +11:00
misc.c win32: make taskbar progress indication optional 2016-05-08 17:05:20 +02:00
osd.c player: fix OSD bar chapter marks 2016-04-22 09:31:21 +02:00
playloop.c player: restore usual seeking behavior 2016-05-09 22:54:49 +02:00
screenshot.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
screenshot.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
scripting.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
sub.c osd: cleanup: make OSDTYPE_ constants private to OSD code 2016-03-08 22:01:57 +01:00
video.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00