summaryrefslogtreecommitdiff
path: root/libavcodec/ac3enc.c
Commit message (Collapse)AuthorAge
* ac3enc: doxygen update.Justin Ruggles2011-11-02
| | | | | | Add some parameters to existing function documentation. Remove some unneeded documentation. Convert some static function documentation to non-doxygen style.
* ac3enc: Add channel coupling support for the fixed-point AC-3 encoder.Justin Ruggles2011-09-05
| | | | Update FATE references accordingly.
* ac3enc: add macros for option names to make them more understandable.Justin Ruggles2011-08-11
|
* ac3enc: fix 'channel_coupling' option to actually allow 'auto'.Justin Ruggles2011-08-11
| | | | Use 'auto' as the default value.
* ac3enc: allow new coupling coordinates to be sent independently for eachJustin Ruggles2011-08-09
| | | | channel.
* ac3enc: separate exponent bit counting from exponent grouping.Justin Ruggles2011-08-09
| | | | | | Move bit counting to the bit allocation function. Move exponent grouping to after bit allocation. This will allow for adjustment of bandwidth parameters during bit allocation without having to do exponent grouping multiple times.
* cosmetics: reindentJustin Ruggles2011-07-27
|
* eac3enc: support writing of basic mixing and info metadataJustin Ruggles2011-07-27
|
* eac3enc: use different numbers of blocks per frame to allow higher bitratesJustin Ruggles2011-07-21
|
* eac3enc: use frame exponent strategy when applicable.Justin Ruggles2011-07-19
| | | | | | | This checks if the set of selected exponent strategies for all blocks in a channel are in the frame exponent strategy table, and if so, writes the table index instead of each strategy. This saves up to 7 bits per channel per frame, so the overall effect on quality is small.
* ac3enc: merge AC3MDCTContext with AC3EncodeContext.Justin Ruggles2011-07-13
| | | | | | Since both the fixed-point and floating-point encoders use the FFTContext, this no longer needs to be in a separate context. Also, when a short-transform context is added, the same MDCT window will be used.
* ac3enc: prefer passing AC3EncodeContext rather than AVCodecContextJustin Ruggles2011-07-13
|
* ac3enc: fix memleakJustin Ruggles2011-07-13
|
* cosmetics: remove outdated comment that is no longer trueJustin Ruggles2011-06-28
|
* ac3enc: move ff_ac3_encode_frame() to ac3enc_template.cJustin Ruggles2011-06-27
| | | | | This avoids using function pointers for quite a few small functions, most of which just call DSP functions.
* ac3enc: Remove bit allocation fallbacks.Justin Ruggles2011-06-27
| | | | | | They introduce too much complexity for very little benefit. The result is that encoding will be more likely to fail at extremely low bitrates where quality would be awful anyway.
* ac3enc: remove unneeded local variable in asym_quant()Justin Ruggles2011-06-22
|
* ac3enc: remove a branch in asym_quant() by doing 2 shiftsJustin Ruggles2011-06-22
|
* ac3enc: avoid masking output in asym_quant() by using signed values forJustin Ruggles2011-06-22
| | | | quantized mantissas.
* ac3enc: fix allocation of floating point samples.Justin Ruggles2011-06-13
| | | | sizeof(SampleType) is different for fixed and float encoders.
* ac3enc: remove empty ac3_float function that is never calledJustin Ruggles2011-06-13
|
* ac3enc: split templated float vs. fixed functions into a separate file.Justin Ruggles2011-06-13
| | | | | Function pointers are used for templated functions instead of needlessly duplicating many functions.
* ac3enc: dynamically allocate AC3EncodeContext fields windowed_samples and mdctJustin Ruggles2011-06-13
| | | | | This will allow the same struct to be used for both the fixed and float ac3 encoders.
* ac3enc: use function pointer to choose between AC-3 and E-AC-3 header outputJustin Ruggles2011-06-13
| | | | functions.
* ac3enc: Fix linking of AC-3 encoder without the E-AC-3 encoder.Diego Biurrun2011-06-08
| | | | | The AC-3 encoder unconditionally references some symbols from the E-AC-3 encoder; make those references conditional to fix linking.
* Move E-AC-3 encoder functions to a separate eac3enc.c file.Justin Ruggles2011-06-07
|
* ac3enc: remove convenience macro, #define DEBUGJustin Ruggles2011-06-07
|
* ac3enc: remove unused #defineJustin Ruggles2011-06-07
|
* ac3enc: extract all exponents for the frame at onceJustin Ruggles2011-06-04
|
* ac3enc: fix LOCAL_ALIGNED usage in count_mantissa_bits()Mans Rullgard2011-05-28
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3enc: modify mantissa bit counting to keep bap counts for all values of bapJustin Ruggles2011-05-28
| | | | | | instead of just 0 to 4. This does all the actual bit counting as a final step.
* ac3enc: split mantissa bit counting into a separate function.Justin Ruggles2011-05-28
| | | | No speed difference. This is to allow for more flexible bit counting.
* ac3enc: store per-block/channel bap pointers by reference block in a 2D arrayJustin Ruggles2011-05-28
| | | | | | | rather than in the AC3Block struct. This will make it easier to access the bap values without having to chase the reference block pointers each time.
* ac3enc: use LOCAL_ALIGNED macroMans Rullgard2011-05-28
| | | | | | | | | Aligned local variables must use the LOCAL_ALIGNED macro to ensure correct alignment on all systems. The unusual size argument to memset is required since the implementation of LOCAL_ALIGNED may use a pointer to an array. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: indentation and alignment after previous commitJustin Ruggles2011-05-27
|
* ac3enc: add support for E-AC-3 encoding.Justin Ruggles2011-05-27
| | | | | This adds basic stream format support and allows for arbitrary bit rates rather than just those supported in AC-3.
* ac3enc: Move AC-3 AVOptions array to a separate file to make it easier toJustin Ruggles2011-05-27
| | | | use only selected options for the different AC-3 encoder types.
* ac3enc: initialize all coefficients to zero.Justin Ruggles2011-05-25
| | | | | | | | Uninitialized coefficients were being used to generate exponents, some of which actually ended up in the final stream. Even though, they were just extra exponents that are not used by any decoder, it is still better to have consistent output for testing. This also fixes valgrind errors.
* ac3enc: add channel coupling supportJustin Ruggles2011-05-24
| | | | | | | | | Channel coupling is an optional AC-3 feature that increases quality by combining high frequency information from multiple channels into a single channel. The per-channel high frequency information is sent with less accuracy in both the frequency and time domains. This allows more bits to be used for lower frequencies while preserving enough information to reconstruct the high frequencies.
* ac3enc: put the counting of stereo rematrixing bits in the same place toJustin Ruggles2011-05-12
| | | | make the code easier to understand.
* ac3enc: clean up count_frame_bits() and count_frame_bits_fixed()Justin Ruggles2011-05-12
|
* AVOptions: make default_val a union, as proposed in AVOption2.Anton Khirnov2011-05-10
| | | | This breaks API and ABI.
* Replace strncpy() with av_strlcpy().Alex Converse2011-05-03
|
* ac3enc: do not store a bandwidth code for each channel.Justin Ruggles2011-05-01
| | | | | Although AC-3 allows it, it's not very useful. The encoder uses the same code for all full-bandwidth channels.
* ac3enc: remove bandwidth reduction as fallback for bit allocation failure.Justin Ruggles2011-05-01
| | | | | It was only needed at low bitrates, which now already use a low bandwidth, so the bandwidth reduction is no longer needed.
* ac3enc: merge compute_exp_strategy_ch() into compute_exp_strategy()Justin Ruggles2011-05-01
|
* ac3enc: return error if frame+exponent bits are too large instead of usingJustin Ruggles2011-05-01
| | | | | | av_assert2(). This can occur in some very rare cases with low bitrates.
* ac3enc: differentiate between current block and reference block in bit_alloc()Justin Ruggles2011-05-01
|
* ac3enc: simplify exponent_init() by calculating exponent_group_tab[] basedJustin Ruggles2011-05-01
| | | | on exponent group sizes.
* ac3enc: simplify stereo rematrixing decision optionsJustin Ruggles2011-05-01
|