summaryrefslogtreecommitdiff
path: root/libavcodec/dsputil.c
Commit message (Collapse)AuthorAge
* Reimplement ff_img_copy_plane() as av_image_copy_plane() in libavcore,Stefano Sabatini2010-09-07
| | | | | | and deprecate the old function. Originally committed as revision 25064 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove duplicate definitions of fullpel MC functionsMåns Rullgård2010-08-25
| | | | | | | This removes duplicated definitions of 8x8 and 16x16 fullpel MC functions with various names reducing dsputil.o by 8k on x86_64. Originally committed as revision 24933 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move vp6_filter_diag4() from DSPContext to VP56DSPContext.Ronald S. Bultje2010-08-25
| | | | Originally committed as revision 24921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move cavs dsp functions to their own structMåns Rullgård2010-08-03
| | | | Originally committed as revision 24685 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make ff_inverse stay with libavutil, and optional copy it to libavcodec.Diego Pettenò2010-07-21
| | | | | | | | | | | | | | | | | | | The ff_inverse table is used by FASTDIV macro, defined in libavutil, but up to now the table was defined only in libavcodec. After this change, the main copy of ff_inverse is part of libavutil (just like FASTDIV), but if CONFIG_SMALL is unset, then a different copy is made available to libavcodec, to avoid the performance penalty of using an external look up table. Dynamic linking works, because the libraries are linked with -Bsymbolic, so the local copy of the symbol has priority over the external; static linking works because the table is on a standalone object file in both libraries, so the linker is able to discard one of the two. Tested on Linux/x86-64 and Mac OS X/x86-64. Originally committed as revision 24383 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to bswap macrosMåns Rullgård2010-07-10
| | | | Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-30
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set rv34 (0,0) subpel mc functions to the optimised h264 onesMåns Rullgård2010-06-28
| | | | Originally committed as revision 23845 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add const to some pointer parameters.Eli Friedman2010-06-27
| | | | | | Patch by Eli Friedman, eli D friedman A gmail Originally committed as revision 23826 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make VP8 DSP functions take two stridesJason Garrett-Glaser2010-06-25
| | | | | | | This isn't useful for the C functions, but will allow re-using H and V functions for HV functions without adding separate H and V wrappers. Originally committed as revision 23782 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Native VP8 decoder.David Conrad2010-06-22
| | | | | | Patch by David Conrad <lessen42 gmail com> and myself. Originally committed as revision 23719 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add const to ff_emulated_edge_mcDavid Conrad2010-05-27
| | | | Originally committed as revision 23348 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add more const to _l4 pixel functionsDavid Conrad2010-05-27
| | | | Originally committed as revision 23347 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: DC-only IDCTDavid Conrad2010-04-17
| | | | | | 2-4% faster overall decode Originally committed as revision 22896 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move H264 dsputil functions into their own structMåns Rullgård2010-03-16
| | | | | | | | | | | This moves the H264-specific functions from DSPContext to the new H264DSPContext. The code is made conditional on CONFIG_H264DSP which is set by the codecs requiring it. The qpel and chroma MC functions are not moved as these are used by non-h264 code. Originally committed as revision 22565 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Separate DWT from snow and dsputilMåns Rullgård2010-03-14
| | | | | | | | This moves the DWT functions from snow.c and dsputil.c to a file of their own. A new struct, DWTContext, holds the function pointers previously part of DSPContext. Originally committed as revision 22522 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add some required castsMåns Rullgård2010-03-11
| | | | | | | | These casts are correct and safe. The pointers are guaranteed to have proper alignment, and aliasing is not a problem with character types. Originally committed as revision 22446 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ff_spatial_dwt() prototype to snow.hMåns Rullgård2010-03-06
| | | | Originally committed as revision 22265 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move some dsp func prototypes to dsputil.h; they are defined in dsputil.cMåns Rullgård2010-03-06
| | | | Originally committed as revision 22264 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move some VC1 dsp prototypes to dsputil.h; they are defined in dsputil.cMåns Rullgård2010-03-06
| | | | | | Also fix function definitions to match prototypes (missing const). Originally committed as revision 22263 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move prototypes for various dsputil init functions to dsputil.hMåns Rullgård2010-03-06
| | | | Originally committed as revision 22261 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move some prototypes from dsputil.c to reasonable header filesMåns Rullgård2010-03-06
| | | | Originally committed as revision 22260 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove DECLARE_ALIGNED_{8,16} macrosMåns Rullgård2010-03-06
| | | | | | | These macros are redundant. All uses are replaced with the generic DECLARE_ALIGNED macro instead. Originally committed as revision 22233 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Bink video decoderKostya Shishkov2010-02-21
| | | | Originally committed as revision 21937 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use LOCAL_ALIGNED macro for local arraysMåns Rullgård2010-02-17
| | | | Originally committed as revision 21866 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify some declarations of aligned arraysMåns Rullgård2010-02-17
| | | | | | If DECLARE_ALIGNED_16 works on uint64_t it will work smaller types too. Originally committed as revision 21863 to svn://svn.ffmpeg.org/ffmpeg/trunk
* The SSSE3 version of dct_quantize in mpegvideo_mmx_template.c needsReimar Döffinger2010-01-22
| | | | | | | inv_zigzag_direct16 16-byte aligned, so mark it appropriately. Fixes encoder crashes e.g. with MPlayer's -vf lavc. Originally committed as revision 21389 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move array specifiers outside DECLARE_ALIGNED() invocationsMåns Rullgård2010-01-22
| | | | Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark the h264 c loop filter as av_always_inline av_flatten to make sure itsMichael Niedermayer2010-01-19
| | | | | | | all inlined, its small and horizontal & vertical versions are build out of them. no change as gcc already did this. Originally committed as revision 21333 to svn://svn.ffmpeg.org/ffmpeg/trunk
* skip outer pixels if possible in h264_loop_filter_luma_c().Michael Niedermayer2010-01-19
| | | | | | overall 3.7% faster loop filtering (C version only) Originally committed as revision 21332 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement alpha channel decoding for BGR HuffYUV.Alexander Strange2010-01-14
| | | | | | | Since BGR24 is decoded as BGR32, fill its alpha channel with 255 using the appropriate predictors. Originally committed as revision 21211 to svn://svn.ffmpeg.org/ffmpeg/trunk
* More av_cold for infrequently called functions.Zuxy Meng2010-01-13
| | | | Originally committed as revision 21179 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of pointless CONFIG_ANY_H263 preprocessor definition.Diego Biurrun2009-12-30
| | | | Originally committed as revision 20975 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add required header #includes for mpegvideo.h and config.h.Diego Biurrun2009-12-30
| | | | Originally committed as revision 20974 to svn://svn.ffmpeg.org/ffmpeg/trunk
* refactor and optimize scalarproductLoren Merritt2009-12-05
| | | | | | | | 29-105% faster apply_filter, 6-90% faster ape decoding on core2 (Any x86 other than core2 probably gets much less, since this is mostly due to ssse3 cachesplit avoidance and I haven't written the full gamut of other cachesplit modes.) 9-123% faster ape decoding on G4. Originally committed as revision 20739 to svn://svn.ffmpeg.org/ffmpeg/trunk
* huffyuv: add some const qualifiersLoren Merritt2009-10-18
| | | | Originally committed as revision 20290 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add CONFIG_LPC to the build system for lpc dsputil functions. fixes buildJustin Ruggles2009-10-18
| | | | | | problems when lpc.c is not compiled. Originally committed as revision 20285 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move autocorrelation function from flacenc.c to lpc.c. Also rename theJustin Ruggles2009-10-17
| | | | | | | | corresponding dsputil functions and remove their dependency on the FLAC encoder. Fixes Issue1486. Originally committed as revision 20266 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove a meaningless 'inline' from add_hfyu_left_prediction_bgr32_c().Alexander Strange2009-10-16
| | | | Originally committed as revision 20260 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Huffyuv: Add missing const to src pointers in dsputil functions.Alexander Strange2009-10-16
| | | | Originally committed as revision 20259 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move HuffYUV left prediction to dsputil.Nathan Caldwell2009-10-06
| | | | | | Patch by Nathan Caldwell, saintdev gmail Originally committed as revision 20179 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Drop unused args from vector_fmul_add_add, simpify code, and renameMåns Rullgård2009-09-27
| | | | | | | | | The src3 and step arguments to vector_fmul_add_add() are always zero and one, respectively. This removes these arguments from the function, simplifies the code accordingly, and renames the function to better match the new operation. Originally committed as revision 20061 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add some dsputil functions useful for AAC decoderMåns Rullgård2009-09-22
| | | | Originally committed as revision 19955 to svn://svn.ffmpeg.org/ffmpeg/trunk
* extend ff_inverse[], and fix its documentationLoren Merritt2009-09-21
| | | | Originally committed as revision 19942 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark parameter src of vector_clipf() as constVitor Sessak2009-08-27
| | | | Originally committed as revision 19729 to svn://svn.ffmpeg.org/ffmpeg/trunk
* SSE optimized vector_clipf(). 10% faster TwinVQ decoding.Vitor Sessak2009-08-27
| | | | Originally committed as revision 19728 to svn://svn.ffmpeg.org/ffmpeg/trunk
* dsputil: declare some arrays 16-byte alignedMåns Rullgård2009-08-26
| | | | | | | These arrays are passed to functions for which we promise 16-byte alignment, so make sure we fulfil that promise. Originally committed as revision 19716 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100l, inv_zigzag_direct16 must be aligned to 16 bytes for dct_quantize_SSE2Reimar Döffinger2009-08-26
| | | | | | (which uses movdqa to xmm1 on inv_zigzag_direct16). Originally committed as revision 19711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit init to zero of static inv_zigzag_direct16Måns Rullgård2009-08-25
| | | | Originally committed as revision 19704 to svn://svn.ffmpeg.org/ffmpeg/trunk