365 Commits (ee189701a6f7fec56570ee3728d5d80378cbadd3)

Author SHA1 Message Date
Justin Ruggles cf7c961b19 Do not calculate psd and masking curve if exponents are being reused. 14 years ago
Justin Ruggles 68e6b0990d cosmetics: reindent after last commit 14 years ago
Justin Ruggles 795063db3b Copy bap from previous block when exponent strategy is EXP_REUSE. 14 years ago
Justin Ruggles 126a29b871 Count grouped mantissas for each block all at once at the end of bit 14 years ago
Justin Ruggles e7536ac567 Count bits for fixed parameters at start of encoding rather than in every 14 years ago
Justin Ruggles e86ea34dad Use a LUT for number of exponent groups. This avoids recalculating it for 14 years ago
Justin Ruggles 834550ea0d Speed up group minimum and group output calculations for EXP_D25 and EXP_D45 14 years ago
Justin Ruggles cdedf7e625 Convert a for() loop into a while() loop for the downward part of the exponent 14 years ago
Justin Ruggles 27af78cf0e Redesign encode_exponents_blk_ch() so that duplicate exponent sets are no 14 years ago
Justin Ruggles 8846ee54ad Use optimized function DSPContext.sad[0]() instead of calc_exp_diff(). 14 years ago
Justin Ruggles 7786c384f6 cosmetics: pretty-printing after last commit 14 years ago
Justin Ruggles 89bedc4d2e Add a goto for init failure instead of duplicate calls to ac3_encode_close(). 14 years ago
Justin Ruggles c41ac4f82e Use pre-allocated temp buffers in mdct512(). 14 years ago
Justin Ruggles e29065f7bf Write results of post-rotation complex multiply directly to output. 14 years ago
Justin Ruggles 9d8533368f Use memcpy() instead of a for loop in mdct512(). 14 years ago
Justin Ruggles b6f6204db9 Allocate all large per-channel arrays using av_malloc(). 14 years ago
Justin Ruggles aa645b9888 Make windowed_samples 16-byte aligned. 14 years ago
Justin Ruggles e8d21fba3f Allocate planar_samples using av_mallocz(). 14 years ago
Justin Ruggles 171bc51c9b Allocate bap and bap1 buffers using av_malloc(). 14 years ago
Justin Ruggles 1c3e117e0b Remove last_samples[] and copy directly from planar_samples[]. 14 years ago
Justin Ruggles 7eeca961e3 Remove unneeded line. key_frame is already set to 1 in avcodec_alloc_frame(). 14 years ago
Justin Ruggles 2d82d9b1df cosmetics: comment clean-up and misc cosmetics 14 years ago
Justin Ruggles 5901cebecd Separate most of the per-block arrays into a separate per-block struct. 14 years ago
Justin Ruggles cb6247cb30 Split bit allocation search into a separate function. 14 years ago
Justin Ruggles 06f6f78578 10l: fix typo in compute_exp_strategy() 14 years ago
Justin Ruggles 266d24be4a Move large arrays to AC3EncodeContext rather than passing them around. 14 years ago
Justin Ruggles 7da4dc17d9 cosmetics: line wrap and spacing 14 years ago
Justin Ruggles a0d763fc88 Use a single value for SNR offset in the bit allocation search rather than 14 years ago
Justin Ruggles 70fcd7ea80 Change bit_alloc() to return the mantissa bit count. 14 years ago
Justin Ruggles 937cd1467c cosmetics: alignment and line wrap after last commit 14 years ago
Justin Ruggles 359c1d1926 Move bit counts to AC3EncodeContext. 14 years ago
Justin Ruggles 793bbf9544 Split out setting of bit allocation parameters to a separate function. 14 years ago
Justin Ruggles 8999944ecb Split out counting of frame bits into a separate function. 14 years ago
Justin Ruggles 33a7d549e8 cosmetics: vertical alignment 14 years ago
Justin Ruggles d3325d555b Only calculate num_exp_groups once. 14 years ago
Justin Ruggles dc0bc0f84e Check for bit allocation error in ac3_encode_frame(). 14 years ago
Justin Ruggles f94bacc538 Split out grouping of exponents into a separate function. 14 years ago
Justin Ruggles b6a1e5236e Split out mantissa quantization into separate functions. 14 years ago
Justin Ruggles 5b44ede0ba cosmetics: rearrange some functions 14 years ago
Justin Ruggles d7da80806c Reverse the exponent & exponent strategy array arrangement to simplify the 14 years ago
Justin Ruggles 67d979fede Move writing of frame to the output bitstream to a separate function. 14 years ago
Justin Ruggles 084f5c5afe cosmetics: remove a comment and just spacing 14 years ago
Justin Ruggles 160d85f5b0 Split frame size adjustment into a separate function. 14 years ago
Justin Ruggles dfdf73eb1a Split exponent processing into separate functions. 14 years ago
Justin Ruggles 0a0a8500fb Split applying of MDCT into several separate functions. 14 years ago
Justin Ruggles 4acc790f3c Split input sample deinterleaving into a separate function. 14 years ago
Justin Ruggles 152cc52803 Separate functionally different calculations in ac3_encode_frame(). 14 years ago
Justin Ruggles 98f6ee4453 cosmetics: rename 2 variables 14 years ago
Justin Ruggles 12ed622699 Deinterleave whole frame at once instead of per-block. 14 years ago
Justin Ruggles e0685bc98f cosmetics: add & alter some comments 14 years ago