mpv/video
wm4 810990a746 mp_image: always copy color attributes on hw download
It was noticed that -copy hwdec modes typically dropped the
chroma_location field. This happened because the attributes on hw
download are copied with mp_image_copy_attributes(), which tries to copy
these parameters only if src and dst were both YUV (in an attempt to
copy parameters only if it makes sense).

But hardware formats did not have the YUV flag set (anymore?), and code
shouldn't attempt to check the flag in this way anyway. Drop the check,
and always copy the whole color metadata struct. There is a call to
mp_image_params_guess_csp() below, which tries to unset nonsense
metadata if it was copied from a YUV format to RGB. This function would
also do the right thing for hw formats (although for the cited bug only
the software case matters).

Fixes #4804.
2017-09-19 18:59:01 +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 vo_direct3d: remove non-working nv12 shader support 2017-06-30 18:13:01 +02:00
fmt-conversion.h video/fmt-conversion, img_format: change license to LGPL 2017-06-18 15:15:07 +02:00
gpu_memcpy.c Fix misspellings 2016-06-26 13:47:21 +02:00
gpu_memcpy.h video: refactor GPU memcpy usage 2015-09-25 19:18:16 +02:00
hwdec.c vd_lavc, vaapi: move hw device creation to generic code 2017-02-20 08:39:55 +01:00
hwdec.h hwdec: fix 2 comments 2017-05-24 14:32:23 +02:00
image_loader.c x11: load icon differently 2017-07-01 15:56:12 +02:00
image_loader.h x11: load icon differently 2017-07-01 15:56:12 +02:00
image_writer.c Replace remaining avcodec_close() calls 2017-07-16 12:51:48 +02:00
image_writer.h image_writer, vo_image: change license to LGPL 2017-06-18 15:45:24 +02:00
img_format.c img_format: #if -> #ifdef 2017-08-16 11:15:52 +02:00
img_format.h vo_opengl: support float pixel formats 2017-08-15 17:00:35 +02:00
mp_image.c mp_image: always copy color attributes on hw download 2017-09-19 18:59:01 +02:00
mp_image.h video: add metadata handling for spherical video 2017-08-21 14:56:07 +02:00
mp_image_pool.c Revert "mp_image_pool: disallow adding read only frames" 2017-08-08 16:16:55 +02:00
mp_image_pool.h vaapi: use libavutil functions for copying hw surfaces to memory 2017-01-12 13:58:28 +01:00
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 video: get rid of swapped packed YUV 2017-06-30 18:01:29 +02:00
vaapi.h vd_lavc, vaapi: move hw device creation to generic code 2017-02-20 08:39:55 +01:00
vdpau.c vo_opengl: separate hwdec context and mapping, port it to use ra 2017-08-10 21:24:31 +02:00
vdpau.h vdpau: support new vdpau libavcodec decode API 2017-03-23 11:14:11 +01:00
vdpau_functions.inc vo_vdpau: directly get surface size from surface for screenshots 2015-06-05 22:34:16 +02:00
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 vo_opengl: hwdec_osx: use new format setup function 2017-02-17 17:08:37 +01:00
vt.h videotoolbox: add reverse format mapping function 2017-02-17 13:51:03 +01:00