summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* vorbisdec: ensure FASTDIV denominator is never 1Luca Barbato2012-09-14
| | | | | | | | | | In both usages of FASTDIV the denominator might be 1. Using a branch could make the function slower than using a normal division. Both denominator and numerator can be multiplied by 2 safely and using shifts is faster than using a branch.
* x86: dsputil: Move Xvid IDCT put/add functions to a more suitable placeDiego Biurrun2012-09-14
|
* x86: Remove some leftover declarations for non-existent functionsDiego Biurrun2012-09-13
|
* x86: ac3dsp: Only refer to the ac3_downmix_sse symbol if it has been declaredMartin Storsjö2012-09-13
| | | | | | This fixes building without inline assembly. Signed-off-by: Martin Storsjö <martin@martin.st>
* ac3: move ac3_downmix() from dsputil to ac3dspMans Rullgard2012-09-12
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mlp_parser: avoid mapping multiple disctinct TrueHD channels to the same ↵Tim Walker2012-09-12
| | | | | | Libav channel. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* utvideoenc: Add missing AV_ prefix to codec IDDiego Biurrun2012-09-11
|
* x86: dsputil: Move specific optimization settings out of global init functionDiego Biurrun2012-09-11
| | | | They belong in the init functions specific to each CPU capability.
* x86: dsputil: Only compile motion_est code when encoders are enabledDiego Biurrun2012-09-10
|
* rtp: Depacketization of JPEG (RFC 2435)Samuel Pitoiset2012-09-09
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Rename ff_put_string to avpriv_put_stringMartin Storsjö2012-09-09
| | | | | | | This allows using it from libavformat as well. This will be used by the RTP/JPEG depacketizer. Signed-off-by: Martin Storsjö <martin@martin.st>
* mjpeg: Rename some symbols to avpriv_* instead of ff_*Samuel Pitoiset2012-09-09
| | | | | | These symbols will be used from the RTP/JPEG depacketizer. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: Replace checks for CPU extensions and flags by convenience macrosDiego Biurrun2012-09-08
| | | | | This separates code relying on inline from that relying on external assembly and fixes instances where the coalesced check was incorrect.
* x86: mlpdsp: mlp_filter_channel_x86 requires inline asmHendrik Leppkes2012-09-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* 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.