summaryrefslogtreecommitdiff
path: root/libavcodec/vmdav.c
Commit message (Collapse)AuthorAge
* vmdvideo: use the AVFrame API properly.Anton Khirnov2013-11-16
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* vmd: decode videos with no LZ buffer size provided - they might not need itKostya Shishkov2013-06-02
| | | | | | The buffer is used for an additional pass of frame compression, so videos can be coded without ever using it (and some are coded so indeed, e.g. in Woodruff and the Schnibble of Azimuth game).
* vmd: fix mode 3 decodingKostya Shishkov2013-06-02
|
* vmd: drop incomplete chunks and spurious samplesLuca Barbato2013-05-29
| | | | | | | | Odd chunk size makes no sense for stereo and incomplete chunks are not supported. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vmd: refactor the inner decode loopLuca Barbato2013-05-29
| | | | | | | | | Simplify a little, assume empty frames are acceptable and do not pointlessly reinit the bytestream2 contexts using possibly wrong size values. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vmd: return meaningful errorsLuca Barbato2013-05-29
| | | | CC: libav-stable@libav.org
* vmd: use the PALETTE_COUNT constant uniformlyLuca Barbato2013-05-29
| | | | While at it drop useless parentheses.
* vmdav: convert to bytestream2Alexandra Khirnova2013-03-28
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vmdaudio: fix invalid reads when packet size is not a multiple of chunk sizeAnton Khirnov2013-03-08
| | | | CC:libav-stable@libav.org
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* vmdaudio: decode directly to the user-provided AVFrameJustin Ruggles2013-02-12
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-04
| | | | It's got_frame, not data size
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Include libavutil/channel_layout.h instead of libavutil/audioconvert.hJustin Ruggles2012-11-11
| | | | Also reorder some other #include when applicable.
* vmdaudio: set channel layoutJustin Ruggles2012-11-01
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-06
| | | | | | | 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>
* Add avcodec_decode_audio4().Justin Ruggles2011-12-02
| | | | | | Deprecate avcodec_decode_audio3(). Implement audio support in avcodec_default_get_buffer(). Implement the new audio decoder API in all audio decoders.
* vmd: fix segfaults on corruped streamsLaurent Aimar2011-10-06
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* vmdaudio: fix decoding of 16-bit audio format.Justin Ruggles2011-09-25
| | | | | | The initial sample of each block is raw 16-bit PCM, not DPCM. Fixes decoding of all samples in: http://streams.videolan.org/samples/game-formats/sierra-vmd/Lighthouse/
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().Justin Ruggles2011-06-20
| | | | av_get_bits_per_sample_fmt() is deprecated.
* Remove unused variablesMans Rullgard2011-06-02
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* vmdaudio: output 8-bit audio as AV_SAMPLE_FMT_U8.Justin Ruggles2011-02-23
| | | | | | There is no need to expand to 16-bits. Just use memcpy() to copy the raw data. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: remove unnecessary fields from VmdAudioContext and use the ↵Justin Ruggles2011-02-23
| | | | | | corresponding AVCodecContext fields instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: add out_bps to VmdAudioContext and use it to replace hard-coded ↵Justin Ruggles2011-02-23
| | | | | | sample size. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: simplify vmdaudio_decode_frame() by handling block_type first, ↵Justin Ruggles2011-02-23
| | | | | | | | then making a single call to vmdaudio_loadsound(). This also adds output buffer size checks for AUDIO and SILENCE block types. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: reindent after previous commitJustin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: move all silence chunk handling to vmdaudio_loadsound().Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: remove debugging cruftJustin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: reindent after previous commitJustin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: simplify buffer pointer and header size handling.Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: set *data_size to zero when skipping small packets and add a ↵Justin Ruggles2011-02-23
| | | | | | warning log message. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: validate block typeJustin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: use macros and a local variable for block type.Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: correct the silent chunk count in the first block.Justin Ruggles2011-02-23
| | | | | | | This fixes A/V sync with several samples, notably: http://samples.mplayerhq.hu/game-formats/sierra-vmd/swat_*.vmd Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: output audio samples for standalone silent blocks.Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: remove duplicated code by merging mono and stereo decoding.Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: fix raw_block_size calculation.Justin Ruggles2011-02-23
| | | | | | The size should depend on the output sample size, not the internal bit depth. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-26
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-12
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless #include <unistd.h> from many filesMåns Rullgård2009-07-22
| | | | Originally committed as revision 19499 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless assignment during initialization for some decodersKostya Shishkov2009-04-24
| | | | Originally committed as revision 18680 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-07
| | | | | | | | | | | 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