summaryrefslogtreecommitdiffstats
path: root/video/img_format.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-05-21 01:56:31 +0200
committerwm4 <wm4@nowhere>2020-05-21 02:07:08 +0200
commit8f22aefae1a6460297c478b6e57ff108dbdb52b5 (patch)
tree83d2ff54dc9797794616465a9ae9d19fe464decf /video/img_format.c
parenteb27baf5ec17d15b96db6db93c400a14b07214be (diff)
downloadmpv-8f22aefae1a6460297c478b6e57ff108dbdb52b5.tar.bz2
mpv-8f22aefae1a6460297c478b6e57ff108dbdb52b5.tar.xz
mp_image: reimplement mp_image_clear()
The old code ignored many corner cases, and even wrote "blacker than black" to YUV images. Use the new pixel format metadata and other recently added gimmicky crap, which should make this more correct. Even the almighty fuckup of a format AV_PIX_FMT_UYYVYY411 should work, although that couldn't be tested for obvious reasons. This doesn't work for "monow", but this is so extremely fringe while at the same time painful that I just won't care. In theory, it could be modeled as some sort of inverted gray colorspace or something.
Diffstat (limited to 'video/img_format.c')
0 files changed, 0 insertions, 0 deletions