FFmpeg/libavutil
Jan Ekström 3f69797e9b pgssubdec: fix subpicture output colorspace and range
Functionality used before didn't widen the values from limited to
full range. Additionally, now the decoder uses BT.709 where it
should be used according to the video resolution.

Default for not yet set colorimetry is BT.709 due to most observed
HDMV content being HD.

BT.709 coefficients were gathered from the first two parts of BT.709
to BT.2020 conversion guide in ARIB STD-B62 (Pt. 1, Chapter 6.2.2).
They were additionally confirmed by manually calculating values.

Fixes #4637
(cherry picked from commit 9779b62624)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-28 03:47:13 +02:00
..
aarch64 Merge commit '780cd20b00a69e26bbfffbb8eec16fbe999ea793' 2014-12-09 12:08:29 +01:00
arm arm: only enable setend on ARMv6 2015-06-05 17:14:10 +02:00
avr32
bfin Merge commit '880e2aa23645ed9871c66ee1cbd00f93c72d2d73' 2014-06-02 19:38:01 +02:00
mips avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC idct functions 2015-06-04 18:39:53 +02:00
ppc avutil/ppc/cpu: add include avassert.h 2015-06-05 19:12:58 +02:00
sh4
tomi
x86 x86/float_dsp: zero extend offset from ff_scalarproduct_float_sse 2016-01-08 14:02:47 -03:00
Makefile avutil: Extract gamma determination from PNG encoder for future use. Adds private avpriv_get_gamma_from_trc() function to libavutil. 2015-03-05 12:26:22 +01:00
adler32.c adler32: Fix doxy group definition 2014-04-07 01:31:02 +02:00
adler32.h adler32: Fix doxy group definition 2014-04-07 01:31:02 +02:00
aes.c avutil/aes: Add () to protect the ROT() arguments 2015-02-17 00:22:42 +01:00
aes.h
atomic.c avutil/atomic: reuse ret to avoid dereferencing twice the same value. 2014-12-27 22:14:23 +01:00
atomic.h Merge remote-tracking branch 'qatar/master' 2013-12-20 13:16:56 +01:00
atomic_gcc.h lavu/atomic: add support for the new memory model aware gcc built-ins 2014-10-29 14:09:58 -03:00
atomic_suncc.h
atomic_win32.h msvc: Fix compilation errors due to header include order. 2014-11-27 12:40:18 +01:00
attributes.h avutil/attributes: Add () to protect the AV_GCC_VERSION_AT_LEAST() arguments 2015-02-17 00:21:48 +01:00
audio_fifo.c avutil/audio_fifo: use av_freep() to avoid leaving stale pointers in memory 2014-12-27 15:49:13 +01:00
audio_fifo.h Merge commit 'a7985cfd4c51b7fe2b870fc4ecd109707ee035d6' 2014-07-07 00:55:52 +02:00
audioconvert.h
avassert.h
avstring.c avutil/avstring: Do not print NULL 2015-06-19 18:40:49 +02:00
avstring.h lavu/avstring: add av_append_path_component() funcion 2015-03-31 23:50:46 +02:00
avutil.h avutil: fix version macros doxygen module 2014-07-04 20:54:19 +02:00
avutilres.rc Add Windows resource file support for shared libraries 2013-12-05 23:42:07 +01:00
base64.c Merge commit 'fb0c9d41d685abb58575c5482ca33b8cd457c5ec' 2014-01-26 01:54:55 +01:00
base64.h
blowfish.c Merge remote-tracking branch 'qatar/master' 2013-09-11 12:51:01 +02:00
blowfish.h
bprint.c avutil & avdevice: remove av_bprint_fd_contents() 2014-07-15 21:49:56 +02:00
bprint.h avutil/bprint: C++ compatible AVBPrint definition. 2014-11-29 03:51:35 +01:00
bswap.h Fix compile error on bfin. 2014-08-05 01:54:47 +02:00
buffer.c avutil/buffer: Avoid moving the AVBufferRef to a new place in memory in av_buffer_make_writable() 2015-03-12 02:15:28 +01:00
buffer.h Revert "lavu/buffer: add release function" 2014-03-06 03:23:40 +01:00
buffer_internal.h Merge commit 'fbd6c97f9ca858140df16dd07200ea0d4bdc1a83' 2014-11-27 23:42:16 +01:00
camellia.c libavutil: camellia: remove unwanted memory loads 2015-02-10 17:15:36 +01:00
camellia.h avutil/camellia: fix documentation for av_camellia_crypt() 2015-01-02 21:23:45 +01:00
cast5.c avutil/cast5: Make iv array static 2015-05-02 14:37:48 +02:00
cast5.h libavutil: Added cbc mode to cast128 2014-12-19 14:35:29 +01:00
channel_layout.c avutil/channel_layout: AV_CH_LAYOUT_6POINT1_BACK not reachable in parsing 2016-04-28 03:47:13 +02:00
channel_layout.h channel_layout: doxy: merge functions with macros 2014-07-04 22:06:49 +02:00
color_utils.c avutil: Extract gamma determination from PNG encoder for future use. Adds private avpriv_get_gamma_from_trc() function to libavutil. 2015-03-05 12:26:22 +01:00
color_utils.h avutil: Extract gamma determination from PNG encoder for future use. Adds private avpriv_get_gamma_from_trc() function to libavutil. 2015-03-05 12:26:22 +01:00
colorspace.h pgssubdec: fix subpicture output colorspace and range 2016-04-28 03:47:13 +02:00
common.h avutil/common: Add FFNABS() 2015-11-12 02:55:46 +01:00
cpu.c x86: add AV_CPU_FLAG_AVXSLOW flag 2015-05-31 12:07:11 +02:00
cpu.h Merge commit '7d07ee5a9bd170a06d26fd967cf8de5d3b1ce331' 2015-05-31 22:47:50 +02:00
cpu_internal.h Merge commit 'cae39851201b7781f1262e1c23627b45e6e80bb4' 2015-05-31 23:59:48 +02:00
crc.c Merge commit '0983d48111f578e17e8c1967d25ce593fce62b63' 2014-04-17 22:38:51 +02:00
crc.h Merge commit '0983d48111f578e17e8c1967d25ce593fce62b63' 2014-04-17 22:38:51 +02:00
des.c Merge remote-tracking branch 'qatar/master' 2013-09-11 12:51:01 +02:00
des.h
dict.c avutil/dict: Use size_t for appending strings 2015-05-10 16:09:07 +02:00
dict.h avutil: remove FF_CONST_AVUTIL53, its no longer needed 2014-11-24 02:22:19 +01:00
display.c Merge commit 'e4fe535d12f4f30df2dd672e30304af112a5a827' 2015-03-24 01:14:31 +01:00
display.h Merge commit 'e4fe535d12f4f30df2dd672e30304af112a5a827' 2015-03-24 01:14:31 +01:00
downmix_info.c Merge commit 'c98f3169bfb578c1a4e407b44524f0bfa3b4dc0c' 2014-02-16 02:05:29 +01:00
downmix_info.h fix spelling errors 2014-07-12 22:33:27 +02:00
dynarray.h fix spelling errors 2014-07-12 22:33:27 +02:00
error.c avutil/error: list most common error code in error_entries when strerror_r() is unavailable 2015-02-10 23:02:24 +01:00
error.h avutil/error: Introduce new error codes for 4XX and 5XX replies from remote servers 2014-10-19 22:32:14 +02:00
eval.c avutil/eval: check for av_malloc failure 2015-04-01 15:59:58 +02:00
eval.h Do not leave positive values undefined when negative are defined as error 2013-10-19 16:42:57 +02:00
fifo.c avutil/fifo: Fix the case where func() returns less bytes than requested in av_fifo_generic_write() 2015-07-18 20:23:46 +02:00
fifo.h avutil: remove FF_CONST_AVUTIL53, its no longer needed 2014-11-24 02:22:19 +01:00
file.c Merge commit 'bf704132a51f5d838365158331d4e535e1df4c8e' 2015-02-14 21:27:44 +01:00
file.h avutil/file: fix av_tempfile() documentation 2014-11-24 04:59:02 +01:00
file_open.c avutil/file_open: avoid file handle inheritance on Windows 2015-11-12 02:55:46 +01:00
fixed_dsp.c libavutil: Add new fixed dsp functions. 2015-06-03 22:50:53 +02:00
fixed_dsp.h libavutil: Add new fixed dsp functions. 2015-06-03 22:50:53 +02:00
float_dsp.c avutil/float_dsp: add avpriv_float_dsp_alloc() 2014-11-18 11:43:01 +01:00
float_dsp.h avutil/float_dsp: Fix ambiguous wording about vector products 2015-06-01 16:22:27 +02:00
frame.c avutil/frame: Free destination qp_table_buf in frame_copy_props() 2016-04-28 03:47:12 +02:00
frame.h avutil/frame: fix everythnig/everything typo 2015-04-24 10:57:03 +02:00
hash.c lavu/hash.c: Add missing "static const". 2014-08-31 10:33:02 +02:00
hash.h lavu/hash: add hash_final helpers. 2014-04-29 13:24:11 +02:00
hmac.c avutil/hmac: Check av_hmac_alloc() return code 2015-03-30 23:24:33 +02:00
hmac.h
imgutils.c imgutils: initialize palette padding bytes in av_image_alloc 2015-05-13 03:58:08 +02:00
imgutils.h Replace a few leftover instances of enum PixelFormat with enum AVPixelFormat 2015-03-17 23:53:33 +02:00
integer.c avutil/integer: Fix av_mod_i() with negative dividend 2015-12-14 16:51:00 +01:00
integer.h
internal.h Put a space between string literals and macros. 2015-07-18 20:23:45 +02:00
intfloat.h Reinstate proper FFmpeg license for all files. 2013-08-30 15:47:38 +00:00
intmath.c
intmath.h libavutil: add x86 optimized av_popcount 2015-02-25 19:58:00 -03:00
intreadwrite.h libavutil: document side effects of macros 2014-07-19 14:55:46 +02:00
lfg.c
lfg.h
libavutil.v lavu: stop exporting internal functions 2014-08-12 04:35:52 +02:00
libm.h Remove fminf() emulation. 2014-11-08 11:31:11 +01:00
lls.c avutil/lls: Make unchanged function arguments const 2014-09-28 19:32:07 +02:00
lls.h avutil/lls: Make unchanged function arguments const 2014-09-28 19:32:07 +02:00
log.c avutil/log: fix zero length gnu_printf format string warning 2015-11-12 02:55:46 +01:00
log.h doc: fix spelling errors 2015-06-18 22:09:01 +02:00
log2_tab.c
lzo.c avutil/lzo: fix resource leak 2014-10-11 12:15:26 +02:00
lzo.h
macros.h Merge remote-tracking branch 'qatar/master' 2013-12-30 11:23:32 +01:00
mathematics.c avutil/mathematics: Fix division by 0 2015-12-14 16:51:01 +01:00
mathematics.h fix various typos 2014-06-03 10:58:19 -08:00
md5.c avutil/md5: workaround clang 3.5 #20849 2014-09-05 00:43:48 +02:00
md5.h
mem.c libavutil/mem: use size_t for the length in av_strdup() 2015-05-10 16:06:50 +02:00
mem.h Merge commit '8ddc32629a6d6be77256694c9e322dde134609f3' 2014-08-14 00:29:06 +02:00
motion_vector.h avutil/motion_vector.h: fix coordinate types 2014-08-21 12:27:34 +02:00
murmur3.c avutil/murmur3: Add () to protect the ROT() arguments 2015-02-17 00:18:15 +01:00
murmur3.h
old_pix_fmts.h Merge remote-tracking branch 'qatar/master' 2013-11-14 03:26:35 +01:00
opencl.c OpenCL: Fix ABI incompatibility issues 2015-04-28 12:28:53 +02:00
opencl.h OpenCL: Fix ABI incompatibility issues 2015-04-28 12:28:53 +02:00
opencl_internal.c lavu: rename ff_opencl_set_parameter() to avpriv_opencl_set_parameter() 2014-08-12 03:49:45 +02:00
opencl_internal.h lavu: rename ff_opencl_set_parameter() to avpriv_opencl_set_parameter() 2014-08-12 03:49:45 +02:00
opt.c avutil/opt: check for and handle errors in av_opt_set_dict2() 2016-01-31 00:23:46 +01:00
opt.h doc: avoid incorrect phrase 'allows to' 2015-06-19 20:31:44 +02:00
parseutils.c Merge commit '108f2f381acb93827fb4add0517eeae859afa3bf' 2015-04-07 20:01:36 +02:00
parseutils.h Merge commit '27f274628234c1f934b9a6a6380ed567c1b4ceae' 2015-04-07 20:46:25 +02:00
pca.c avutil/pca: Check for av_malloc* failures 2015-03-30 04:37:42 +02:00
pca.h avutil/pca: Make argument of ff_pca_add() const 2014-09-28 16:17:18 +02:00
pixdesc.c avutil/pixdesc: Make get_color_type() aware of CIE XYZ formats 2016-04-28 03:47:12 +02:00
pixdesc.h pixelutils: indent comments in pixdesc.h to be clearer 2015-03-04 21:58:53 +01:00
pixelutils.c avutil: check pixdescs in a different place 2015-02-10 15:45:02 +01:00
pixelutils.h avutil: add pixelutils API 2014-08-05 21:05:52 +02:00
pixfmt.h doc: fix spelling errors 2015-06-18 22:09:01 +02:00
qsort.h
random_seed.c avutil/random_seed: Add the runtime in cycles of the main loop to the entropy pool 2016-04-28 03:47:13 +02:00
random_seed.h
rational.c avutil: Add av_q2intfloat() 2015-05-26 18:31:53 +02:00
rational.h avutil: Add av_q2intfloat() 2015-05-26 18:31:53 +02:00
rc4.c
rc4.h
replaygain.h Merge commit '8542f9c4f17125d483c40c0c5723842f1c982f81' 2014-04-04 22:52:12 +02:00
ripemd.c ripemd: move ripemd{256, 320} into separate functions 2015-05-07 15:40:56 +02:00
ripemd.h
samplefmt.c avutil: remove obsolete FF_API_SAMPLES_UTILS_RETURN_ZERO cruft 2014-10-05 17:09:56 -03:00
samplefmt.h avutil: remove obsolete FF_API_GET_BITS_PER_SAMPLE_FMT cruft 2014-10-05 17:09:49 -03:00
sha.c avutil/sha: Protect macro arguments with () 2015-02-18 22:50:41 +01:00
sha.h
sha512.c lavu/sha512: Fully unroll the transform function loops 2013-09-11 21:55:59 +02:00
sha512.h
softfloat.c avutil/softfloat: Move av_sincos_sf() from header to c file 2015-06-05 13:42:05 +02:00
softfloat.h avutil/softfloat: Fix alternative implementation of av_normalize1_sf() 2015-06-05 17:40:16 +02:00
softfloat_tables.h avutil/softfloat_tables: add missing stdint.h include 2015-04-30 17:38:41 -03:00
stereo3d.c Merge commit '159a06dfc83d189f753c4583583ddfb571552ff5' 2014-08-14 00:17:47 +02:00
stereo3d.h Merge commit '440842c4eb1d7709654ec97cd687663d11ef499c' 2014-06-19 23:47:10 +02:00
thread.h thread: use "" instead of <> for including the w32pthreads wrapper 2014-12-14 18:15:57 +01:00
threadmessage.c lavu: add thread message API. 2014-05-26 11:40:15 +02:00
threadmessage.h lavu: add thread message API. 2014-05-26 11:40:15 +02:00
time.c Merge commit '1bd0bdcdc236099d5c0d179696951f35f5310fa5' 2014-10-24 11:06:56 +02:00
time.h Merge commit '1bd0bdcdc236099d5c0d179696951f35f5310fa5' 2014-10-24 11:06:56 +02:00
time_internal.h avutil/time_internal: do not attempt to override *time_r() macros 2014-11-05 18:44:15 +01:00
timecode.c avutil/timecode: Fix fps check 2015-12-14 16:51:00 +01:00
timecode.h
timer.h avutil/timer: give each printed value of STOP_TIMER a fixed length 2015-03-27 04:44:58 +01:00
timestamp.h avutil/timestamp: Warn about missing __STDC_FORMAT_MACROS for C++ use 2014-03-13 17:32:15 +01:00
tree.c tree-test: Don't return restricted exit codes 2013-10-24 10:59:26 +01:00
tree.h
twofish.c libavutil: optimize twofish cipher 2015-02-18 00:59:55 +01:00
twofish.h libavutil: Added twofish symmetric block cipher 2015-01-29 01:56:11 +01:00
utf8.c avutil/utf8: put under #ifdef TEST 2013-11-22 17:16:11 +01:00
utils.c avutil: check pixdescs in a different place 2015-02-10 15:45:02 +01:00
version.h libavutil/doc: Changes in documentation due to changes to fixed_dsp 2015-06-05 13:42:05 +02:00
wchar_filename.h Merge commit '9326d64ed1baadd7af60df6bbcc59cf1fefede48' 2014-11-27 11:10:26 +01:00
x86_cpu.h
xga_font_data.c
xga_font_data.h
xtea.c xtea: Add Doxy @file and group 2014-04-07 01:31:36 +02:00
xtea.h xtea: Add Doxy @file and group 2014-04-07 01:31:36 +02:00