summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* aacenc: cosmetics, replace 'rd' with 'bits' in codebook_trellis_rate to make ↵Nathan Caldwell2012-01-23
| | | | | | it more clear what is being calculated. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacpsy: cosmetics, change a FIXME to a NOTE about subshort comparisonsNathan Caldwell2012-01-23
| | | | | | Also fix a typo. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: cosmetics: move init() and end() to the bottom of the file.Nathan Caldwell2012-01-23
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: aac_encode_init() cleanupNathan Caldwell2012-01-23
| | | | | | Macroify sanity checks and check return values of allocs and other functions. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* XWD encoder and decoderPaul B Mahol2012-01-23
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1: don't read the interpfrm and bfraction elements for interlaced framesHendrik Leppkes2012-01-23
| | | | | | | This matches the spec as well as the reference decoder, and fixes a bug with interlaced frame decoding. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* pam: Fix a typo that broke writing and reading PAM files.Carl Eugen Hoyos2012-01-22
| | | | | | Reported and reviewed by Derek Buitenhuis. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* threads: change the default for threads back to 1Janne Grunau2012-01-21
| | | | | | Using threaded decoding by default breaks backward compatibility if AVHWAccel is used or if an appliction sets threadunsafe callbacks. Avconv and avplay still use -threads auto if not specified.
* threads: update slice_count and slice_offset from user contextJanne Grunau2012-01-21
| | | | | They are used to signal the number of slices and offsets of each slice out of band to the decoder.
* mpegaudiodec: switch error detection check to AV_EF_BUFFERDustin Brody2012-01-21
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: rename err_filter option to err_detect and document itDustin Brody2012-01-21
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: fix invalid memory access for small video dimensionsJohn Brooks2012-01-21
| | | | | | | | | | When either video dimension is only one macroblock, subtractions based on v_edge_pos and the macroblock size may be negative. In that situation, an unsigned comparison isn't sufficent to test for MV overruns, because a limit of (unsigned)-1 will let any other value pass. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ARM: fix build with FFT enabled and MDCT disabledFelipe Contreras2012-01-20
| | | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpeg12: check for available bits to avoid an infinite loopJindřich Makovička2012-01-19
| | | | | Signed-off-by: Jindrich Makovicka <makovick@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* error_resilience: K&R formatting cosmeticsDonald Ovcharov2012-01-18
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* tta: cast output data pointer to the correct typeJustin Ruggles2012-01-17
| | | | fixes "warning: assignment from incompatible pointer type"
* rv34: add NEON rv34_idct_addJanne Grunau2012-01-16
| | | | | | | Overall almost 4% faster, idct_add down from 350 to 85 cycles, idct_dc_add down from 83 to 30 cycles. squash: rv34 idct rearrange partial register loads
* rv34: 1-pass inter MB reconstructionChristophe GISQUET2012-01-16
| | | | Implement 1-pass inverse transform and reconstruction for inter blocks.
* pictordec: Use bytestream2 functionsLaurentiu Ion2012-01-15
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* pcmenc: use AVCodec.encode2()Justin Ruggles2012-01-15
|
* avcodec: bump minor version and add APIChanges for the new audio encoding APIJustin Ruggles2012-01-15
|
* avcodec: Add avcodec_encode_audio2() as replacement for avcodec_encode_audio()Justin Ruggles2012-01-15
| | | | | | | | This allows audio encoders to optionally take an AVFrame as input and write encoded output to an AVPacket. This also adds AVCodec.encode2() which will also be usable by video and subtitle encoders once support is implemented in the public functions.
* avcodec: add a public function, avcodec_fill_audio_frame().Justin Ruggles2012-01-15
| | | | This is a convenience function for the user to fill audio AVFrame information.
* rv34: Intra 16x16 handlingChristophe GISQUET2012-01-16
| | | | | | | Extract processing of intra 16x16 blocks from intra macroblock processing. Also implement a function performing inverse transform and block reconstruction for DC-only blocks in 1 pass instead of 2.
* rv34: Inter/intra MB code splitChristophe GISQUET2012-01-16
| | | | | | | | Split inter/intra macroblock handling code. This will allow further optimizations such as performing inverse transform and block reconstruction in a single pass as well as specialize code. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* lavc: Relax API strictness in avcodec_decode_audio3 with a custom get_buffer()Reinhard Tartler2012-01-15
| | | | | | | | | | | | | Do not fail audio decoding with avcodec_decode_audio3 if user has set a custom get_buffer. Strictly speaking, this was never allowed by the API, but it seems that some software packages did so anyways. In order to unbreak applications (cf. http://bugs.debian.org/655890), this change clarifies the API and overrides the custom get_buffer() with the defaults. This change is inspired by a similar commit (c3846e3ebab610be691adb8b40d376dc2f675dc4) in FFmpeg. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* wavpack: fix clipping for 32-bit lossy modeKostya Shishkov2012-01-15
| | | | | | Reference decoder clips data before shifting it to final range and also forces 32-bit lossy mode to be actually 24-bit lossy mode in order to be able to perform proper clipping.
* vb: Use bytestream2 functionsLaurentiu Ion2012-01-14
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* sgidec: Use bytestream2 functions to prevent buffer overreads.Aneesh Dogra2012-01-14
| | | | | | The patch also adds several bytestream macros to deal with native endian. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* cosmetics: Move static and inline attributes to more standard places.Diego Biurrun2012-01-14
| | | | Fixes several "‘static’ is not at beginning of declaration" warnings.
* libx264: Don't leave max_b_frames as -1 if the user didn't set itMartin Storsjö2012-01-14
| | | | | | | | | | | | | | | max_b_frames is initialized to -1 for libx264, to allow distinguishing between an explicit user set 0 and a default not touched 0 (see bb73cda2). If max_b_frames is left as -1, this affects dts generation (where expressions like max_b_frames != 0 are used), so make sure it is left at the default 0 after the libx264 init function returns. This avoids unnecessarily producing dts != pts when using profile=baseline. Signed-off-by: Martin Storsjö <martin@martin.st>
* targa: add support for rgb555 paletteJustin Ruggles2012-01-13
|
* ARM: fix Thumb-mode simple_idct_armMans Rullgard2012-01-13
| | | | | | | | The alignment directive must obviously precede the label. This was never noticed in ARM mode since the location is already aligned there. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: 4-byte align start of all asm functionsMans Rullgard2012-01-13
| | | | | | | | | | | Due to apprent bugs in the GNU assembler and/or linker, relocations can be incorrectly processed if the alignment of a Thumb instruction is changed in the output file compared to the input object. This fixes crashes in h264 decoding with Thumb enabled. No effect in ARM mode since everything is 4-byte aligned there. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cabac: split cabac.h into declarations and function definitionsDiego Biurrun2012-01-12
| | | | | | | | | | | This fixes standalone compilation of some decoders with --disable-optimizations. cabac.h defines some inline functions that use symbols from cabac.c. Without optimizations these inline functions are not eliminated and linking fails with references to non-existing symbols. Splitting the inline functions off into their own header and only #including it in the places where the inline functions are used allows #including cabac.h from anywhere without ill effects.
* cabac: Mark ff_h264_mps_state array as static, it is only used within cabac.c.Diego Biurrun2012-01-12
|
* cabac: Remove ff_h264_lps_state array.Diego Biurrun2012-01-12
| | | | It was only ever used in the cabac test program, but never initialized.
* utils: Check for extradata size overflows.Alex Converse2012-01-12
|
* ARM: rv34: fix asm syntax in dc transform functionsMans Rullgard2012-01-12
| | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* rv34: fix and optimise frame dependency checkingJanne Grunau2012-01-12
| | | | | | | | The sporadic threading errors during fate-rv30 were caused by calling ff_thread_await_progress with mb row -1 as argument. That returns immediately since progress is initialized to -1. Not yet computed motion vectors from the reference could be used for the first macroblocks.
* rv34: NEON optimised dc only inverse transformJanne Grunau2012-01-12
| | | | | 30-50% faster than the C implementation, 0.5% overall speedup on bourne.rmvb.
* lavc: replace some remaining FF_I_TYPE with AV_PICTURE_TYPE_IAnton Khirnov2012-01-12
|
* lavc: ifdef out parse_only AVOptionAnton Khirnov2012-01-12
|
* nellymoserdec: SAMPLE_FMT -> AV_SAMPLE_FMTAnton Khirnov2012-01-12
|
* mpegvideo_enc: ifdef out/replace references to deprecated codec flags.Anton Khirnov2012-01-12
|
* indeo4: add some missing static and const qualifiersKostya Shishkov2012-01-12
| | | | From the patch by Reimar Döffinger.
* rv34: DC-only inverse transformChristophe GISQUET2012-01-12
| | | | | | | | | | | | | | | When decoding coefficients, detect whether the block is DC-only, and take advantage of this knowledge to perform DC-only inverse transform. This is achieved by: - first, changing the 108x4 element modulo_three_table into a 108 element table (kind of base4), and accessing each value using mask and shifts. - then, checking low bits for 0 (as they represent the presence of higher frequency coefficients) Also provide x86 SIMD code for the DC-only inverse transform. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* latmdec: Check AudioSpecificConfig length before decoding extradata.Alex Converse2012-01-11
| | | | | | | This is different than a normal get_bits() over read because decode_audio_specific_config() creates its own GetBitContext. Fixes Bug 170.
* fft: init functions with INIT_XMM/YMM.Henrik Gramner2012-01-11
| | | | | | | | This is required to handle clobbering of XMM registers on Win64 correctly. Fixes FFT and all tests depending on FFT on Win64. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* pcmenc: set frame_size to 0.Justin Ruggles2012-01-11
| | | | | This indicates that the actual frame size is based on the buf_size passed to avcodec_encode_audio().