summaryrefslogtreecommitdiffstats
path: root/libavcodec/mpc7.c
Commit message (Collapse)AuthorAgeFilesLines
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-271-1/+1
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dsputil: Split bswap*_buf() off into a separate contextDiego Biurrun2014-06-221-4/+4
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-1/+1
|
* avcodec: av_log_ask_for_sample() ---> avpriv_request_sample()Diego Biurrun2013-03-131-2/+1
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-1/+1
|
* mpc7/8: decode directly to the user-provided AVFrameJustin Ruggles2013-02-121-8/+5
|
* dsputil: Move LOCAL_ALIGNED macros to libavutilDiego Biurrun2013-02-081-0/+1
|
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-041-1/+2
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Include libavutil/channel_layout.h instead of libavutil/audioconvert.hJustin Ruggles2012-11-111-1/+1
| | | | Also reorder some other #include when applicable.
* mpc7/8: use planar sample formatJustin Ruggles2012-10-011-2/+4
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-2/+2
| | | | | | | 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>
* mpc: pad mpc_CC/SCF[] tables to allow for negative indices.Ronald S. Bultje2012-03-101-2/+2
| | | | | | | | MPC8 allows indices of mpc_CC up to -1, and mpc_SCF up to -6, thus pad the tables by that much on the left end. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mpc7: assign an error level + context to av_log() msg.Ronald S. Bultje2012-02-171-1/+1
|
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-151-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mpc7: use av_fast_padded_malloc()Justin Ruggles2012-02-011-7/+13
| | | | | | | Avoids doing malloc/free for each frame. Also fixes valgrind errors due to use of uninitialized padding bytes. Based on a patch by Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* mpc7: simplify handling of packet sizes that are not a multiple of 4 bytesJustin Ruggles2012-02-011-14/+26
|
* mpc7: check for allocation failureJustin Ruggles2012-01-301-0/+2
|
* mpc7: align local temp bufferJustin Ruggles2012-01-301-1/+1
| | | | DSPContext.bswap_buf() requires aligned output
* Add avcodec_decode_audio4().Justin Ruggles2011-12-021-11/+18
| | | | | | Deprecate avcodec_decode_audio3(). Implement audio support in avcodec_default_get_buffer(). Implement the new audio decoder API in all audio decoders.
* mpc7: only support stereo input.Justin Ruggles2011-11-111-1/+8
| | | | The Musepack SV7 reference encoder converts mono to stereo when encoding.
* mpc7: Fix memset call in mpc7_decode_frame functionAlex Converse2011-11-101-1/+1
|
* mpc7: return error if packet is too small.Justin Ruggles2011-10-021-0/+1
|
* mpc7: check output buffer size before decodingJustin Ruggles2011-10-021-2/+8
|
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-8/+6
| | | | It's more readable and less prone to breakage.
* Move some mpegaudio functions to new mpegaudiodsp subsystemMans Rullgard2011-05-191-1/+2
| | | | | | | | This separation allows these functions to be used in a cleaner fashion from other codecs (e.g. qdm2) and simplifies creating optimised versions of them. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-151-1/+1
| | | | | | | | | | | | 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>
* Replace remaining occurrences of deprecated CH_* with AV_CH_*Anton Khirnov2011-02-061-1/+2
| | | | 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-261-1/+1
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Musepack SV8 supports "mono" files (though it still codes them as stereo),Kostya Shishkov2010-11-211-1/+1
| | | | | | | | so extend decoder to output only one channel for it. This fixes issue 2368. Originally committed as revision 25790 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 16l trocadero: Musepack SV7 decoder may skip more than 16 bits at theKostya Shishkov2010-11-151-1/+1
| | | | | | | beginning of the frame, so make it use skip_bits_long() instead of skip_bits() for that. Originally committed as revision 25754 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-121-1/+1
| | | | | | 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-201-1/+1
| | | | | | | | 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-301-1/+1
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move variable declaration to block where it is used and simplify code.Reimar Döffinger2010-01-281-2/+3
| | | | | | | Avoids a (incorrect) "possibly used uninitialized" warning, no measurable speed difference. Originally committed as revision 21518 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Extract duplicated code into a separate function.Reimar Döffinger2010-01-281-10/+13
| | | | | | | 5% faster on Intel Atom with gcc 4.4.1 (performance is unchanged if using av_always_inline). Originally committed as revision 21516 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix an issue uncovered by commit 20623:Attila Kinali2009-11-301-2/+3
| | | | | | | | | | | | | The init functions of mpc7 and mpc8 check whether the vlc has been initialized already and return early if this is the case (eg by calling init a second time). But avctx->sample_fmt and channel_layout is set after the vlc initialization, causing it not to be set on the second call of init. Move all manipulations of avctx before the initialization of the vlc, so that it is always set. Originally committed as revision 20668 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use skip_bits_long() for large skipsDavid Conrad2009-05-141-1/+1
| | | | | | This fixes ogg/theora on ARM (more generally the A32 bitstream reader) Originally committed as revision 18819 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Compact and make constant two tables used by Musepack decodersKostya Shishkov2009-04-201-1/+1
| | | | Originally committed as revision 18633 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use new static VLC scheme in Indeo2, Musepack and WNV1 decodersKostya Shishkov2009-04-171-4/+24
| | | | Originally committed as revision 18553 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-131-1/+1
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-071-1/+3
| | | | | | | | | | | 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
* Make Musepack decoders use LFG pseudorandom generatorKostya Shishkov2009-03-081-3/+3
| | | | Originally committed as revision 17880 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace calls to the deprecated function av_init_random() withStefano Sabatini2009-01-181-1/+1
| | | | | | corresponding calls to av_random_init(). Originally committed as revision 16682 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use CONFIG_MPEGAUDIO_HP directly instead of USE_HIGHPRECISION indirection.Diego Biurrun2009-01-141-4/+0
| | | | Originally committed as revision 16594 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-131-1/+1
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add channel layout to several audio decoders I maintainKostya Shishkov2008-11-191-0/+1
| | | | Originally committed as revision 15884 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Modify all codecs to report their supported input and output sample format(s).Peter Ross2008-07-311-0/+1
| | | | Originally committed as revision 14482 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud