1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-12 18:02:36 +00:00
mpv/video
wm4 663415b914 vo_opengl: fix issues with some obscure pixel formats
The computation of the tex_mul variable was broken in multiple ways.
This variable is used e.g. by debanding for moving expansion of 10 bit
fixed-point input to normalized range to another stage of processing.

One obvious bug was that the rgb555 pixel format was broken. This format
has component_bits=5, but obviously it's already sampled in normalized
range, and does not need expansion. The tex_mul-free code path avoids
this by not using the colormatrix. (The code was originally designed to
work around dealing with the generally complicated pixel formats by only
using the colormatrix in the YUV case.)

Another possible bug was with 10 bit input. It expanded the input by
bringing the [0,2^10) range to [0,1], and then treating the expanded
input as 16 bit input. I didn't bother to check what this actually
computed, but it's somewhat likely it was wrong anyway. Now it uses
mp_get_csp_mul(), and disables expansion when computing the YUV matrix.
2015-12-07 23:48:59 +01:00
..
decode vd_lavc: fix avctx NULL checks 2015-12-05 23:53:55 +01:00
filter Remove some VLAs 2015-11-06 21:12:20 +01:00
out vo_opengl: fix issues with some obscure pixel formats 2015-12-07 23:48:59 +01:00
csputils.c vo_opengl: fix issues with some obscure pixel formats 2015-12-07 23:48:59 +01:00
csputils.h vo_opengl: fix issues with some obscure pixel formats 2015-12-07 23:48:59 +01:00
d3d.h
fmt-conversion.c video: remove VDA support 2015-09-28 22:03:14 +02:00
fmt-conversion.h
gpu_memcpy.c
gpu_memcpy.h
hwdec.h video: remove VDA support 2015-09-28 22:03:14 +02:00
image_writer.c Replace deprecated av_free_packet() calls 2015-10-28 23:48:56 +01:00
image_writer.h
img_format.c vo_opengl: fix issues with some obscure pixel formats 2015-12-07 23:48:59 +01:00
img_format.h vo_opengl: fix issues with some obscure pixel formats 2015-12-07 23:48:59 +01:00
img_fourcc.h
mp_image_pool.c
mp_image_pool.h
mp_image.c video: replace vf_format outputlevels option with global option 2015-09-29 21:12:26 +02:00
mp_image.h video: replace vf_format outputlevels option with global option 2015-09-29 21:12:26 +02:00
sws_utils.c video: replace vf_format outputlevels option with global option 2015-09-29 21:12:26 +02:00
sws_utils.h
vaapi.c Remove some VLAs 2015-11-06 21:12:20 +01:00
vaapi.h vaapi: drop non-existing FourCC 2015-10-17 14:20:53 +02:00
vdpau_functions.inc
vdpau_mixer.c
vdpau_mixer.h
vdpau.c
vdpau.h