summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* 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>
* cllc: simplify/fix swapped data buffer allocation.Reimar Döffinger2012-08-28
| | | | | | | | | | | Using the malloc variant avoids pointless memcpy on size increase and simplifies handling allocation failure. Also change code to ensure that allocation, bswap and bitstream reader all use the same size, even when the packet size is odd for example. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* h264: Check that the codec isn't null before accessing itMartin Storsjö2012-08-28
| | | | | | | This fixes crashes introduced by 2e8f3cbcda5, the codec can be null when called from parsers. Signed-off-by: Martin Storsjö <martin@martin.st>
* audio_frame_queue: Define af_queue_log_state before using itMartin Storsjö2012-08-28
| | | | | | | This fixes building with DEBUG defined after the function was made static and the prototype removed in d7f9786cbc. Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1: export some functionsKostya Shishkov2012-08-28
| | | | | | | This is a preparatory step for the MSS2 decoder which needs to use the WMV9 decoder to decode some kinds of frames. From the patch by Alberto Delmás <adelmas@gmail.com>
* Revert "dsputil: make {add/put/put_signed}_pixels_clamped() non-static."Mans Rullgard2012-08-27
| | | | | | | | | This reverts commit 484a337cd7cd8bb180c4a1bd3321881f1c874a92. These functions were used in f8bed30 "VC1: merge idct8x8, coeff adjustments and put_pixels" which was reverted in 18b6a69. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: Restore dependency of acelp_filters.o on celp_math.oDiego Biurrun2012-08-27
|
* celp_math: Replace duplicate ff_dot_productf() by ff_scalarproduct_c()Diego Biurrun2012-08-27
|
* celp_math: Move ff_cos() to the only place it is usedDiego Biurrun2012-08-27
|
* vp56: Don't use DECLARE_ALIGN on a typedef nameDerek Buitenhuis2012-08-27
| | | | | | | | | | | | Instead, use it on the first member, since by definition, if any member is aligned, the whole struct must be, in order to maintain that alignment. Fixes compilation with some finicky compilers. Idea for fix from Måns Rullgård. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* mss1: move code that will be reused by MSS2 decoder into separate fileKostya Shishkov2012-08-27
|