mpv/video
wm4 a4de782272 mp_image: don't guess colorspace params in mp_image_copy_attributes()
This is "wrong", because you might want mp_image_copy_attributes() to
preserve the information that the colorspace parameters are unknown.
This is important for hwdec -copy modes, which call this function before
fix_image_params() and mp_colorspace_merge() are called.

Instead, just wipe the colorspace attributes if the pixel format changes
in an apparently incompatible way. Use mp_image_params_guess_csp() logic
for this and factor that into its own function.

mp_image_set_attributes() attempts to do something similar, so change
that in the same way. Also, mp_image_params_guess_csp() just returned if
the imgfmt was invalid or unset - just remove that part, because it
annoyingly doesn't fit into the new code, and had little reason to exist
to begin with. (Probably.)
2017-09-19 19:20:27 +02:00
..
decode Revert "vd_lavc: change auto-probe order to prefer cuda over vdpau-copy" 2017-09-19 18:35:29 +02:00
filter mp_image: include config.h directly 2017-08-26 00:41:04 +10:00
out vo_opengl: make the ra_renderpass names consistent 2017-09-13 20:53:19 +02:00
csputils.c video: redo video equalizer option handling 2017-08-22 17:01:35 +02:00
csputils.h video: redo video equalizer option handling 2017-08-22 17:01:35 +02:00
fmt-conversion.c
fmt-conversion.h
gpu_memcpy.c
gpu_memcpy.h
hwdec.c
hwdec.h
image_loader.c
image_loader.h
image_writer.c
image_writer.h
img_format.c
img_format.h
mp_image.c mp_image: don't guess colorspace params in mp_image_copy_attributes() 2017-09-19 19:20:27 +02:00
mp_image.h
mp_image_pool.c
mp_image_pool.h
sws_utils.c video: redo video equalizer option handling 2017-08-22 17:01:35 +02:00
sws_utils.h video: redo video equalizer option handling 2017-08-22 17:01:35 +02:00
vaapi.c
vaapi.h
vdpau.c
vdpau.h
vdpau_functions.inc
vdpau_mixer.c video: redo video equalizer option handling 2017-08-22 17:01:35 +02:00
vdpau_mixer.h video: redo video equalizer option handling 2017-08-22 17:01:35 +02:00
vt.c
vt.h