summaryrefslogtreecommitdiff
path: root/libavcodec/hpeldsp.c
Commit message (Collapse)AuthorAge
* all: Replace if (ARCH_FOO) checks by #if ARCH_FOOAndreas Rheinhardt2022-06-15
| | | | | | | | | | | | | | | | | | This is more spec-compliant because it does not rely on dead-code elimination by the compiler. Especially MSVC has problems with this, as can be seen in https://ffmpeg.org/pipermail/ffmpeg-devel/2022-May/296373.html or https://ffmpeg.org/pipermail/ffmpeg-devel/2022-May/297022.html This commit does not eliminate every instance where we rely on dead code elimination: It only tackles branching to the initialization of arch-specific dsp code, not e.g. all uses of CONFIG_ and HAVE_ checks. But maybe it is already enough to compile FFmpeg with MSVC with whole-programm-optimizations enabled (if one does not disable too many components). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec: [loongarch] Optimize hpeldsp with LASX.Shiyou Yin2022-01-04
| | | | | | | | | ./ffmpeg -i 8_mpeg4_1080p_24fps_12Mbps.avi -f rawvideo -y /dev/null -an before:376fps after :433fps Reviewed-by: 殷时友 <yinshiyou-hf@loongson.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for hpel functionsShivraj Patil2015-06-19
| | | | | | | | This patch adds MSA (MIPS-SIMD-Arch) optimizations for hpel functions in new file hpeldsp_msa.c Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'f0ce9913d0974ac0c7371a62c3324dd2863b5d1b'Michael Niedermayer2014-06-13
|\ | | | | | | | | | | | | * commit 'f0ce9913d0974ac0c7371a62c3324dd2863b5d1b': Rename tpel_template.c ---> pel_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Rename tpel_template.c ---> pel_template.cDiego Biurrun2014-06-13
| | | | | | | | The new name more accurately describes what the file is about.
* | Merge commit '880e2aa23645ed9871c66ee1cbd00f93c72d2d73'Michael Niedermayer2014-06-02
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '880e2aa23645ed9871c66ee1cbd00f93c72d2d73': Remove all Blackfin architecture optimizations Conflicts: libavcodec/bfin/dsputil.S libavcodec/bfin/dsputil_init.c libavcodec/bfin/fdct_bfin.S libavcodec/bfin/hpel_pixels_no_rnd.S libavcodec/bfin/hpeldsp_init.c libavcodec/bfin/idct_bfin.S libavcodec/bfin/mathops.h libavcodec/bfin/pixels.S libavcodec/bfin/pixels.h libavcodec/bfin/vp3dsp.S libavcodec/bfin/vp3dsp_init.c libavutil/bfin/asm.h libavutil/bfin/attributes.h libswscale/bfin/internal_bfin.S libswscale/bfin/swscale_bfin.c libswscale/bfin/yuv2rgb_bfin.c libswscale/swscale_internal.h libswscale/version.h If someone wants to maintain blackfin support in FFmpeg, please contact ffmpeg-devel@ffmpeg.org Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove all Blackfin architecture optimizationsDiego Biurrun2014-06-02
| | | | | | | | | | | | Blackfin is a painful platform to work with, no test machines are available and the range of multimedia applications is dubious. Thus it only represents a maintenance burden.
* | Merge commit '55d7f26e7bcf1dfb69ee986aa9fc21c62e0b3ae6'Michael Niedermayer2014-03-26
|\| | | | | | | | | | | | | | | | | | | * commit '55d7f26e7bcf1dfb69ee986aa9fc21c62e0b3ae6': hpeldsp_template: Move content to hpeldsp Conflicts: libavcodec/hpeldsp_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hpeldsp_template: Move content to hpeldspDiego Biurrun2014-03-26
| | | | | | | | There is no point in having this separate; it is not used as a template.
* | Merge commit '8011ac911b3f282b9fb64a0fc15404f8bfc7b7ed'Michael Niedermayer2014-03-26
|\| | | | | | | | | | | | | | | | | | | * commit '8011ac911b3f282b9fb64a0fc15404f8bfc7b7ed': hpeldsp_template: Detemplatize the code Conflicts: libavcodec/hpeldsp_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hpeldsp_template: Detemplatize the codeDiego Biurrun2014-03-26
| | | | | | | | The indirection makes no sense without multiple instantiation.
* | Merge commit 'b4dd424d96f09f9bafb88e47f37df65dc4529143'Michael Niedermayer2014-03-13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b4dd424d96f09f9bafb88e47f37df65dc4529143': Remove all SPARC architecture optimizations Conflicts: Makefile configure libavcodec/sparc/dsputil_vis.c libavcodec/sparc/dsputil_vis.h libavcodec/sparc/hpeldsp_vis.c libavcodec/sparc/simple_idct_vis.c libavcodec/sparc/vis.h libswscale/sparc/yuv2rgb_vis.c libswscale/swscale_internal.h If someone wants to maintain these (or other) SPARC optimizations, please contact me or ffmpeg-devel. I am happy to revert this removial if theres someone considering to maintain this code. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove all SPARC architecture optimizationsDiego Biurrun2014-03-13
| | | | | | | | | | SPARC is no longer being used in any multimedia-related fields and the VIS optimizations only represent a maintenance burden.
* | Merge commit 'c65d67ef50241886b9749e88fd333c52090f70c7'Michael Niedermayer2014-01-15
|\| | | | | | | | | | | | | | | | | | | | | * commit 'c65d67ef50241886b9749e88fd333c52090f70c7': aarch64: hpeldsp NEON optimizations Conflicts: libavcodec/hpeldsp.c libavcodec/hpeldsp.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * aarch64: hpeldsp NEON optimizationsJanne Grunau2014-01-15
| | | | | | | | Ported from ARMv7 NEON.
| * Remove all Alpha architecture optimizationsDiego Biurrun2013-11-13
| | | | | | | | Alpha has been end-of-lifed and no more test machines are available.
* | Merge commit '0c15a9aa7e1654a19144eb594f9639a57fd47482'Michael Niedermayer2013-04-22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0c15a9aa7e1654a19144eb594f9639a57fd47482': sh4: Remove dubious aligned dsputil code Conflicts: libavcodec/sh4/dsputil_align.c libavcodec/sh4/h264chroma_init.c libavcodec/sh4/hpeldsp.c libavcodec/sh4/qpel.c If someone wants to maintain the sh4 code in ffmpeg, wants to add more optimizations, or volunteers to maintain any of what is removed here and can confirm that they are faster. Then please contact us! Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * sh4: Remove dubious aligned dsputil codeDiego Biurrun2013-04-22
| | | | | | | | | | | | The code represents a considerable maintenance burden and it is not clear that it gives a noticeable benefit to outweigh this after 10 years of improvements in compiler technology since its creation.
| * alpha: hpeldsp: Move half-pel assembly from dsputil to hpeldspRonald S. Bultje2013-04-19
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
| * sparc: hpeldsp: Move vis half-pel assembly from dsputil to hpeldspRonald S. Bultje2013-04-19
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
| * sh4: hpeldsp: Move half-pel assembly from dsputil to hpeldspMichael Niedermayer2013-04-19
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'bfb41b5039e36b7f873d6ea7d24b31bf3e1a8075'Michael Niedermayer2013-04-20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'bfb41b5039e36b7f873d6ea7d24b31bf3e1a8075': bfin: hpeldsp: Move half-pel assembly from dsputil to hpeldsp Conflicts: libavcodec/bfin/Makefile libavcodec/bfin/hpel_pixels_bfin.S libavcodec/bfin/hpeldsp_bfin.c libavcodec/bfin/hpeldsp_bfin.h libavcodec/hpeldsp.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * bfin: hpeldsp: Move half-pel assembly from dsputil to hpeldspRonald S. Bultje2013-04-19
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '7384b7a71338d960e421d6dc3d77da09b0a442cb'Michael Niedermayer2013-04-20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7384b7a71338d960e421d6dc3d77da09b0a442cb': arm: hpeldsp: Move half-pel assembly from dsputil to hpeldsp Conflicts: libavcodec/arm/Makefile libavcodec/arm/hpeldsp_arm.S libavcodec/arm/hpeldsp_arm.h libavcodec/arm/hpeldsp_armv6.S libavcodec/arm/hpeldsp_init_arm.c libavcodec/arm/hpeldsp_init_armv6.c libavcodec/arm/hpeldsp_init_neon.c libavcodec/arm/hpeldsp_neon.S libavcodec/hpeldsp.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * arm: hpeldsp: Move half-pel assembly from dsputil to hpeldspRonald S. Bultje2013-04-19
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '47e5a98174eb9c07ad17be71df129719d60ec8b7'Michael Niedermayer2013-04-20
|\| | | | | | | | | | | | | | | | | | | | | * commit '47e5a98174eb9c07ad17be71df129719d60ec8b7': ppc: hpeldsp: Move half-pel assembly from dsputil to hpeldsp Conflicts: libavcodec/hpeldsp.h libavcodec/ppc/hpeldsp_altivec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ppc: hpeldsp: Move half-pel assembly from dsputil to hpeldspRonald S. Bultje2013-04-19
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '8db00081a37d5b7e23918ee500bb16bc59b57197'Michael Niedermayer2013-04-20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8db00081a37d5b7e23918ee500bb16bc59b57197': x86: hpeldsp: Move half-pel assembly from dsputil to hpeldsp Conflicts: libavcodec/hpeldsp.c libavcodec/hpeldsp.h libavcodec/x86/Makefile libavcodec/x86/dsputil_mmx.c libavcodec/x86/hpeldsp_init.c libavcodec/x86/hpeldsp_rnd_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: hpeldsp: Move half-pel assembly from dsputil to hpeldspRonald S. Bultje2013-04-19
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '68d8238cca52e50e8cc81bf2edcaf8088c52d4c0'Michael Niedermayer2013-04-20
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '68d8238cca52e50e8cc81bf2edcaf8088c52d4c0': hpeldsp: Add half-pel functions (currently copies of dsputil) Conflicts: libavcodec/hpeldsp.c libavcodec/hpeldsp.h libavcodec/hpeldsp_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hpeldsp: Add half-pel functions (currently copies of dsputil)Ronald S. Bultje2013-04-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Move alpha half-pel assembly from dsputil to hpeldsp.Ronald S. Bultje2013-03-13
|
* Move sparc/vis half-pel assembly from dsputil to hpeldsp.Ronald S. Bultje2013-03-13
|
* Move sh4 half-pel assembly from dsputil to hpeldsp.Michael Niedermayer2013-03-13
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Move bfin half-pel assembly from dsputil to hpeldsp.Ronald S. Bultje2013-03-13
|
* Move arm half-pel assembly from dsputil to hpeldsp.Ronald S. Bultje2013-03-13
|
* Move ppc half-pel assembly from dsputil to hpeldsp.Ronald S. Bultje2013-03-13
|
* Move x86 half-pel assembly from dsputil to hpeldsp.Ronald S. Bultje2013-03-13
|
* hpeldsp: add half-pel functions (currently copies of dsputil).Ronald S. Bultje2013-03-13