Commit Graph

19 Commits

Author SHA1 Message Date
Stefano Sabatini
9106a698e7 Rename bitstream.h to get_bits.h.
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 16:20:26 +00:00
Reimar Döffinger
238ef6dadd Add a av_fast_malloc function and replace several uses of av_fast_realloc,
thus avoiding potential memleaks and pointless memcpys.

Originally committed as revision 18470 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 13:17:37 +00:00
Reimar Döffinger
9bf993a5b5 Use void * instead of uint8_t * for the destination buffer for dsp.bswap_buf
where easily possible (mimic, eatqi, 4xm).
This allows to avoid a typecast.

Originally committed as revision 18469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 12:25:53 +00:00
Reimar Döffinger
55775b099d Use AVERROR(ENOMEM) instead of AVERROR_NOMEM / -1 in eatqi and mimic decoders
Originally committed as revision 18467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 09:33:38 +00:00
Thilo Borgmann
7a00bbad21 Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows
passing of packet-specific flags from demuxer to decoder, such as the keyframe
flag, which appears necessary to playback corePNG P-frames.

Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread
"Google Summer of Code participation" on the mailinglist.

Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 15:59:50 +00:00
Diego Biurrun
1bf6e565dd cosmetics: 'const static' --> 'static const' to avoid warnings of the type
"'static' is not at beginning of declaration" with -Wextra.

Originally committed as revision 17391 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-17 12:03:10 +00:00
Loren Merritt
5fecfb7d58 clear_block mmx
Originally committed as revision 16045 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-10 21:35:17 +00:00
Aurelien Jacobs
37d3e0667a uses FF_ARRAY_ELEMS() where appropriate
Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-21 21:40:24 +00:00
Stefano Sabatini
fe4bf37455 Make AVCodec long_names definition conditional depending on CONFIG_SMALL.
Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-12 21:50:13 +00:00
Stefano Sabatini
d5202e4fda Add long names to many AVCodec declarations.
patch by Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 13005 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-27 10:52:44 +00:00
Ramiro Polla
630e1b27c2 get_vlc2() only gets up to three levels in the tables. The last codes weren't being read properly.
Originally committed as revision 12976 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-26 05:03:36 +00:00
Ramiro Polla
a960000304 Fix regression introduced by r12929.
num_coeffs is just one byte.
It would make no sense for num_coeffs to be as high as 2^32.

Originally committed as revision 12931 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-22 23:24:47 +00:00
Ramiro Polla
9ed0cff98e The code now is pretty self explanatory about the header structure.
Remove the big comment and add comments about the skipped fields.

Originally committed as revision 12930 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-22 20:30:50 +00:00
Ramiro Polla
fc22c00935 Use bytestream functions for reading frame header.
Originally committed as revision 12929 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-22 20:24:07 +00:00
Ramiro Polla
bebfc16a31 Do not pass dct_block to vlc_decode_block().
The function uses dct_block from the context anyways.

Originally committed as revision 12908 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-19 13:03:12 +00:00
Ramiro Polla
399e46527a Cosmetics and style.
Originally committed as revision 12907 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-19 12:34:48 +00:00
Ramiro Polla
c9108634c4 Rename vlc1 to vlc.
There is no vlc2, so there is no point in numbering it.

Originally committed as revision 12906 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-19 12:28:32 +00:00
Zuxy Meng
98a6fff98c Apply 'cold' attribute to init/uninit functions in libavcodec
Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-21 03:11:20 +00:00
Ramiro Polla
a7129de51b Mimic decoder.
Originally committed as revision 12491 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-18 19:51:34 +00:00