This patch uses dithering in DITHER_COPY macro only if
it was not used option '-sws_dither none'.
With option '-sws_dither none' it uses downshift.
For human eye dithering is OK, for video codecs not necessarily.
If user don't want to use dithering, we should respect that.
Signed-off-by: Mateusz Brzostek <mateuszb@poczta.onet.pl>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Use immediate unsigned saturation for clip to max saving one vector register.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Replace generic with block size specific function.
Load the specific destination bytes instead of MSA load and pack.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Remove loops and unroll as block sizes are known.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Technically _tzcnt* intrinsics are only available when the BMI
instruction set is present. However the instruction encoding
degrades to "rep bsf" on older processors.
Clang for Windows debatably restricts the _tzcnt* instrinics behind
the __BMI__ architecture define, so check for its presence or
exclude the usage of these intrinics when clang is present.
See also:
https://ffmpeg.org/pipermail/ffmpeg-devel/2015-November/183404.htmlhttps://bugs.llvm.org/show_bug.cgi?id=30506http://lists.llvm.org/pipermail/cfe-dev/2016-October/051034.html
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Matt Oliver <protogonoi@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* commit '163cc67beb3ed28aeb500c9a09df47c8df613025':
takdec: Use ISO C printf conversion specifiers where appropriate
dcadec: remove extra indirection
hevcdec: Use LOCAL_ALIGNED_* for declaring local variables with alignment
arm: Always build the hevcdsp_init_arm.c file
This commit is a noop.
Merged-by: James Almer <jamrial@gmail.com>
* commit '1bd986ed4b0e95ded368a8eeb5c044853c090f9b':
hwcontext: Move NONE to the be the first member of AVHWDeviceType
Merged-by: James Almer <jamrial@gmail.com>
This should refer to the existing SPS structure, not the VAAPI sequence
parameter buffer (which is not yet initialised).
Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
Fixes the following warning:
libavfilter/tests/filtfmts.c: In function ‘main’:
libavfilter/tests/filtfmts.c:103:18: warning: assignment discards ‘const’ qualifier from pointer target type
* commit 'fe6eea99efac66839052af547426518efd970b24':
nsvdec: don't ignore the return value of av_get_packet()
This commit is a noop, see
edf1cb7aee8d7ce5cdb7
Merged-by: James Almer <jamrial@gmail.com>
* commit 'd4f3c26b700ae847433ba3c67dc99c32bc1fd4a1':
rtmpproto: send swfverify value as swfurl if latter is unused
This commit is a noop, see c0b3781bf2
Merged-by: James Almer <jamrial@gmail.com>
* commit '8c616b3b8996bd4f9b117496b66b16cc625d7d24':
avplay: Use the named syntax for buffersrc arguments
This commit is a noop, see 251f398798
Merged-by: James Almer <jamrial@gmail.com>
* commit '5f90ad99bb7e53383fefab5107b861e4c4600700':
spherical: Change types of bounding and pad to uint32_t
This commit is a noop, see f20bcec4c2
Merged-by: James Almer <jamrial@gmail.com>
* commit '94eed68ace9f2416af8457fcbf142b175928c06b':
lavc: Drop deprecated options moved to private contexts
Merged-by: James Almer <jamrial@gmail.com>
* commit 'c43a96fe16e6a6ea091e64ca271f0788f4a0bea9':
lavc: Drop deprecated time_base variable for decoding
This commit is a noop. The API has been postponed.
Merged-by: James Almer <jamrial@gmail.com>
* commit '48bb0da050329e5111b00a12dfc154b7e78fb3a3':
lavc: Drop deprecated way of setting audio delay on encode
Merged-by: James Almer <jamrial@gmail.com>
* commit '06c20d3e32c33c4da6d9fbc43aebaeb38c45b859':
lavc: Drop deprecated av_fast_malloc() compatibility
This commit is a noop.
Merged-by: James Almer <jamrial@gmail.com>