sws/input: replace hardcoded rgb2yuv coefficients by table

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Add avpriv_dsputil_init() and use it in lavfi where relevant.

dsputil_init() is deprecated and not meant to be exported.
ff_dsputil_init() is internal to libavcodec and thus can not be used.
avpriv_dsputil_init() is the version shared between libraries.

This commit fixes 3 unjustified libavfilter deprecated warnings.
doc: document -opencl_options option in ff* tools manuals
ffmpeg: show error message in case of av_buffersrc_add_frame_flags() failure
lavfi: add missing periods in filter descriptions.
doc/filters: remove mention to telecine mp filter

It was removed in 32a7b858c9175b851503dc3fa66440efe2afd3ee.
lavf: remove some flushing in write_packet muxers callbacks.

Since 4f112a8e3, this is not necessary anymore. Also, it allows to
actually disable the flushing.
lavfi/testsrc: unbreak smptebars only build

Signed-off-by: Paul B Mahol <onemda@gmail.com>
lavfi/negate: stop calling lut_init() as that function does nothing now

Signed-off-by: Paul B Mahol <onemda@gmail.com>
lavfi/aphaser: silence uninitialized variable warnings.
lavf/libquvi: fix error reporting.
sws: move RGB2YUV_SHIFT to swscale_internal.h

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
sws: init input_rgb2yuv_table depending on yuv colorspace

For the default table we keep using the exact previous
coefficients, this way individual functions can be updated seperately
without breaking fate

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
sws/x86: update rgb/bgr->yuv code to use provided coefficient table

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
sws/x86: update rgba->yuv to use user supplied table

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
sws/"rgb2rgb": drop RGB2YUV_SHIFT

Fixes a warning and increases the precission the coefficients

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
sws: Update rgb24toyv12_c() to user supplied rgb2yuv tables

As the function arguments change, we also change the function name
to ensure that anyone using this (non public) function doesnt end
with hard to debug crashes. The new name also has a proper prefix.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
sws/x86: remove 8bit rgb2yuv coefficient case for rgb24toyv12 special converter

This simplifies the code and improves quality at the expense of a slight
slowdown of a rarely used function (no fate test uses it).

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Fix compilation on ARM with android gcc 4.7

With the current code it fails due to running out
of registers.
So code the store offsets manually into the assembler
instead.
Passes "make fate-dts".

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Add thread-safe wrapper for get_format().

Just like get_buffer, get_format should not be called from a different
thread if thread_safe_callbacks is not set.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>