summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* x86: more specific checks for availability of required assembly capabilitiesDiego Biurrun2012-09-07
|
* x86: avcodec: Drop silly "_mmx" suffix from dsputil template namesDiego Biurrun2012-09-07
|
* cavsdsp: set idct permutation independently of dsputilMans Rullgard2012-09-07
| | | | | | | CAVS uses its own idct so using dsputil to set the permutation is fragile. Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: allow using add_hfyu_median_prediction_cmov on any cpu with cmovMans Rullgard2012-09-07
| | | | | | | | | For some reason add_hfyu_median_prediction_cmov is only selected on 3Dnow-capable CPUs, even though it uses no 3Dnow instructions. This patch allows it to be selected on any cpu with cmov with the possibility of being overridden by the mmxext version. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mss2: simplify loop in decode_rle()Alberto Delmás2012-09-06
| | | | | | | | It calculates the sum of power of two series, which can be done in one step. Suggested by Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mss12: avoid unnecessary division in arith*_get_bit()Alberto Delmás2012-09-06
| | | | | | | | | | | | That division can be replaced with a comparison: ((c->value - c->low) << 1) + 1 >= range By expanding 'range' definition and simplifying this inequation we obtain the final expression. Suggested by Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mss2: do not try to read too many palette entriesAlberto Delmás2012-09-06
| | | | | | Reported by Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mpegvideo: set AVFrame fields to NULL after freeing the base memoryJanne Grunau2012-09-06
| | | | | | Prevents dangling pointers and makes access after free more obvious. Setting AVFrame.qscale_table to NULL is required for successfully allocating a previously freed Picture with ff_alloc_picture().
* x86: dsputil: Do not redundantly check for CPU caps before calling init funcsDiego Biurrun2012-09-06
| | | | The init functions check for CPU capabilities on their own already.
* x86: vp56: cmov version of vp56_rac_get_prob requires inline asmHendrik Leppkes2012-09-05
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* dsputil: workaround __VA_ARGS__ missing tokenization for MSVCLuca Barbato2012-09-05
| | | | | | A second expansion forces the preprocessor to tokenize properly. Signed-off-by: Martin Storsjö <martin@martin.st>
* parser: Don't use pc as context for av_dlogMartin Storsjö2012-09-05
| | | | | | | The ParserContext class doesn't have an AVClass, required for using it as a logging class. Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: Remove an assert on current_picture_ptr being nullMichael Niedermayer2012-09-05
| | | | | | | | | It is possible in various error paths as well as gap handling that this has already been allocated. It is not clear why that would be a problem with the current code, thus disable the assert to avoid a common assert failure when asserts are enabled. Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Explicitly store float/double option defaults in .dblMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* svq1enc: Set picture_structure correctlyMichael Niedermayer2012-09-04
| | | | | | This fixes assert failures when running in debug mode. Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegvideo: remove last_picture_ptr / h264 assert.Michael Niedermayer2012-09-04
| | | | | | | This assert is no longer true since h264 error concealment needs last_picture_ptr to be set. Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegvideo_enc: remove assert that has become obsolete with the new APIMichael Niedermayer2012-09-04
| | | | | | It now just checks uninitialized and unused data. Signed-off-by: Martin Storsjö <martin@martin.st>
* elbg: Fix an assertMichael Niedermayer2012-09-04
| | | | | | It seems the condition was flipped from what was intended. Signed-off-by: Martin Storsjö <martin@martin.st>
* proresenc: Don't free a buffer not owned by the codecMartin Storsjö2012-09-04
| | | | | | | | | | The data in coded_frame isn't allocated using get_buffer, but is copied from the input frame to the encoder, so we should not try to free it ourselves. This fixes an assert failure when running in debug mode. Signed-off-by: Martin Storsjö <martin@martin.st>
* proresenc: Write the full value in one put_bits callMartin Storsjö2012-09-04
| | | | | | | | | Previously, the put_bits call writing the value wrote a value larger than the number of bits specified, failing asserts in debug mode. There was no actual bitstream writer corruption, since the overwritten bit already always was set to 1. Signed-off-by: Martin Storsjö <martin@martin.st>
* adpcmenc: Calculate the IMA_QT predictor without overflowMichael Niedermayer2012-09-04
| | | | | | | | | | | | | | Previously, the value given to put_bits was 10 bits long for positive predictors, even though 9 bits were to be written. The extra bit could in some cases overwrite existing bits in the bitstream writer cache. This fixes a failed assert in put_bits.h, when running a version built with -DDEBUG. The fate test result gets slightly improved, thanks to getting rid of the overwritten bits in the bitstream writer cache. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: h264dsp: drop some unnecessary ifdefs around prototype declarationsDiego Biurrun2012-09-04
|
* mss12: merge decode_pixel() and decode_top_left_pixel()Alberto Delmás2012-09-03
| | | | | | No meaningful generated code differences using gcc -O3. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mss12: reduce SliceContext size from 1067 to 164 KBAlberto Delmás2012-09-03
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mss12: move SliceContexts out of the common context into the codec contextsAlberto Delmás2012-09-03
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* build: avcodec: order cosmeticsDiego Biurrun2012-09-03
|
* intrax8dsp: Add missing #include to make header standaloneDiego Biurrun2012-09-03
|
* Delete motion-test tool; it is of doubtful utility.Diego Biurrun2012-09-03
|
* intrax8: move functions from dsputil to own contextMans Rullgard2012-09-02
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* MSS1 and MSS2: set final pixel format after common stuff has been initialisedAlberto Delmás2012-08-31
| | | | | | | This way it won't interfere with WMV9 initialisation inside MSS2 decoder and avplay will play it fine. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* MSS2 decoderAlberto Delmás2012-08-31
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* x86: Split inline and external assembly #ifdefsDiego Biurrun2012-08-31
|
* x86: Fix linking with some or all of yasm, mmx, optimizations disabledDiego Biurrun2012-08-30
| | | | | Some optimized template functions reference optimized symbols, so they must be explicitly disabled when those symbols are unavailable.
* x86: cosmetics: Comment some #endifs for better readabilityDiego Biurrun2012-08-30
|
* g723_1: add comfort noise generationKostya Shishkov2012-08-30
|
* utvideoenc: Switch to dsputils' median predictionMichael Niedermayer2012-08-30
| | | | | | | Also, align the mangled RGB planes, which is required for the SIMD versions of dsputils' median predict. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* utvideoenc: Avoid writing into the input pictureMichael Niedermayer2012-08-30
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavc: add lossy/lossless codec properties.Anton Khirnov2012-08-30
|
* Add reminders to update the codec descriptor list with new codec IDs.Anton Khirnov2012-08-29
|
* x86: Always compile files with functions that are called unconditionallyDiego Biurrun2012-08-29
|
* x86: mpegvideoenc: fix linking with --disable-mmxDiego Biurrun2012-08-29
| | | | | | The optimized dct_quantize template functions reference optimized fdct symbols, so these functions must only be enabled if the relevant optimizations have been enabled by configure.
* x86: mpegvideoenc: Do not abuse HAVE_ variables for template instantiationDiego Biurrun2012-08-29
| | | | This avoids trouble if HAVE_ variables are used elsewhere in the file.
* testprogs: Remove unused includesMartin Storsjö2012-08-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: avcodec: Drop silly "_mmx" suffixes from filenamesDiego Biurrun2012-08-28
|
* x86: avcodec: Drop silly "_sse" suffixes from filenamesDiego Biurrun2012-08-28
|
* utvideoenc: use ff_huff_gen_len_tableMichael Niedermayer2012-08-28
| | | | | | Avoid code duplication and provide faster and better compression. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* huffman: add ff_huff_gen_len_tableMichael Niedermayer2012-08-28
| | | | | | The function will be used by utvideo as well. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>