FFmpeg git repo
Go to file
wm4 45df7adc1d 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>
2017-07-26 23:21:26 +02:00
avbuild build: Add an option for passing linker flags to the shared library build 2017-06-22 13:54:34 +02:00
avtools avconv_hw: Free device on initialisation failure 2017-06-18 17:01:49 +01:00
compat compat/atomics: add typecasts in atomic_compare_exchange_strong() 2016-12-08 15:53:58 -05:00
doc imgutils: add function to clear an image to black 2017-07-26 23:21:26 +02:00
libavcodec lavc, lavu: move frame cropping to a convenience function 2017-07-26 23:20:40 +02:00
libavdevice avfoundation: update to use AVCodecParameters 2017-04-26 11:47:31 -04:00
libavfilter lavf/vf_deinterlace_qsv: Enable the qsv deinterlace vpp 2017-07-25 13:27:52 +02:00
libavformat rmdec: add missing brackets to compound statement 2017-07-25 19:19:20 -04:00
libavresample Bump major versions of all libraries 2017-03-23 09:56:20 +01:00
libavutil imgutils: add function to clear an image to black 2017-07-26 23:21:26 +02:00
libswscale build: Add feature test macros for glibc 2.19+ 2017-07-10 10:22:56 +02:00
presets
tests fate: Add cinepak encoder vsynth tests 2017-07-05 13:05:54 +02:00
tools build: Move entries related to building TOOLS to a subdirectory Makefile 2016-12-07 11:02:31 +01:00
.gitattributes
.gitignore build: Ignore generated .version files 2017-02-03 11:37:53 +01:00
.travis.yml travis: Exclude gcc for the macOS target 2017-04-20 12:53:08 +02:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Changelog libavcodec/mjpeg_qsv: Add QSV MJPEG encoder 2017-07-25 13:27:43 +02:00
INSTALL
LICENSE Remove the legacy X11 screen grabber 2016-07-29 19:03:10 +02:00
Makefile build: Allow generating dependencies as a side-effect of assembling 2017-03-01 10:18:15 +01:00
README.md doc: Add travis badge 2015-09-14 00:19:08 +02:00
RELEASE Make the RELEASE file match with the most recent tag 2016-10-14 13:52:51 -04:00
configure libavcodec/mjpeg_qsv: Add QSV MJPEG encoder 2017-07-25 13:27:43 +02:00

README.md

Libav

Build Status

Libav is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.

Libraries

  • libavcodec provides implementation of a wider range of codecs.
  • libavformat implements streaming protocols, container formats and basic I/O access.
  • libavutil includes hashers, decompressors and miscellaneous utility functions.
  • libavfilter provides a mean to alter decoded Audio and Video through chain of filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libavresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • avconv is a command line toolbox to manipulate, convert and stream multimedia content.
  • avplay is a minimalistic multimedia player.
  • avprobe is a simple analisys tool to inspect multimedia content.
  • Additional small tools such as aviocat, ismindex and qt-faststart.

Documentation

The offline documentation is available in the doc/ directory.

The online documentation is available in the main website and in the wiki.

Examples

Conding examples are available in the doc/example directory.

License

Libav codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.