summaryrefslogtreecommitdiff
path: root/libavcodec/imc.c
Commit message (Collapse)AuthorAge
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Drop empty comment linesDiego Biurrun2016-02-18
|
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-27
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec flagsVittorio Giovara2015-07-27
| | | | | | Convert doxygen to multiline and express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* imc: Use correct position for flcoeffs2 calculationAndreas Cadhalpun2015-07-10
| | | | | | | | | | | | flcoeffs2[pos] should be the log2 of flcoeffs1[pos]. flcoeffs1[0] can be 0 here, thus flcoeffs2[pos] gets set to -inf, causing problems further down. This seems to have been copied from imc_decode_level_coefficients in commit 4eb4bb3 without updating the position. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* imc: add required padding for GetBitContext bufferJanne Grunau2015-06-09
| | | | | | | Fixes stack buffer overflow errors detected by address sanitizer in fate-imc. CC: libav-stable@libav.org
* lavc: Replace av_dlog and tprintf with internal macrosVittorio Giovara2015-04-19
|
* avcodec: Don't anonymously typedef structsDiego Biurrun2015-02-14
|
* imc: fix order of operations in coefficients readVittorio Giovara2014-10-15
| | | | Reported-by: Ruoyu <liangry@ucweb.com>
* dsputil: Split bswap*_buf() off into a separate contextDiego Biurrun2014-06-22
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* imc: support mode 1Kostya Shishkov2013-08-26
|
* imc: Catch a division by zeroLuca Barbato2013-07-09
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* avcodec: av_log_ask_for_sample() ---> avpriv_request_sample()Diego Biurrun2013-03-13
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* imc/iac: decode directly to the user-provided AVFrameJustin Ruggles2013-02-12
|
* dsputil: Move LOCAL_ALIGNED macros to libavutilDiego Biurrun2013-02-08
|
* floatdsp: move butterflies_float from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
| | | | | This makes wmadec/enc, twinvq and mpegaudiodec (i.e. mp2/mp3) independent of dsputil.
* 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.
* imc: set channels to 1 instead of validating itJustin Ruggles2012-11-01
|
* iac/imc: use planar sample formatJustin Ruggles2012-10-01
|
* avcodec: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-01
|
* avcodec: Drop some silly commented-out av_log() invocationsDiego Biurrun2012-10-01
|
* Use log2(x) instead of log(x) / log(2)Mans Rullgard2012-08-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* imc: remove unused field IMCContext.one_div_log2Mans Rullgard2012-08-06
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* imc: fix size of a memset()Mans Rullgard2012-08-06
| | | | | | | IMCContext was changed from an array to a pointer in 66b84e4, but this memset() was not updated. Signed-off-by: Mans Rullgard <mans@mansr.com>
* imc: remove empty if() blockMans Rullgard2012-08-06
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* iac: generate codec tables as they are supposed to beKostya Shishkov2012-06-09
| | | | | | | | | Unlike its predecessor, Indeo Audio codec generates tables depending on sampling rate. Previously decoder used pre-generated tables for 22050 Hz which obviously doesn't work with other frequencies. Many thanks to Maxim Poliakovsky for providing all needed information for this.
* Indeo Audio decoderKostya Shishkov2012-06-05
|
* imc: make IMDCT support stereo outputKostya Shishkov2012-06-05
| | | | | This will be useful for Indeo Audio decoder which is almost the same but supports stereo.
* imc: move channel-specific data into separate contextKostya Shishkov2012-06-05
| | | | | This will be useful for Indeo Audio decoder which is almost the same but supports stereo.
* imc: some cosmeticsKostya Shishkov2012-05-25
|
* fix typo in commentKostya Shishkov2012-05-20
|
* 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>
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* get_bits: remove A32 variantMans Rullgard2011-12-16
| | | | | | | | | | | | | | | | | The A32 bitstream reader variant is only used on ARMv5 and for Prores due to the larger bit cache this decoder requires. In benchmarks on ARMv5 (Marvell Sheeva) with gcc 4.6, the only statistically significant difference between ALT and A32 is a 4% advantage for ALT in FLAC decoding. There is thus no (longer) any reason to keep the A32 reader from this point of view. This patch adds an option to the ALT reader increasing the bit cache to 32 bits as required by the Prores decoder. Benchmarking shows no significant change in speed on Intel i7. Again, the A32 reader fails to justify its existence. Signed-off-by: Mans Rullgard <mans@mansr.com>
* 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.
* imc: return error codes instead of 0 for error conditions.Justin Ruggles2011-11-02
| | | | | This fixes a bug where the whole buffer was returned as decoded audio due to *data_size not being set to zero and the return value being >= 0.
* imc: return meaningful error codes instead of -1Justin Ruggles2011-11-02
|
* imc: do not set channel layout for stereoJustin Ruggles2011-11-02
| | | | we only support decoding of mono imc
* imc: validate channel countJustin Ruggles2011-11-02
| | | | ask for a sample if not mono
* imc: check for ff_fft_init() failureJustin Ruggles2011-11-02
|
* imc: check output buffer size before decodingJustin Ruggles2011-11-02
|
* imc: use DSPContext.bswap16_buf() to byte-swap packet dataJustin Ruggles2011-11-02
|
* Add AVX FFT implementation.Vitor Sessak2011-04-26
| | | | Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Move sine windows to a separate fileMans Rullgard2011-03-20
| | | | | | | These windows do not really belong in fft/mdct files and were easily confused with the similarly named tables used by rdft. Signed-off-by: Mans Rullgard <mans@mansr.com>
* fft: remove inline wrappers for function pointersMans Rullgard2011-03-19
| | | | | | | This removes the rather pointless wrappers (one not even inline) for calling the fft_calc and related function pointers. Signed-off-by: Mans Rullgard <mans@mansr.com>