summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* vbv_delay AVOption for ABI compatibilityMichael Niedermayer2011-02-16
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Set maximum lowres value for the MJPEG decoder to 3.Carl Eugen Hoyos2011-02-16
| | | | | | | While 4 works for some samples, 3 is the correct value since 8x8 DCT is used by (m)jpeg. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* ac3dsp: Change punpckhqdq to movhlps in ac3_max_msb_abs_int16().Justin Ruggles2011-02-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Document audio_resample_close().Stefano Sabatini2011-02-16
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Apply minor cosmetics fixes to the av_audio_resample_init() doxy.Stefano Sabatini2011-02-16
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* ac3enc: change default floor code to 7.Justin Ruggles2011-02-15
| | | | | | | This is to match the value in every (E-)AC-3 file from commercial sources. It has a negligible effect on audio quality. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Pass VBV delay to the calling application via ctxChristophe Massiot2011-02-15
| | | | | | | | VBV delay is useful for T-STD compliance in some TS muxers. It is certainly possible to retrieve it by parsing the output of FFmpeg, but getting it from the context makes it simpler and less error-prone. Signed-off-by: Mans Rullgard <mans@mansr.com>
* binkaudio: remove unused copy of AVCodecContext*Peter Ross2011-02-15
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* binkaudio: fix channel count checkPeter Ross2011-02-15
| | | | | | | | | Perform validity check on AVFormatContext.channels instead of uninitialised field. This fixes issue 2001. Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacdec: Implement LTP support.Young Han Lee2011-02-14
| | | | Ported from gsoc svn.
* aac: remove dead SBR input scalingAlex Converse2011-02-14
| | | | | | It has been unused since 9d06d7bce3babb82ed650c13ed13a57f6f626a71 Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3enc: Add x86-optimized function to speed up log2_tab().Justin Ruggles2011-02-13
| | | | | | | AC3DSPContext.ac3_max_msb_abs_int16() finds the maximum MSB of the absolute value of each element in an array of int16_t. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mpeg4video: ignore broken GOP headersAnatoly Nenashev2011-02-13
| | | | | | | | | Some MPEG4 cameras produce files with empty GOP headers. This patch makes the decoder ignore such broken headers and proceed with the following I-frame. Without this change, the following start code is missed resulting in the entire I-frame being skipped. Signed-off-by: Mans Rullgard <mans@mansr.com>
* FFT: factor a shuffle out of the inner loop and merge it into fft_permute.Loren Merritt2011-02-13
| | | | | | 6% faster SSE FFT on Conroe, 2.5% on Penryn. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* bink: permute Bink version 'b' quant matrices by inverse scan orderPeter Ross2011-02-13
| | | | | | | This fixes visual glitches in Bink version 'b' files, as the quantization tables were not being permuted. Signed-off-by: Mans Rullgard <mans@mansr.com>
* bink: simplify how quantization matrices are passed to read_dct_coeffs()Peter Ross2011-02-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Make tables generation insensitive to floating-point implementationVitor Sessak2011-02-12
| | | | | | | Using doubles make the double -> int cast well defined for all the values used, with the exception of when s[i]==1.0, which is special-cased. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add missing terminating backslashRonald S. Bultje2011-02-11
|
* VP8: ARM optimised decode_block_coeffs_internalMans Rullgard2011-02-11
| | | | | | Approximately 5% faster on Cortex-A8. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM optimised vp56_rac_get_prob()Mans Rullgard2011-02-11
| | | | | | Approximately 3% faster on Cortex-A8. Signed-off-by: Mans Rullgard <mans@mansr.com>
* bink: reindent after last commitPeter Ross2011-02-11
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Bink version 'b' video decoderPeter Ross2011-02-11
| | | | | | Based on original patch by Kostya Shishkov Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* vorbis dec: Remove obsolete commentAlexander Strasser2011-02-10
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vorbis dec: cosmetics: Indent consistentlyAlexander Strasser2011-02-10
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vorbis dec: cosmetics: Indent CPP cond properlyAlexander Strasser2011-02-10
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vorbis dec: Delete useless scopes, and reindent after scope deletionAlexander Strasser2011-02-10
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* VP8: optimized mv prediction and decodingJason Garrett-Glaser2011-02-10
| | | | | Merge find_near_mvs and mv bitstream decoding: don't do prediction steps until absolutely necessary.
* ac3enc: Remove unneeded clipping of shift amount.Justin Ruggles2011-02-10
| | | | | | | | s->windowed_samples will always have a range of [-32767,32767] due to the window function, so the return value from log2_tab() will always be in the range [0,14]. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3enc: remove right shifting from lshift_tab() and make lshift unsigned.Justin Ruggles2011-02-10
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove final semicolon from some macrosMans Rullgard2011-02-10
| | | | | | This avoids double semicolons after macro expansion. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dvbsubenc: Fix placement of the object versionRonen Mizrahi2011-02-10
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dvbsubdec: check against buffer overreadsJanne Grunau2011-02-10
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Do not fail DVB sub decoding because of a few padding bytesReimar Döffinger2011-02-10
| | | | | | | | | Instead of returning an error when bytes are left over, just return the number of actually used bytes as other decoders do. Instead add a special case so an error will be returned when none of the data looks valid to avoid making debugging a pain. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Add x86-optimized versions of exponent_min().Justin Ruggles2011-02-10
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Remove incorrect return statement from avcodec_thread_free()Mans Rullgard2011-02-10
| | | | | | | The function return type is void, so a return statement with an expression is forbidden (and pointless). Signed-off-by: Mans Rullgard <mans@mansr.com>
* ivi_dsp: remove semicolons after function definitionsMans Rullgard2011-02-10
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Fix build with threading disabledMans Rullgard2011-02-09
| | | | | | | | The avcodec_thread_free() compatibility wrapper calls ff_thread_free(), which is not defined when threading is disabled. Make this call conditional. Signed-off-by: Mans Rullgard <mans@mansr.com>
* w32thread: add missing #include thread.hMans Rullgard2011-02-09
| | | | | | This should fix building with win32 threads. Signed-off-by: Mans Rullgard <mans@mansr.com>
* check sample_fmt in avcodec_openReimar Döffinger2011-02-09
| | | | | | check AVCodecContext->sample_fmt against AVCodec->sample_fmts[] to ensure that the encoder supports the specified sample format. Error out if it doesn't. Previously, it would continue and output garbage. Fixes issue 2587.
* vp3: Frame-based multithreading supportAlexander Strange2011-02-09
| | | | | | | | | | | | | | | | | | | Decode times for big_buck_bunny_720p_stereo: 1 thread: real 1m14.227s user 1m13.104s sys 0m1.108s 2 threads: (33% faster) real 0m49.329s user 1m33.735s sys 0m1.834s 3 threads: (44% faster) real 0m41.593s user 1m44.884s sys 0m1.967s
* Deprecate avcodec_thread_init()Alexander Strange2011-02-09
| | | | | | | | | | | | | | As a side effect of the last commit, avcodec_open() now calls it automatically, so there is no longer any need for clients to call it. Instead they should set AVCodecContext.thread_count. avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the next MAJOR libavcodec bump. Rename the functions to ff_thread_init/free, since they are now internal. Wrappers are provided to maintain API compatibility. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Frame-based multithreading framework using pthreadsAlexander Strange2011-02-09
| | | | | | See doc/multithreading.txt for details on use in codecs. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Update qmin/qmax values for libx264 presetsJason Garrett-Glaser2011-02-08
| | | | | Also allow qmin/qmax to go up to 69 (the current max value for libx264). This will have to increase when we add 9/10-bit support.
* Fix broken vbv_buffer_init handling in libx264.cJason Garrett-Glaser2011-02-08
| | | | | | Due to being pants-on-head retarded, libavcodec defaults this to zero, which results in broken output. This didn't affect ffmpeg.c, which sets it itself, but caused problems for other calling apps using VBV.
* VP8: idct_mb optimizationsJason Garrett-Glaser2011-02-08
| | | | Currently uses AV_RL32 instead of AV_RL32A, as the latter doesn't exist yet.
* Fix ff_emu_edge_core_sse() on Win64.Ronald S. Bultje2011-02-08
| | | | | | | Fix emu_edge_v_extend_15 to be <128 bytes on Win64, by being more strict on the size of registers and which registers are being used for operations where multiple are available. This fixes segfaults in emulated_edge() function calls on Win64.
* logging: downgrade recoverable errors to warningsStefan Kost2011-02-08
| | | | | | | | In all 3 cases, the decoding continues and thus a warning would be sufficient. Helps application that catch them with own log handers to handle them accordingly. Signed-off-by: Mans Rullgard <mans@mansr.com>
* h264: define FF_PROFILE_H264_HIGH_444 to the correct valueJanne Grunau2011-02-08
| | | | | It was removed in fe9a3fb since it had the wrong value. Add profile name for it.
* VP8: ARM NEON optimisations for dsp functionsMans Rullgard2011-02-07
| | | | | | | This adds NEON optimised versions of all functions in VP8DSPContext. Based on initial work by Rob Clark. Signed-off-by: Mans Rullgard <mans@mansr.com>