summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* Metadata demuxer.Anton Khirnov2010-12-27
| | | | Originally committed as revision 26102 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix typo.Ronald S. Bultje2010-12-26
| | | | Originally committed as revision 26099 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify tff setting code in MPV_frame_start().Michael Niedermayer2010-12-25
| | | | Originally committed as revision 26090 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix size of monoblack_pal array, code uses 16 values unconditionally.Daniel Verkamp2010-12-25
| | | | | | Patch by Daniel Verkamp [daniel drv nu]. Originally committed as revision 26088 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Port pred4x4_down_left_mmxext (H.264 intra prediction) from x264 to FFmpeg.Daniel Kang2010-12-24
| | | | | | | | | LGPL relicensing approved by original authors: Holger Lubitz <holger lubitz org>, Jason Garrett-Glaser <darkshikari gmail com> and Loren Merritt <lorenm at u dot washington dot edu>. Patch by Daniel Kang <daniel dot d dot kang at gmail com>, as part of Google's GCI 2010. Originally committed as revision 26087 to svn://svn.ffmpeg.org/ffmpeg/trunk
* For rounding in chroma MC SSSE3, use 16-byte pw_3/4 instead of reading 8 bytesRonald S. Bultje2010-12-24
| | | | | | and then using movlhps to dup it into the higher half of the register. Originally committed as revision 26086 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: line wrap and vertical alignmentJustin Ruggles2010-12-23
| | | | Originally committed as revision 26084 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure that the 2nd CRC value does not match the AC-3 sync word.Justin Ruggles2010-12-23
| | | | | | | | | This is optional for encoders, but it's a good idea and has minimal impact on performance. This will change the output for some files, but it happens not to affect the regression tests. Originally committed as revision 26083 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Store CRC context locally to reduce number of calls to av_crc_get_table().Justin Ruggles2010-12-23
| | | | Originally committed as revision 26082 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded local variable, frame_size, in output_frame_end().Justin Ruggles2010-12-23
| | | | Originally committed as revision 26081 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Makefile: Fix dependencies of componentsMartin Storsjö2010-12-22
| | | | | | | | | This fixes compilation with --disable-everything --enable-<component>, for all encoders, decoders, muxers, demuxers, parsers, protocols, bsfs, indevs, outdevs and filters at the moment. (All those that work without any external dependencies at least.) Originally committed as revision 26076 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: fix comment after change in clipping rangeJustin Ruggles2010-12-22
| | | | Originally committed as revision 26072 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change FIX15() back to clipping to -32767..32767.Justin Ruggles2010-12-21
| | | | | | | | This avoids a 16-bit overflow in mdct512() due to a -32768 value in costab. References updated for acodec-ac3, lavf-rm, and seek-ac3_rm tests. Thanks to Måns Rullgård for finding the bug. Originally committed as revision 26071 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add emms_c() after exp_diff calculations.Justin Ruggles2010-12-21
| | | | | | | Fixes AC-3 encoding on OpenBSD 4.8 x86_32 and hopefully other similar configurations. Originally committed as revision 26070 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pre-calculate crc_inv at codec init.Justin Ruggles2010-12-21
| | | | | | 20% faster output_frame_end(). Originally committed as revision 26069 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix make checkheadersMartin Storsjö2010-12-21
| | | | | | amrwbdata.h uses offsetof(), which is defined in stddef.h. Originally committed as revision 26068 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix more matroska/webm muxer dependenciesMartin Storsjö2010-12-21
| | | | | | | This fixes building with --disable-everything --enable-muxer=matroska and/or --enable-muxer=webm Originally committed as revision 26067 to svn://svn.ffmpeg.org/ffmpeg/trunk
* g722: Move the low_inv_quant6 table up to the common tablesMartin Storsjö2010-12-21
| | | | | | | Since SVN rev 25866, this table is used by the trellis encoder, too, not only by the decoder. Originally committed as revision 26065 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix -lowres with ffplay.Anatoly Nenashev2010-12-19
| | | | | | Patch by Anatoly Nenashev, anatoly d nenashev a ovsoft d ru Originally committed as revision 26057 to svn://svn.ffmpeg.org/ffmpeg/trunk
* bump lavcodec minor version for amr-wb decoder in r26051Ramiro Polla2010-12-18
| | | | Originally committed as revision 26052 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AMR-WB decoder, written as part of Google Summer of Code 2010 by MarceloRonald S. Bultje2010-12-18
| | | | | | | Galvão Póvoa <marspeoplester gmail com>, mentored by Robert Swain <robert dot swain gmail com>. Originally committed as revision 26051 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add some simple fallbacks for normal bit allocation failure.Justin Ruggles2010-12-17
| | | | | | | | This allows encoding with lower bitrates by decreasing exponent bits first, then decreasing bandwidth if the user did not specify a specific cutoff frequency. Originally committed as revision 26050 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check user-specified cutoff frequency in validate_options().Justin Ruggles2010-12-17
| | | | Originally committed as revision 26049 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: fix encoding for LFE channelJustin Ruggles2010-12-17
| | | | Originally committed as revision 26048 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for fixed-point MDCT sizes other than 512.Justin Ruggles2010-12-17
| | | | Originally committed as revision 26046 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: reindent after last commitJustin Ruggles2010-12-17
| | | | Originally committed as revision 26045 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify bit allocation search by using a loop for the SNR offset increment.Justin Ruggles2010-12-17
| | | | Originally committed as revision 26044 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not calculate psd and masking curve if exponents are being reused.Justin Ruggles2010-12-17
| | | | | | Approx. 20% faster in function bit_alloc_masking(). Originally committed as revision 26042 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: reindent after last commitJustin Ruggles2010-12-16
| | | | Originally committed as revision 26041 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Copy bap from previous block when exponent strategy is EXP_REUSE.Justin Ruggles2010-12-16
| | | | | | | | | We can do this because exponents are the only bit allocation parameters which change from block-to-block currently. Approx. 57% faster in function bit_alloc(). Approx. 25% faster overall encoding. Originally committed as revision 26040 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Count grouped mantissas for each block all at once at the end of bitJustin Ruggles2010-12-16
| | | | | | | allocation for each block. 24% faster in function bit_alloc(). Approx. 10% faster overall encoding. Originally committed as revision 26039 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Count bits for fixed parameters at start of encoding rather than in everyJustin Ruggles2010-12-16
| | | | | | frame. Originally committed as revision 26038 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use a LUT for number of exponent groups. This avoids recalculating it forJustin Ruggles2010-12-16
| | | | | | every block and channel for every frame. Originally committed as revision 26037 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Speed up group minimum and group output calculations for EXP_D25 and EXP_D45Justin Ruggles2010-12-16
| | | | | | | in encode_exponents_blk_ch() by removing the inner loops. This is about 30-40% faster for the modified sections. Originally committed as revision 26036 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Convert a for() loop into a while() loop for the downward part of the exponentJustin Ruggles2010-12-16
| | | | | | delta limiting. Originally committed as revision 26035 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Redesign encode_exponents_blk_ch() so that duplicate exponent sets are noJustin Ruggles2010-12-16
| | | | | | | | longer required. This gets rid of the temp buffer as well as encoded_exp in AC3EncodeContext. It also allows for skipping the exponent grouping for EXP_D15. 56% faster in encode_exponents_blk_ch(). Originally committed as revision 26034 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use optimized function DSPContext.sad[0]() instead of calc_exp_diff().Justin Ruggles2010-12-16
| | | | | | 90% faster compute_exp_strategy(). Originally committed as revision 26033 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: pretty-printing after last commitJustin Ruggles2010-12-16
| | | | Originally committed as revision 26031 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a goto for init failure instead of duplicate calls to ac3_encode_close().Justin Ruggles2010-12-16
| | | | Originally committed as revision 26030 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use pre-allocated temp buffers in mdct512().Justin Ruggles2010-12-16
| | | | | | 5% faster in function. Originally committed as revision 26029 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Write results of post-rotation complex multiply directly to output.Justin Ruggles2010-12-16
| | | | | | 2% faster in function mdct512(). Originally committed as revision 26028 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use memcpy() instead of a for loop in mdct512().Justin Ruggles2010-12-16
| | | | | | 8% faster in function. Originally committed as revision 26027 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allocate all large per-channel arrays using av_malloc().Justin Ruggles2010-12-16
| | | | | | Decreases memory usage for less than 6 channels. Originally committed as revision 26026 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make windowed_samples 16-byte aligned.Justin Ruggles2010-12-16
| | | | | | This will allow future SIMD optimization of the window function. Originally committed as revision 26025 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allocate planar_samples using av_mallocz().Justin Ruggles2010-12-16
| | | | | | Lowers memory usage when encoding less than 6 channels. Originally committed as revision 26024 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allocate bap and bap1 buffers using av_malloc().Justin Ruggles2010-12-15
| | | | | | | | | This reduces the memory footprint when using less than 6 channels. Modify bit allocation to swap the 2 buffers instead of using memcpy() and use per-block pointers for bap. This is slightly faster (0.3%) in function cbr_bit_allocation(). Originally committed as revision 26023 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove last_samples[] and copy directly from planar_samples[].Justin Ruggles2010-12-15
| | | | | | | | Avoids memcpy that was used to store last samples for next frame. Approx. 3% faster in function deinterleave_input_samples() and reduces memory usage by 3kB. Originally committed as revision 26021 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded line. key_frame is already set to 1 in avcodec_alloc_frame().Justin Ruggles2010-12-15
| | | | Originally committed as revision 26020 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: comment clean-up and misc cosmeticsJustin Ruggles2010-12-15
| | | | Originally committed as revision 26019 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Separate most of the per-block arrays into a separate per-block struct.Justin Ruggles2010-12-15
| | | | Originally committed as revision 26018 to svn://svn.ffmpeg.org/ffmpeg/trunk