Paul B Mahol
5b8faaad6c
avfilter/vf_blend: fix incorrect Y variable when threading is used
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Ronald S. Bultje
f4075767b2
vf_colorspace: use enums for bpp/subsampling array indices.
...
Also add some documentation for each function to colorspacedsp.h.
9 years ago
Ronald S. Bultje
9b26a8077f
vf_colorspace: add const to yuv_stride[] argument in DSP functions.
9 years ago
Ronald S. Bultje
5ce703a6bf
vf_colorspace: x86-64 SIMD (SSE2) optimizations.
9 years ago
Thomas Mundt
d0a9114f99
avfilter/vf_bwdif: Add yadif base information to copyright header
...
Signed-off-by: Thomas Mundt <loudmax@yahoo.de>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Thomas Mundt
5024a82e95
avfilter/vf_bwdif: add x86 SIMD
...
Signed-off-by: Thomas Mundt <loudmax@yahoo.de>
9 years ago
Timothy Gu
222e6da605
x86/vf_blend: Add SSE2 optimization for divide
...
4.5x faster than C float version with autovectorization
10 x faster than C int version
25 x faster than C float version without autovectorization
9 years ago
Timothy Gu
4574323973
vf_blend: Reduce number of arguments for kernel function
9 years ago
Timothy Gu
74f8d9aaef
x86/vf_blend: Add SSE2 optimization for screen
...
10x faster than C.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Timothy Gu
c8b1612af0
x86/vf_blend: Move multiplying to a macro
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Timothy Gu
253209ac44
vf_blend: Add SSE2 optimization for multiply
...
5 times faster than C, 3 times overall.
9 years ago
Hendrik Leppkes
53ada3af62
x86/vf_w3fdif: 32-bit compatibility for w3fdif_simple_high
9 years ago
James Almer
35b0c7efda
x86/vf_stereo3d: remove a few unnecessary movas
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
1817643d4f
x86/vf_stereo3d: make ff_anaglyph_sse4 work on x86_32
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
6e243d17e9
x86/vf_stereo3d: optimize register usage
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
8dba3fb8fd
x86/vf_blend: add sse2 versions of blend_difference and blend_negation
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
02f428051a
x86/vf_blend: make all functions work on x86_32
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
0988c68cf9
x86/vf_blend: simplify using macros
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
ce4c85de6a
x86/vf_maskedmerge: make ff_maskedmerge8_sse2 work on x86_32
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
e42e0b11f1
avfilter/x86/vf_maskedmerge: Clear upper part of width
...
Fixes crash
Fixes: Ticket5055
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
45938f0301
avfilter/x86/vf_maskedmerge: move %define out of .nextrow
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
James Almer
d897d4c12d
x86/vf_w3fdif: use aligned loads in w3fdif_complex_high
...
Found-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
224a529b44
x86/vf_w3fdif: use aligned loads in w3fdif_simple_high
...
Found-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
e8903fbf8e
x86/vf_w3fdif: simplify w3fdif_simple_high
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
d2bf2d094e
x86/vf_w3fdif: move pxor outside the loop in w3fdif_complex_low
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
c3d312bb7f
avfilter/x86/vf_w3fdif: add colons after labels
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
5740dc27e1
avfilter/vf_w3fdif: add x86 SIMD
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Andreas Cadhalpun
8d6625642d
doc: fix spelling errors
...
Reviewed-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
9 years ago
Paul B Mahol
624a1a0e69
avfilter/x86/vf_blend.asm: hardmix: do same with two pxor instructions less
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
e999210cec
avfilter/x86/vf_blend.asm: 11th register is used, update functions
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
0948ba3204
avfilter/x86/vf_blend.asm: add hardmix and phoenix sse2 SIMD
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
ac74e857a2
avfilter/vf_stereo3d: add x86 SIMD for anaglyph outputs
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
fd9a528523
avfilter/vf_blend: Fix argument types, fix segfault in asm
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
9762554dd0
avfilter/vf_blend: add x86 SIMD for some modes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
160556c9ad
avfilter/vf_maskedmerge: add SIMD for maskedmerge with 8 bit depth input
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
0701ff2c32
avfilter/x86/vf_psnr.asm: fix typo
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Hendrik Leppkes
5d8e836d0e
Replace all remaining occurances of step/depth_minus1 and offset_plus1
9 years ago
Ronald S. Bultje
ad45121d56
options: mark av_get_{int,double,q} as deprecated.
...
Convert last users to av_opt_get_*() counterparts.
9 years ago
Henrik Gramner
ab43beefab
x86inc: Drop SECTION_TEXT macro
...
The .text section is already 16-byte aligned by default on all supported
platforms so `SECTION_TEXT` isn't any different from `SECTION .text`.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Henrik Gramner
f0b7882ceb
x86inc: Drop SECTION_TEXT macro
...
The .text section is already 16-byte aligned by default on all supported
platforms so `SECTION_TEXT` isn't any different from `SECTION .text`.
9 years ago
James Almer
d9e10af547
x86/vf_interlace: add missing colon to labels
...
Silences warnings with Nasm
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
e3851169ee
x86/vf_ssim: add ff_ssim_4x4_line_xop
...
~20% faster than ssse3. Also enabled for x86_32
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
e1778fb657
x86/vf_ssim: fix some instruction comments
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
eea08efc0d
avfilter/x86/vf_psnr.asm: split one line of license text into two
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
James Darnley
bff7242608
avfilter/vf_removegrain: add x86 and x86_64 SSE2 functions
...
Speed of all modes increased by a factor between 7.4 and 19.8 largely depending
on whether bytes are unpacked into words. Modes 2, 3, and 4 have been sped-up
by a factor of 43 (thanks quick sort!)
All modes are available on x86_64 but only modes 1, 10, 11, 12, 13, 14, 19, 20,
21, and 22 are available on x86 due to the number of SIMD registers used.
With a contribution from James Almer <jamrial@gmail.com>
9 years ago
Ronald S. Bultje
ae4c9ddebc
vf_psnr: sse2 optimizations for sum-squared-error.
...
The internal line accumulator for 16bit can overflow, so I changed that
from int to uint64_t in the C code. The matching assembly looks a little
weird but output looks correct.
(avx2 should be trivial to add later.)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Ronald S. Bultje
dfc58584b4
vf_ssim: x86 simd for ssim_4x4xN and ssim_endN.
...
Both are 2-2.5x faster than their C counterpart.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
James Almer
c16e99e3b3
x86: check for AV_CPU_FLAG_AVXSLOW where useful
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
James Almer
d68c05380c
x86: check for AV_CPU_FLAG_AVXSLOW where useful
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Michael Niedermayer
52fc3e372f
avfilter/x86/vf_hqdn3d: Fix register types
...
Fixes Ticket4301
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago