summaryrefslogtreecommitdiff
path: root/libavcodec/g722dec.c
Commit message (Collapse)AuthorAge
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* libavcodec: Make use of av_clip functionsPeter Meerwald2015-02-21
| | | | | Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* g722: Reduce number of pointers passed to g722_apply_qmf() functionPeter Meerwald2015-02-15
| | | | | Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Martin Storsjö <martin@martin.st>
* g722: Split out g722_qmf_apply() function into g722dsp.cPeter Meerwald2015-02-15
| | | | | Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Martin Storsjö <martin@martin.st>
* g722dec: Change bits_per_codeword to the right option typeMartin Storsjö2013-10-28
| | | | | | | This isn't a set of flags but just a plain integer in the range 6-8. Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* g722: decode directly to the user-provided AVFrameJustin Ruggles2013-02-12
|
* 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.
* g722dec: set channel layout at initialization instead of validating itJustin Ruggles2012-11-01
|
* avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* g722: Fix the QMF scalingMartin Storsjö2012-03-02
| | | | | | | | | | | | | | | This fixes clipping if the encoder input used the full 16 bit input range (samples with a magnitude below 16383 worked fine). The filtered subband samples should be 15 bit maximum, while the code earlier produced them scaled to 16 bit. This makes the decoder output have double the magnitude compared to before. The spec reference samples doesn't test the QMF at all, which was why this part slipped past initially. Signed-off-by: Martin Storsjö <martin@martin.st>
* g722dec: Signal skipping the lower bits via AVOptions instead of ↵Martin Storsjö2011-12-05
| | | | | | | | | | | | | | | bits_per_coded_sample This avoids using bits_per_coded_sample for this information. bits_per_coded_sample should be 4 for this codec normally, since two samples are encoded into one 8 bit codeword. In principle, this might be info that needs to be passed from a demuxer, and in that case, a private AVOption isn't the best choice, but no such samples are available at the moment, so that use case is purely theoretical at the moment. 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.
* g722dec: check output buffer size before decodingJustin Ruggles2011-10-25
|
* g722dec: cosmetics: reindent/linewrapJustin Ruggles2011-10-25
|
* g722dec: remove the use of lowres for half-rate decoding.Justin Ruggles2011-10-25
| | | | | | | It is broken because an AVCodecContext can be opened/closed multiple times, and sample_rate is getting divided by 2 each time that happens. This removes the only use of lowres for audio.
* g722: split decoder and encoder into separate filesJustin Ruggles2011-10-23