summaryrefslogtreecommitdiff
path: root/libavcodec/dsputil.h
Commit message (Collapse)AuthorAge
...
* Change DSPContext.vector_fmul() from dst=dst*src to dest=src0*src1.Justin Ruggles2011-01-22
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Make LOCAL_ALIGNED macro fully C99 compatibleMans Rullgard2011-01-22
| | | | | | | | | C99 variadic macros require more arguments than there are named parameters in the definition. This means we must use an extra indirection to avoid having two different macros for arrays with one resp more than one dimension. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move lpc_compute_autocorr() from DSPContext to a new struct LPCContext.Justin Ruggles2011-01-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Revert 2a1f431d38ea9c05abb215d70c7dc09cdb6888ab, it broke H264 lossless.Ronald S. Bultje2011-01-20
|
* H.264/SVQ3: make chroma DC work the same way as luma DCJason Garrett-Glaser2011-01-15
| | | | | | | No speed improvement, but necessary for some future stuff. Also opens up the possibility of asm chroma dc idct/dequant. Originally committed as revision 26349 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Port SVQ3 to use the new mb_luma_dc method of storing luma DC coefficients.Jason Garrett-Glaser2011-01-15
| | | | | | | Doesn't help speed as there isn't an asm implementation yet, but consistency is a good thing. Originally committed as revision 26348 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix SVQ3Jason Garrett-Glaser2011-01-14
| | | | | | Regression in r26336-7. Originally committed as revision 26341 to svn://svn.ffmpeg.org/ffmpeg/trunk
* H.264: split luma dc idct out and implement MMX/SSE2 versionsJason Garrett-Glaser2011-01-14
| | | | | | | | | | About 2.5x the speed. NOTE: the way that the asm code handles large qmuls is a bit suboptimal. If x264-style dequant was used (separate shift and qmul values), it might be possible to get some extra speed. Originally committed as revision 26336 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move mm_support() from libavcodec to libavutil, make it a publicStefano Sabatini2010-09-08
| | | | | | function and rename it to av_get_cpu_flags(). Originally committed as revision 25076 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 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
* Remove global mm_flags variableMåns Rullgård2010-08-24
| | | | Originally committed as revision 24909 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
* 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
* Add const to ff_emulated_edge_mcDavid Conrad2010-05-27
| | | | Originally committed as revision 23348 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
* 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 FFT parts from dsputil.h to fft.hMåns Rullgård2010-03-06
| | | | Originally committed as revision 22235 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
* Move DECLARE_ALIGNED_{8,16} macros to mem.hMåns Rullgård2010-03-06
| | | | | | | These macros naturally belong next to the generic DECLARE_ALIGNED macro. Originally committed as revision 22230 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
* 10l: remove stray '(' I don't know where it came fromMåns Rullgård2010-02-17
| | | | Originally committed as revision 21867 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add LOCAL_ALIGNED() macro for declaring aligned local arraysMåns Rullgård2010-02-17
| | | | Originally committed as revision 21864 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
* Floating point discrete cosine transformVitor Sessak2010-01-20
| | | | Originally committed as revision 21338 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
* Add support for hard-coded MDCT-related ff_sine_windows tables.Reimar Döffinger2010-01-09
| | | | Originally committed as revision 21108 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
* Add ff_init_ff_cos_tabs function and use it in rdft.c to ensure that theReimar Döffinger2009-11-05
| | | | | | | necessary ff_cos_tabs tables are initialized. Fixes issue 1507 (QDM2 broken since r20237 without hardcoded tables). Originally committed as revision 20464 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pad ff_cos_tabs and ff_sin_tabs so that index n points to the table for n bits.Reimar Döffinger2009-11-04
| | | | | | | While this "wastes" up to 2x32 bytes it makes the code slightly simpler and less confusing. Originally committed as revision 20449 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
* simd add_hfyu_left_predictionLoren Merritt2009-10-18
| | | | | | | 2.2x faster than C on conroe, 3.6x on penryn. 4-6% faster huffyuv decoding if using left or plane mode and yuv Originally committed as revision 20287 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
* 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
* Add support for hardcoded ff_sin_* tables.Reimar Döffinger2009-10-15
| | | | Originally committed as revision 20244 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move/add COSTABLE/SINTABLE macros to dsputil to add extern definitionsReimar Döffinger2009-10-15
| | | | | | for ff_cos_* and ff_sin_* without introducing too much code duplication. Originally committed as revision 20243 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not initialize ff_cos_* tables again in rdft_init, they are alreadyReimar Döffinger2009-10-15
| | | | | | | | initialized by ff_fft_init and using different code can result in slightly different values, in addition it crashes when the tables are hardcoded. On amd64 this slightly changes qdm2 output. Originally committed as revision 20237 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use hardcoded instead of runtime-calculated ff_cos_* tables ifReimar Döffinger2009-10-14
| | | | | | | --enable-hardcoded-tables was used. Due to the size, the code for the tables is generated at compile time. Originally committed as revision 20232 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
* Allow arch-specific mdct code to request interleaving of cos/sin tablesMåns Rullgård2009-09-21
| | | | Originally committed as revision 19939 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge FFTContext and MDCTContextMåns Rullgård2009-09-20
| | | | Originally committed as revision 19931 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: fix ff_fft_init_arm() prototypeMåns Rullgård2009-09-15
| | | | Originally committed as revision 19865 to svn://svn.ffmpeg.org/ffmpeg/trunk