Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
a92be9b856
Replace memset(0) by zero initializations.
...
Also remove one pointless zero initialization in rangecoder.c.
13 years ago
Kostya Shishkov
1d10afd581
bink: fix typo in FFALIGN() argument
13 years ago
Kostya Shishkov
8ae28ac0f3
bink: align plane width to 8 when calculating bundle sizes
...
This fixes decoding of Bink files with non-multiple-of-16 width.
13 years ago
Martin Storsjö
9cf0841ef3
dsputil: Add ff_ prefix to the dsputil*_init* functions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
aaf47bcde7
Drop ALT_ prefix from BITSTREAM_READER_LE name.
...
The prefix is a historic remnant that probably meant "alternative".
Now that the A32 bitstream reader has been dropped it makes no sense anymore.
13 years ago
Mans Rullgard
3f5d6a665a
binkvideo: simplify and remove invalid shifts
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Laurent Aimar
a00676e48e
bink: Check for various out of bound writes
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Laurent Aimar
24adf7832b
bink: Check for out of bound writes when building tree
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Laurent Aimar
c7e631986b
bink: Prevent NULL dereferences with missing reference frame
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Alex Converse
e11a5fccb2
bink: Eliminate unnecessary shadow declaration.
14 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
14 years ago
Mans Rullgard
1b3539d453
dsputil: move a bink-only function to binkdsp
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Kostya Shishkov
2968bedf12
bink: make IDCT take 32-bit input
...
Since IDCT transforming 32-bit input to 8-bit output is unusual and unpractical
for most codecs, move Bink IDCT into separate context. Get rid of an additional
permutation table while at it since SIMD support for Bink IDCT is unlikely to
be implemented in foreseeable future.
Quantisation tables also have to change type to signed for proper
dequantisation of DCT coefficients.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
e169428529
Mark parameterless function declarations as 'void'.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
8997bb8807
bink: use LOCAL_ALIGNED for aligned stack data
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Reinhard Tartler
737eb5976f
Merge libavcore into libavutil
...
It is pretty hopeless that other considerable projects will adopt
libavutil alone in other projects. Projects that need small footprint
are better off with more specialized libraries such as gnulib or rather
just copy the necessary parts that they need. With this in mind, nobody
is helped by having libavutil and libavcore split. In order to ease
maintenance inside and around FFmpeg and to reduce confusion where to
put common code, avcore's functionality is merged (back) to avutil.
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
14 years ago
Peter Ross
2315392174
bink: permute Bink version 'b' quant matrices by inverse scan order
...
This fixes visual glitches in Bink version 'b' files, as the quantization
tables were not being permuted.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Peter Ross
cb62510cab
bink: simplify how quantization matrices are passed to read_dct_coeffs()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Vitor Sessak
47d62c965b
Make tables generation insensitive to floating-point implementation
...
Using doubles make the double -> int cast well defined for all the values
used, with the exception of when s[i]==1.0, which is special-cased.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Peter Ross
adb1ad0d80
bink: reindent after last commit
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Peter Ross
e00f41d574
Bink version 'b' video decoder
...
Based on original patch by Kostya Shishkov
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Diego Elio Pettenò
d36beb3f69
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Kostya Shishkov
03ec42aa1c
Change some band size calculations in Bink decoder to use width in blocks
...
instead of real width, this fixes decoding of some Bink files with odd width.
Originally committed as revision 26364 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Ramiro Polla
888d78ac98
bink: make bink_rlelens static (it's only used in this file)
...
Originally committed as revision 25605 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
e16f217ceb
Use new imgutils.h API names, fix deprecation warnings.
...
Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
6ce9b4310c
Remove use of the deprecated function avcodec_check_dimensions(), use
...
av_check_image_size() instead.
Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
49bd8e4b84
Fix grammar errors in documentation
...
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
5dc051f4c1
bink: correctly align local arrays
...
Originally committed as revision 23425 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
b78a985afb
fix minor typo
...
Originally committed as revision 22614 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
0bf5a0cf46
Bink version 'h' also has chroma planes swapped
...
Originally committed as revision 22236 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
84dc2d8afa
Remove DECLARE_ALIGNED_{8,16} macros
...
These macros are redundant. All uses are replaced with the generic
DECLARE_ALIGNED macro instead.
Originally committed as revision 22233 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
4f974de6f6
Decode alpha plane in Bink video
...
Originally committed as revision 21982 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
bf0d54a381
cosmetics: reindent after last commit
...
Originally committed as revision 21981 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
54d4c0de7c
Move plane decoding code into separate function in Bink decoder
...
Originally committed as revision 21980 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
ba3e821414
Bink video decoder now can use extradata to detect alpha plane presence
...
Originally committed as revision 21979 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
1d6065ad08
Make Bink decoder able to skip alpha plane
...
Originally committed as revision 21963 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
bb29fee3a6
Make Bink decoder to stop decoding planes after all bits are used.
...
This prevents crashes during decoding grayscale Bink files like
samples from Impossible Creatures game demo.
Originally committed as revision 21961 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
fb030bd046
Correct bundle lengths calculation for small Bink files.
...
This fixes issue 1764.
Originally committed as revision 21959 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
342c7dfdbb
Bink video decoder
...
Originally committed as revision 21937 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago