1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-03 05:10:03 +02:00
FFmpeg/doc
wm4 463b81de2b imgutils: add function to clear an image to black
Black isn't always just memset(ptr, 0, size). Limited YUV in particular
requires relatively non-obvious values, and filling a frame with
repeating 0 bytes is disallowed in some contexts. With component sizes
larger than 8 or packed YUV, this can become relatively complicated. So
having a generic function for this seems helpful.

In order to handle the complex cases in a generic way without destroying
performance, this code attempts to compute a black pixel, and then uses
that value to clear the image data quickly by using a function like
memset.

Common cases like yuv410p10 or rgba can't be handled with a simple
memset, so there is some code to fill memory with 2/4/8 byte patterns.
For the remaining cases, a generic slow fallback is used.

Signed-off-by: Anton Khirnov <anton@khirnov.net>

Merged from Libav commit 45df7adc1d.
2017-08-08 13:37:37 +02:00
..
doxy
examples examples/hw_decode: Add a HWAccel decoding example. 2017-07-30 00:15:05 +01:00
.gitignore
APIchanges imgutils: add function to clear an image to black 2017-08-08 13:37:37 +02:00
authors.texi
bitstream_filters.texi
bootstrap.min.css
build_system.txt
codecs.texi
decoders.texi
default.css
demuxers.texi
developer.texi
devices.texi
doxy-wrapper.sh
Doxyfile
encoders.texi doc: Fix names of VAAPI encoders 2017-07-18 23:36:06 +01:00
errno.txt
faq.texi
fate_config.sh.template
fate.texi
ffmpeg-bitstream-filters.texi
ffmpeg-codecs.texi
ffmpeg-devices.texi
ffmpeg-filters.texi
ffmpeg-formats.texi
ffmpeg-protocols.texi
ffmpeg-resampler.texi
ffmpeg-scaler.texi
ffmpeg-utils.texi
ffmpeg.texi
ffmpeg.txt
ffplay.texi
ffprobe.texi
ffprobe.xsd ffprobe: Print color properties from show_frames 2017-07-21 20:19:07 +02:00
ffserver.conf
ffserver.texi
fftools-common-opts.texi
filter_design.txt
filters.texi avfilter/vf_premultiply: add inplace mode 2017-08-07 18:15:36 +02:00
formats.texi
general.texi avformat: add SMPTE 337M demuxer 2017-07-19 12:27:33 +02:00
git-howto.texi
indevs.texi avdevice/decklink_dec: add support for receiving op47 teletext 2017-07-18 18:28:57 +02:00
issue_tracker.txt
lexicon
libav-merge.txt doc/libav-merge: remove the hls merge TODO 2017-08-04 22:18:22 +08:00
libavcodec.texi
libavdevice.texi
libavfilter.texi
libavformat.texi
libavutil.texi
libswresample.texi
libswscale.texi
Makefile examples/hw_decode: Add a HWAccel decoding example. 2017-07-30 00:15:05 +01:00
metadata.texi
mips.txt
multithreading.txt
muxers.texi avformat/hlsenc: allow dynamic encryption key rotation 2017-08-06 15:10:35 +08:00
nut.texi
optimization.txt
outdevs.texi
patchwork
platform.texi
print_options.c
protocols.texi
rate_distortion.txt
resampler.texi
scaler.texi
snow.txt
style.min.css
swresample.txt
swscale.txt
t2h.init
t2h.pm
tablegen.txt
texi2pod.pl
texidep.pl
undefined.txt doc: Add initial documentation explaining undefined behavior and SUINT 2017-07-21 17:37:05 +02:00
utils.texi
writing_filters.txt