Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ac3enc: fix allocation of floating point samples. | Justin Ruggles | 2011-06-13 | 1 | -9/+7 |
| | | | | sizeof(SampleType) is different for fixed and float encoders. | ||||
* | ac3enc: remove empty ac3_float function that is never called | Justin Ruggles | 2011-06-13 | 1 | -1/+0 |
| | |||||
* | ac3enc: split templated float vs. fixed functions into a separate file. | Justin Ruggles | 2011-06-13 | 1 | -401/+37 |
| | | | | | Function pointers are used for templated functions instead of needlessly duplicating many functions. | ||||
* | ac3enc: dynamically allocate AC3EncodeContext fields windowed_samples and mdct | Justin Ruggles | 2011-06-13 | 1 | -5/+10 |
| | | | | | 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 output | Justin Ruggles | 2011-06-13 | 1 | -4/+7 |
| | | | | functions. | ||||
* | ac3enc: Fix linking of AC-3 encoder without the E-AC-3 encoder. | Diego Biurrun | 2011-06-08 | 1 | -2/+2 |
| | | | | | 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 Ruggles | 2011-06-07 | 1 | -279/+5 |
| | |||||
* | ac3enc: remove convenience macro, #define DEBUG | Justin Ruggles | 2011-06-07 | 1 | -1/+0 |
| | |||||
* | ac3enc: remove unused #define | Justin Ruggles | 2011-06-07 | 1 | -3/+0 |
| | |||||
* | ac3enc: extract all exponents for the frame at once | Justin Ruggles | 2011-06-04 | 1 | -8/+4 |
| | |||||
* | ac3enc: fix LOCAL_ALIGNED usage in count_mantissa_bits() | Mans Rullgard | 2011-05-28 | 1 | -1/+1 |
| | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | ac3enc: modify mantissa bit counting to keep bap counts for all values of bap | Justin Ruggles | 2011-05-28 | 1 | -43/+49 |
| | | | | | | 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 Ruggles | 2011-05-28 | 1 | -18/+31 |
| | | | | 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 array | Justin Ruggles | 2011-05-28 | 1 | -27/+25 |
| | | | | | | | 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 macro | Mans Rullgard | 2011-05-28 | 1 | -2/+5 |
| | | | | | | | | | 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 commit | Justin Ruggles | 2011-05-27 | 1 | -87/+87 |
| | |||||
* | ac3enc: add support for E-AC-3 encoding. | Justin Ruggles | 2011-05-27 | 1 | -22/+278 |
| | | | | | 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 to | Justin Ruggles | 2011-05-27 | 1 | -52/+9 |
| | | | | use only selected options for the different AC-3 encoder types. | ||||
* | ac3enc: initialize all coefficients to zero. | Justin Ruggles | 2011-05-25 | 1 | -6/+6 |
| | | | | | | | | 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 support | Justin Ruggles | 2011-05-24 | 1 | -163/+729 |
| | | | | | | | | | 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 to | Justin Ruggles | 2011-05-12 | 1 | -7/+4 |
| | | | | make the code easier to understand. | ||||
* | ac3enc: clean up count_frame_bits() and count_frame_bits_fixed() | Justin Ruggles | 2011-05-12 | 1 | -20/+46 |
| | |||||
* | AVOptions: make default_val a union, as proposed in AVOption2. | Anton Khirnov | 2011-05-10 | 1 | -35/+35 |
| | | | | This breaks API and ABI. | ||||
* | Replace strncpy() with av_strlcpy(). | Alex Converse | 2011-05-03 | 1 | -21/+22 |
| | |||||
* | ac3enc: do not store a bandwidth code for each channel. | Justin Ruggles | 2011-05-01 | 1 | -7/+6 |
| | | | | | 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 Ruggles | 2011-05-01 | 1 | -30/+0 |
| | | | | | 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 Ruggles | 2011-05-01 | 1 | -42/+33 |
| | |||||
* | ac3enc: return error if frame+exponent bits are too large instead of using | Justin Ruggles | 2011-05-01 | 1 | -1/+2 |
| | | | | | | 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 Ruggles | 2011-05-01 | 1 | -7/+11 |
| | |||||
* | ac3enc: simplify exponent_init() by calculating exponent_group_tab[] based | Justin Ruggles | 2011-05-01 | 1 | -5/+7 |
| | | | | on exponent group sizes. | ||||
* | ac3enc: simplify stereo rematrixing decision options | Justin Ruggles | 2011-05-01 | 1 | -35/+13 |
| | |||||
* | ac3enc: remove check for mismatching channels and channel_layout | Justin Ruggles | 2011-04-27 | 1 | -2/+0 |
| | |||||
* | Add AVX FFT implementation. | Vitor Sessak | 2011-04-26 | 1 | -1/+1 |
| | | | | Signed-off-by: Reinhard Tartler <siretart@tauware.de> | ||||
* | ac3enc: move extract_exponents inner loop to ac3dsp | Mans Rullgard | 2011-04-04 | 1 | -18/+3 |
| | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | ac3enc: select bandwidth based on bit rate, sample rate, and number of | Justin Ruggles | 2011-04-03 | 1 | -3/+31 |
| | | | | | | | full-bandwidth channels. This reduces high-frequency artifacts and improves the quality of the lower frequency audio at low bit rates. | ||||
* | ac3enc: use generic fixed-point mdct | Mans Rullgard | 2011-04-03 | 1 | -9/+17 |
| | | | | | | | | This makes the AC3 encoder use the shared fixed-point MDCT rather than its own implementation. The checksum changes are due to different rounding in the MDCT. Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | ac3enc: simplify sym_quant() | Mans Rullgard | 2011-03-31 | 1 | -1/+1 |
| | | | | | | | These expressions are equivalent since levels is always odd, and overflow is impossible due to the constraints set by the assert(). Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | ac3enc: move compute_mantissa_size() to ac3dsp | Mans Rullgard | 2011-03-30 | 1 | -26/+1 |
| | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | ac3enc: move mant*_cnt and qmant*_ptr out of AC3EncodeContext | Mans Rullgard | 2011-03-30 | 1 | -8/+7 |
| | | | | | | | These fields are only used in quantize_mantissas() and reset on each call, no need to store them in the main context. Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | ac3: move ff_ac3_bit_alloc_calc_bap to ac3dsp | Mans Rullgard | 2011-03-29 | 1 | -1/+1 |
| | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | ac3enc: avoid memcpy() of exponents and baps in EXP_REUSE case by using | Justin Ruggles | 2011-03-28 | 1 | -17/+17 |
| | | | | exponent reference blocks. | ||||
* | ac3enc: Add codec-specific options for writing AC-3 metadata. | Justin Ruggles | 2011-03-27 | 1 | -8/+433 |
| | |||||
* | Get audio_service_type for AC-3 based on bitstream mode in the AC-3 parser | Justin Ruggles | 2011-03-25 | 1 | -1/+15 |
| | | | | and decoder, and vice-versa for the AC-3 encoder. | ||||
* | Add apply_window_int16() to DSPContext with x86-optimized versions and use it | Justin Ruggles | 2011-03-22 | 1 | -1/+1 |
| | | | | in the ac3_fixed encoder. | ||||
* | ac3enc: make sym_quant() branch-free | Justin Ruggles | 2011-03-22 | 1 | -11/+1 |
| | |||||
* | Replace FFmpeg with Libav in licence headers | Mans Rullgard | 2011-03-19 | 1 | -5/+5 |
| | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | ac3enc: add float_to_fixed24() with x86-optimized versions to AC3DSPContext | Justin Ruggles | 2011-03-17 | 1 | -1/+1 |
| | | | | and use in scale_coefficients() for the floating-point AC-3 encoder. | ||||
* | ac3enc: do not right-shift fixed-point coefficients in the final MDCT stage. | Justin | 2011-03-14 | 1 | -13/+12 |
| | | | | | | | | | This increases the accuracy of coefficients, leading to improved quality. Rescaling of the coefficients to full 25-bit accuracy is done rather than offsetting the exponent values. This requires coefficient scaling to be done before determining the rematrixing strategy. Also, the rematrixing strategy calculation must use 64-bit math to prevent overflow due to the higher precision coefficients. | ||||
* | ac3enc: add some assertions | Justin Ruggles | 2011-03-07 | 1 | -0/+6 |
| | |||||
* | ac3enc: use av_assert2() instead of assert() to make debugging easier. | Justin Ruggles | 2011-03-07 | 1 | -3/+5 |
| |