No description
Find a file
Andreas Rheinhardt ff9f3fb607 avcodec/mjpegenc_huffman: Avoid AV_QSORT to sort entries by length
It is unnecessary, as we already have the entries sorted by
probability and therefore implicitly by length. All we need
on top of that to build the tree is the number of entries
of a given length.
Doing so gives a 3.6% speedup of ff_mjpeg_encode_huffman_close()
here; it also saves about 640B of .text here.

The new code puts values with higher probability to the left
of the tree. The old code did not and therefore
the FATE checksums needed to be updated. Due to MJPEG's
0xFF unescaping file sizes as well as file checksums
needed to be updated; the decoded picture hashes stayed
the same. Given that codes on the left of the tree have
on average fewer bits set than codes on the right, the
file sizes mostly improve (all except vsynth3-mjpeg-444).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2025-04-18 08:40:17 +02:00
compat compat/w32pthreads: change pthread_t into pointer to malloced struct 2024-12-16 09:43:19 +01:00
doc libpostproc: update APIChanges and version for "deprecate the AMD 3DNow" 2025-04-16 13:59:15 +02:00
ffbuild configure: add option to select use of response files 2025-03-30 17:22:10 +05:30
fftools fftools/textformat/avtextformat: Remove unused variable 2025-04-17 01:49:04 +02:00
libavcodec avcodec/mjpegenc_huffman: Avoid AV_QSORT to sort entries by length 2025-04-18 08:40:17 +02:00
libavdevice avfoundation: Fix compilation for OSes other than macOS and iOS 2025-04-04 17:12:33 +03:00
libavfilter lavfi/src_movie: set pkt_timebase 2025-04-15 15:49:38 +02:00
libavformat Revert "lavf/id3v2dec: support multiple values and TIPL frames" 2025-04-16 13:09:05 +02:00
libavutil vulkan: use a single command buffer per command buffer pool 2025-04-16 23:38:16 +02:00
libpostproc libpostproc: update APIChanges and version for "deprecate the AMD 3DNow" 2025-04-16 13:59:15 +02:00
libswresample libs: bump major version for all libraries 2025-03-28 14:44:34 -03:00
libswscale swscale/x86/rgb2rgb: Deduplicate ASM constants 2025-04-13 22:49:21 +02:00
presets presets: remove moldering iPod presets 2014-06-17 16:15:04 -08:00
tests avcodec/mjpegenc_huffman: Avoid AV_QSORT to sort entries by length 2025-04-18 08:40:17 +02:00
tools tools: Fix deprecation warning in patcheck 2025-04-16 13:09:02 +02:00
.gitattributes gitattributes: End merge conflicts in Changelog 2025-03-17 15:26:10 +01:00
.gitignore ffbuild: read library linker objects from a file 2025-03-17 15:45:53 +05:30
.mailmap mailmap: add entry for myself 2024-07-15 01:59:37 +02:00
Changelog doc/encoders: Document png pred 2025-04-10 03:01:34 +02:00
configure configure: Clearer documentation for "disable-safe-bitstream-reader" 2025-04-16 13:09:03 +02:00
CONTRIBUTING.md Add CONTRIBUTING.md 2016-09-18 10:02:13 +01:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1 cosmetics: Delete empty lines at end of file. 2012-02-09 12:26:45 +01:00
COPYING.LGPLv3
CREDITS Use https for repository links 2023-03-01 21:59:10 +01:00
INSTALL.md INSTALL: explain the circular dependency issue and solution 2024-11-03 19:35:23 +01:00
LICENSE.md avfilter/vf_geq: Relicense to LGPL 2019-12-28 11:20:48 +01:00
MAINTAINERS MAINTAINERS: Add myself 2025-03-25 11:38:21 +01:00
Makefile configure: Add wasm as a fake arch 2024-12-04 16:43:06 +08:00
README.md README: fix typo and description of libavfilter 2021-10-08 09:44:34 +05:30
RELEASE RELEASE: update release number after release/7.1 branch 2024-10-09 01:55:50 +02:00

FFmpeg README

FFmpeg 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 means to alter decoded audio and video through a directed graph of connected filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libswresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • ffmpeg is a command line toolbox to manipulate, convert and stream multimedia content.
  • ffplay is a minimalistic multimedia player.
  • ffprobe is a simple analysis 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

Coding examples are available in the doc/examples directory.

License

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

Contributing

Patches should be submitted to the ffmpeg-devel mailing list using git format-patch or git send-email. Github pull requests should be avoided because they are not part of our review process and will be ignored.