summaryrefslogtreecommitdiff
path: root/libavcodec/aacenc.c
Commit message (Collapse)AuthorAge
* 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.
* psymodel: Add channels and channel groups to the psymodel.Nathan Caldwell2011-06-29
|
* aacenc: Save channel configuration for later use.Nathan Caldwell2011-06-27
|
* aacenc: Add stereo_mode option.Nathan Caldwell2011-06-02
| | | | | | ms_off is the default, until Mid/Side is no longer buggy. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* psymodel: Remove wrapper functions.Nathan Caldwell2011-05-08
| | | | Instead use the function pointers directly.
* aacenc: Replace loop counters in aac_encode_frame() with more descriptive ↵Nathan Caldwell2011-05-08
| | | | 'ch' and 'w'.
* aacenc: Finish 3GPP psymodel analysis for non mid/side cases.Nathan Caldwell2011-04-23
| | | | | | | | | There is still are still a few sections missing relating to TNS (not present) and mid/side (contains other bugs). Overall this improves quality, and vastly improves rate-control. Signed-off-by: Martin Storsjö <martin@martin.st>
* 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>
* Move ff_kbd_window_init() to a separate fileMans Rullgard2011-03-19
| | | | | | | This function is not tightly coupled to mdct, and it's in the way of making a fixed-point mdct implementation. 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>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacenc: Fix a segfault in search_for_quantizersNathan Caldwell2011-03-08
| | | | | | | | This reverts the removal of scoefs from AACEncContext. It resulted in scoefs being a NULL pointer when search_for_quantizers() is called. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* aacenc: remove the data arraysYoung Han Lee2011-03-07
| | | | 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>
* aacenc: fix typo in sync extension constant in 8ae0fa2Janne Grunau2011-01-23
|
* Change DSPContext.vector_fmul() from dst=dst*src to dest=src0*src1.Justin Ruggles2011-01-22
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacenc: mark SBR absentAlex Converse2011-01-22
| | | | | | | Use backwards compatible explicit signalling to denote the absence of SBR. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* 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
* aacenc: Remove an unused variable from adjust_frame_information().Alex Converse2010-08-31
| | | | Originally committed as revision 25002 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Don't set s->cur_channel before apply_window_and_mdct().Alex Converse2010-08-31
| | | | | | In general s->cur_channel should be phased out. Originally committed as revision 25001 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Write tag.elem_id early.Alex Converse2010-08-30
| | | | Originally committed as revision 25000 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Only apply M/S if common_window is set.Alex Converse2010-08-30
| | | | Originally committed as revision 24998 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Adjust array offsets for the current channel before calling ↵Nathan Caldwell2010-07-19
| | | | | | | | ff_psy_suggest_window(). Patch by Nathan Caldwell <saintdev@gmail.com> Originally committed as revision 24332 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Refactor apply_window_and_mdct() so it no longer takes an offset ↵Nathan Caldwell2010-07-19
| | | | | | | | channel. Patch by Nathan Caldwell <saintdev@gmail.com> Originally committed as revision 24331 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: whitespaceAlex Converse2010-07-07
| | | | Originally committed as revision 24100 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Enforce LFE bitstream restrictions.Alex Converse2010-07-07
| | | | Originally committed as revision 24099 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: replace VLA with fixed sizeMåns Rullgård2010-07-06
| | | | | | | Number of channels is restricted to 6 so the size is acceptable for the stack. Originally committed as revision 24068 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Start the lookahead pointer 1/4 of the way into the first short window.Alex Converse2010-06-28
| | | | | | Short windows are of length 256 and begin at sample 448. Originally committed as revision 23871 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Properly pad extradata.Alex Converse2010-06-28
| | | | | | This fixes a valgrind error when encoding to ADTS. Originally committed as revision 23866 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aactab: Tablegenify ff_aac_pow2sf_tab.Alex Converse2010-06-23
| | | | Originally committed as revision 23740 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cleanup apply_window_and_mdct().Alex Converse2010-06-05
| | | | Originally committed as revision 23495 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark AAC encoder as experimental.Alex Converse2010-05-27
| | | | Originally committed as revision 23350 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Select the TLS (two-loop search) as the default scalefactor coder.Alex Converse2010-05-14
| | | | Originally committed as revision 23133 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Fix psy logic.Alex Converse2010-05-14
| | | | | | | Set band info before determining scalefactors. Use the look ahead for windowing decision. Originally committed as revision 23132 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set cur_channel in the AAC encoder context where needed.Alex Converse2010-05-11
| | | | | | | Most coder functions read it. Carting this around in the context may be suboptimal; a refactor should be considered. Originally committed as revision 23094 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Error out when too many bits per frame are requested.Alex Converse2010-05-06
| | | | Originally committed as revision 23036 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
* aacenc: Error when an unsupported profile is requestedAlex Converse2010-04-02
| | | | Originally committed as revision 22784 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
* Add support for hard-coded MDCT-related ff_sine_windows tables.Reimar Döffinger2010-01-09
| | | | Originally committed as revision 21108 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sample_fmts and channel_layouts compound literals const to reduce size ofReimar Döffinger2009-09-06
| | | | | | .data section. Originally committed as revision 19787 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert unintended portion of last commit. (Setting the default coder toAlex Converse2009-07-22
| | | | | | twoloop.) Originally committed as revision 19481 to svn://svn.ffmpeg.org/ffmpeg/trunk