summaryrefslogtreecommitdiff
path: root/libavcodec/aacenc.c
Commit message (Collapse)AuthorAge
* lavc: Drop exporting 2-pass encoding statsVittorio Giovara2015-12-07
| | | | | | | | | | | | | | These variables are coming from mpegvideoenc where are supposedly used as bit counters on various frame properties. However their use is unclear as they lack documentation, are available only from a very small subset of encoders, and they are hardly used in the wild. Also frame_bits in aacenc is employed in a similar way. Remove this functionality from AVCodecContex, these variable are mostly frame properties, and too few encoders support setting them with anything useful. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* aac: Provide more information on the failure messageLuca Barbato2015-12-05
| | | | Bug-Id: 761
* 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>
* aacenc: correctly check returned valueVittorio Giovara2014-12-18
| | | | CC: libav-stable@libav.org
* lavc: use a separate field for exporting audio encoder paddingAnton Khirnov2014-10-13
| | | | | | | | | | | | | | Currently, the amount of padding inserted at the beginning by some audio encoders, is exported through AVCodecContext.delay. However - the term 'delay' is heavily overloaded and can have multiple different meanings even in the case of audio encoding. - this field has entirely different meanings, depending on whether the codec context is used for encoding or decoding (and has yet another different meaning for video), preventing generic handling of the codec context. Therefore, add a new field -- AVCodecContext.initial_padding. It could conceivably be used for decoding as well at a later point.
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* aacenc: Fix erasure of surround channelsClaudio Freire2013-05-14
| | | | | | | This was due to a miscomputation of s->cur_channel, which led to psy-based encoders using the psy coefficients for the wrong channel. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: remove disabled FF_API_OLD_ENCODE_AUDIO cruftAnton Khirnov2013-03-09
|
* Remove unnecessary dsputil.h #includesDiego Biurrun2013-02-26
|
* floatdsp: move vector_fmul_reverse from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
| | | | | | Now, nellymoserenc and aacenc no longer depends on dsputil. Independent of this patch, wmaprodec also does not depend on dsputil, so I removed it from there also.
* lavc: Fix assignments in if() when calling ff_af_queue_addMichael Niedermayer2013-01-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* aacenc: use the correct output bufferMichael Niedermayer2012-11-26
| | | | | | | This fixes segfault caused by 3d3cf6745e2a5dc9c377244454c3186d75b177fa when SingleChannelElement.ret was renamed to SingleChannelElement.ret_buf. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* aacenc: Drop some unused function argumentsDiego Biurrun2012-10-29
|
* aacenc: use planar sample formatJustin Ruggles2012-10-06
|
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_CONST 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
|
* Improve descriptiveness of a number of codec and container long namesDiego Biurrun2012-07-30
|
* Add a float DSP framework to libavutilJustin Ruggles2012-06-08
| | | | Move vector_fmul() from DSPContext to AVFloatDSPContext.
* aacenc: Fix issues with huge values of bit_rate.Reimar Döffinger2012-04-17
| | | | | | | | | | Do not pointlessly call ff_alloc_packet multiple times, and fix an infinite loop by clamping the maximum number of bits to target in the algorithm that does not use lambda. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* 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>
* aacenc: Mark deinterleave_input_samples argument as const.Diego Biurrun2012-04-04
| | | | | This fixes the warning: libavcodec/aacenc.c:524: warning: passing argument 2 of ‘deinterleave_input_samples’ discards qualifiers from pointer target type
* aacenc: use AVCodec.encode2()Justin Ruggles2012-03-20
|
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* aacenc: make sure to encode enough frames to cover all input samples.Justin Ruggles2012-01-30
| | | | | | Currently, any samples in the final frame are not decoded because they are only represented by one frame instead of two. So we encode two final frames to cover both the analysis delay and the MDCT delay.
* aacenc: only use the number of input samples provided by the user.Justin Ruggles2012-01-30
| | | | Fixes handling of CODEC_CAP_SMALL_LAST_FRAME.
* Fix non-C89 declarations in for loopsMans Rullgard2012-01-29
| | | | | | Some compilers still do not support this syntax. Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacenc: Fix LONG_START windowing.Nathan Caldwell2012-01-28
| | | | | | Forgot to add the equivalent amount to the incoming sample pointer as the output pointer. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* aacenc: Fix a bug where deinterleaved samples were stored in the wrong place.Nathan Caldwell2012-01-28
| | | | | | | | | | 10l: Forgot to adjust deinterleave for new location of incoming samples in 7946a5a. This produced incorrect, but surprisingly listenable results. Thanks to Justin Ruggles for the report. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* aacenc: Fix identification padding when the bitstream is already aligned.Alex Converse2012-01-24
|
* aacenc: Write correct length for long identification strings.Michael Niedermayer2012-01-24
| | | | | | | When the length is the escape value (15), the new length is calculated by 15 + get_bits(8) - 1. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: Simplify windowingNathan Caldwell2012-01-23
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: Move saved overlap samples to the beginning of the same buffer as ↵Nathan Caldwell2012-01-23
| | | | | | incoming samples. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: Deinterleave input samples before processing.Nathan Caldwell2012-01-23
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: Store channel count in AACEncContext.Nathan Caldwell2012-01-23
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: Move Q^3/4 calculation to it's own tableNathan Caldwell2012-01-23
| | | | | | This should be moved to tablegen at some point. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: Request normalized float samples instead of converting s16 samples ↵Nathan Caldwell2012-01-23
| | | | | | to float. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: cosmetics: move init() and end() to the bottom of the file.Nathan Caldwell2012-01-23
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: aac_encode_init() cleanupNathan Caldwell2012-01-23
| | | | | | Macroify sanity checks and check return values of allocs and other functions. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* lavc: use avpriv_ prefix for ff_copy_bits and align_put_bits.Anton Khirnov2011-10-20
| | | | They are used in lavf.
* lavc: use avpriv_ prefix for some mpeg4audio symbols used in lavf.Anton Khirnov2011-10-20
| | | | | Specifically, ff_mpeg4audio_sample_rates, ff_mpeg4audio_get_config and ff_copy_pce_data
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* aacenc: Fix number of coefficients used in a LFE channel.Nathan Caldwell2011-08-13
| | | | | | | | The spec states: * Only the lowest 12 spectral coefficients of any LFE may be non-zero We were using the 12 lowest *bands*.
* aacenc: Fix a segfault with grouped psymodel.Nathan Caldwell2011-08-13
| | | | | 10l: Forgot about TYPE_LFE being after TYPE_CPE. Which causes a segfault when encoding 5.1
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* aacenc: Fix determination of Mid/Side Mode.Nathan Caldwell2011-06-29
| | | | | | | | | In adjust_frame_information(), msc is incremented for each sfb in each sub-window then compared against max_sfb which is for a single sub-window. This resulted in frames using EIGHT_SHORT_SEQUENCE where the first few sub-windows increment msc to a value that results in ms_mode == 2. Even though only some of the bands are actually using Mid/Side.
* psymodel: Remove the single channel analysis functionNathan Caldwell2011-06-29
|
* aacenc: Implement dummy channel group analysis that just calls the single ↵Nathan Caldwell2011-06-29
| | | | channel analysis for each channel.