summaryrefslogtreecommitdiffstats
path: root/libavcodec/dsputil.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec: Add av_cold attributes to init functions missing themDiego Biurrun2013-05-041-3/+6
|
* avcodec: Drop unnecessary ff_ name prefixes from static functionsDiego Biurrun2013-04-301-4/+4
|
* dsputil: Remove non-8bpp draw_edgeRonald S. Bultje2013-04-191-2/+2
| | | | | | It is never used. Signed-off-by: Martin Storsjö <martin@martin.st>
* dsputil: Merge 9-10 bpp functions for get_pixels and draw_edgeRonald S. Bultje2013-04-191-8/+2
| | | | | | | These only care about pixel storage unit size, not actual bits used (i.e. they don't clip). Signed-off-by: Martin Storsjö <martin@martin.st>
* dsputil: Remove unused 32-bit functionsRonald S. Bultje2013-04-191-8/+9
| | | | | | | | Previously, if dct_bits was set to 32, we used separate 32-bit versions of these functions. Since dct_bits now is removed, remove the unused 32-bit versions of the functions. Signed-off-by: Martin Storsjö <martin@martin.st>
* dsputil: Remove dct_bitsRonald S. Bultje2013-04-191-10/+2
| | | | | | | dct_bits is never set except in h264, where it is never used, thus remove it. Signed-off-by: Martin Storsjö <martin@martin.st>
* dsputil: Remove hpel functions (moved to hpeldsp)Ronald S. Bultje2013-04-191-18/+0
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* dsputil: Make square put/avg_pixels functions local to h264qpelRonald S. Bultje2013-04-101-1/+18
| | | | | | | Put a copy of the 8bit functions only in dsputil, where they are used for some other things (e.g. mpeg4qpel, mspel, cavsqpel). Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Move ff_cropTbl and ff_zigzag_direct from dsputil to mathtablesRonald S. Bultje2013-04-081-18/+0
| | | | | | | | | These are widely used throughout libavcodec, nothing dsputil-specific. Change ff_cropTbl to a statically initialized table, to avoid initializing it with a function call. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Make pointers to ff_cropTbl constMartin Storsjö2013-04-081-6/+6
| | | | | | There's no point in these pointers not being const. Signed-off-by: Martin Storsjö <martin@martin.st>
* h261: Remove H.261 loop filter from dsputilDiego Biurrun2013-04-051-29/+0
| | | | | There is no arch-optimized version of the H.261 loop filter and there likely will never be, so the dsputil overhead does not give any benefit.
* dsputil: convert remaining functions to use ptrdiff_t stridesLuca Barbato2013-03-121-53/+106
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* h264: Add add_pixels4/8() to h264dsp, and remove add_pixels4 from dsputilRonald S. Bultje2013-02-191-2/+22
| | | | | | | | | These functions are mostly H264-specific (the only other user I can spot is bink), and this allows us to special-case some functionality for H264. Also remove the 16-bit-coeff with >8bpp versions (unused) and merge the duplicate 32-bit-coeff for >8bpp (identical). Signed-off-by: Martin Storsjö <martin@martin.st>
* dsputil: Move fdct function declarations to dct.hDiego Biurrun2013-02-091-0/+1
|
* dsputil: Move LOCAL_ALIGNED macros to libavutilDiego Biurrun2013-02-081-0/+1
|
* dsputil: Move WRAPPER8_16_SQ macro to the only place it is usedDiego Biurrun2013-02-081-0/+14
|
* dsputil: Move ff_shrink* function declarations to separate headerDiego Biurrun2013-02-071-0/+1
|
* dsputil: Move copy_block functions to a separate headerDiego Biurrun2013-02-071-0/+1
|
* dsputil: Move ff_block_permute to mpegvideo_encDiego Biurrun2013-02-071-29/+0
|
* dsputil: Separate h264chromaDiego Biurrun2013-02-061-7/+0
|
* dsputil: Separate h264 qpelMans Rullgard2013-01-241-27/+1
| | | | | | | | | | The sh4 optimizations are removed, because the code is 100% identical to the C code, so it is unlikely to provide any real practical benefit. Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dsputil: remove one array dimension from avg_no_rnd_pixels_tab.Ronald S. Bultje2013-01-221-1/+1
|
* dsputil: remove 9/10 bits hpel functions.Ronald S. Bultje2013-01-221-19/+18
| | | | These are never used.
* dsputil: remove avg_no_rnd_pixels8.Ronald S. Bultje2013-01-221-1/+0
| | | | This is never used.
* Drop DCTELEM typedefDiego Biurrun2013-01-221-17/+17
| | | | | | It does not help as an abstraction and adds dsputil dependencies. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* floatdsp: move scalarproduct_float from dsputil to avfloatdsp.Ronald S. Bultje2013-01-221-12/+0
| | | | This makes the aac decoder and all voice codecs independent of dsputil.
* floatdsp: move butterflies_float from dsputil to avfloatdsp.Ronald S. Bultje2013-01-221-12/+0
| | | | | This makes wmadec/enc, twinvq and mpegaudiodec (i.e. mp2/mp3) independent of dsputil.
* floatdsp: move vector_fmul_reverse from dsputil to avfloatdsp.Ronald S. Bultje2013-01-221-8/+0
| | | | | | Now, nellymoserenc and aacenc no longer depends on dsputil. Independent of this patch, wmaprodec also does not depend on dsputil, so I removed it from there also.
* floatdsp: move vector_fmul_add from dsputil to avfloatdsp.Ronald S. Bultje2013-01-221-7/+0
|
* vp3/5: move put_no_rnd_pixels_l2 from dsputil to VP3DSPContext.Ronald S. Bultje2013-01-211-1/+0
| | | | | The function is only used in VP3 and VP5, so no need to have it in DSPContext.
* wmv2: move IDCT to its own DSP context.Ronald S. Bultje2013-01-201-89/+0
| | | | | | | | | | | This allows us to remove FF_IDCT_WMV2, which serves no practical purpose other than to be able to select the WMV2 IDCT for MPEG (or vice versa) and get corrupt output. Fate tests for all wmv2-related tests change, because (for some obscure reason) they forced use of the MPEG IDCT. You would get the same changes previously by not using -idct simple in the fate test (or replacing it with -idct auto).
* dsputil: remove butterflies_float_interleave.Ronald S. Bultje2013-01-201-13/+0
| | | | The function is unused.
* dsputil: drop non-compliant "fast" qpel mc functionsMans Rullgard2013-01-201-16/+0
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Remove put_no_rnd_pixels_l2 function pointer for w=16 from dsputil.Ronald S. Bultje2013-01-191-2/+1
| | | | The function is never used.
* Move vorbis_inverse_coupling from dsputil to vorbisdspcontext.Ronald S. Bultje2013-01-191-4/+0
| | | | | Conveniently (together with Justin's earlier patches), this makes our vorbis decoder entirely independent of dsputil.
* lavc: Move vector_fmul_window to AVFloatDSPContextJustin Ruggles2013-01-161-18/+0
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Drop Snow codecDiego Biurrun2013-01-061-11/+0
| | | | Snow is a toy codec with no real-world use and horrible code.
* lavc: introduce VideoDSPContextRonald S. Bultje2012-12-201-5/+0
| | | | | | | | Move some functions from dsputil. The idea is that videodsp contains functions that are useful for a large and varied set of video decoders. Currently, it contains emulated_edge_mc() and prefetch(). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dsputil: move vector_fmul_scalar() to AVFloatDSPContext in libavutilJustin Ruggles2012-11-261-9/+0
|
* avcodec: Remove broken MMI optimizationsDiego Biurrun2012-10-121-1/+0
| | | | The code fails to compile and is broken beyond repair.
* dsputil: split out mlp dsp functionLuca Barbato2012-10-111-4/+0
|
* ac3: move ac3_downmix() from dsputil to ac3dspMans Rullgard2012-09-121-4/+0
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* intrax8: move functions from dsputil to own contextMans Rullgard2012-09-021-3/+0
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Revert "dsputil: make {add/put/put_signed}_pixels_clamped() non-static."Mans Rullgard2012-08-271-14/+14
| | | | | | | | | 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>
* celp_math: Replace duplicate ff_dot_productf() by ff_scalarproduct_c()Diego Biurrun2012-08-271-2/+2
|
* eamad/eatgq/eatqi: call special EA IDCT directlyMans Rullgard2012-07-291-3/+0
| | | | | | | | | | | | These decoders use a special non-MPEG2 IDCT. Call it directly instead of going through dsputil. There is never any reason to use a regular IDCT with these decoders or to use the EA IDCT with other codecs. This also fixes the bizarre situation of eamad and eatqi decoding incorrectly if eatgq is disabled. Signed-off-by: Mans Rullgard <mans@mansr.com>
* vp3: move idct and loop filter pointers to new vp3dsp contextMans Rullgard2012-07-181-12/+0
| | | | | | | | This moves all VP3-specific function pointers from dsputil to a new vp3dsp context. There is no reason to ever use the VP3 IDCT where an MPEG2 IDCT is expected or vice versa. Signed-off-by: Mans Rullgard <mans@mansr.com>
* float_dsp: Move vector_fmac_scalar() from libavcodec to libavutilJustin Ruggles2012-06-181-9/+0
|
* Add a float DSP framework to libavutilJustin Ruggles2012-06-081-7/+0
| | | | Move vector_fmul() from DSPContext to AVFloatDSPContext.
* dsputil: fix invalid array indexingMans Rullgard2012-04-261-6/+10
| | | | | | | Indexing outside an array is invalid and causes errors with gcc 4.8. Signed-off-by: Mans Rullgard <mans@mansr.com>
OpenPOWER on IntegriCloud