1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-30 11:42:04 +00:00
mpv/video
wm4 27e5416c12 video: add pixel component location metadata
I thought I'd probably want something like this, so the hardcoded stuff
in repack.c can be removed eventually. Of course this has no purpose at
all, and will not have any. (For now, this provides only metadata, and
nothing uses it, apart from the "test" that dumps it as text.)

This adds full support for AV_PIX_FMT_UYYVYY411 (probably out of spite,
because the format is 100% useless). Support for some mpv-only formats
is missing, ironically.

The code goes through _lengths_ to try to make sense out of the FFmpeg
AVPixFmtDescriptor data. Which is even more amazing that the new
metadata basically mirrors pixdesc, and just adds to it. Considering
code complexity and speed issues (it takes time to crunch through all
this shit all the time), and especially the fact that pixdesc is very
_incomplete_, it would probably better to have our own table to all
formats. But then we'd not scramble every time FFmpeg adds a new format,
which would be annoying. On the other hand, by using pixdesc, we get the
excitement to see whether this code will work, or break everything in
catastrophic ways.

The data structure still sucks a lot. Maybe I'll redo it again. The text
dump is weirdly differently formatted than the C struct - because I'm
not happy with the representation. Maybe I'll redo it all over again.

In summary: this commit does nothing.
2020-05-18 01:54:59 +02:00
..
decode options: make imgfmt options always accept "no" 2020-04-09 11:20:45 +02:00
filter draw_bmp: rewrite 2020-05-09 18:02:57 +02:00
out vo_wlshm, vo_drm: set image size with mp_image_set_size 2020-05-17 12:53:26 +02:00
csputils.c csputils: add function for getting uint/float transformation 2020-05-09 18:02:57 +02:00
csputils.h csputils: add function for getting uint/float transformation 2020-05-09 18:02:57 +02:00
cuda.c
d3d.c
d3d.h
fmt-conversion.c video: drop NV24 alias 2020-02-18 18:03:42 +01:00
fmt-conversion.h
hwdec.c
hwdec.h
image_loader.c
image_loader.h
image_writer.c video: clean up some imgfmt related stuff 2020-05-18 01:54:59 +02:00
image_writer.h
img_format.c video: add pixel component location metadata 2020-05-18 01:54:59 +02:00
img_format.h video: add pixel component location metadata 2020-05-18 01:54:59 +02:00
mp_image_pool.c
mp_image_pool.h
mp_image.c video: clean up some imgfmt related stuff 2020-05-18 01:54:59 +02:00
mp_image.h video: clean up some imgfmt related stuff 2020-05-18 01:54:59 +02:00
repack.c video: clean up some imgfmt related stuff 2020-05-18 01:54:59 +02:00
repack.h repack: add support for converting from/to float formats 2020-05-09 18:02:57 +02:00
sws_utils.c video: clean up some imgfmt related stuff 2020-05-18 01:54:59 +02:00
sws_utils.h sws_utils: allow setting zimg options directly 2020-05-09 18:02:57 +02:00
vaapi.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vaapi.h
vdpau_functions.inc
vdpau_mixer.c
vdpau_mixer.h
vdpau.c video: remove RGB32/BGR32 aliases 2020-05-11 19:57:34 +02:00
vdpau.h
zimg.c video: separate repacking code from zimg and make it independent 2020-05-09 18:02:57 +02:00
zimg.h sws_utils: allow setting zimg options directly 2020-05-09 18:02:57 +02:00