James Almer
1628409b18
x86/vf_gblur: fix reg name in UNIX64 prologue
...
Signed-off-by: James Almer <jamrial@gmail.com>
2021-02-17 15:51:28 -03:00
James Almer
2b4da1cb8c
x86/vf_gblur: fix postscale_slice prologue
...
x86_32 ABI does not pass float arguments directly on xmm regs, and the Win64
ABI uses only the first four regs for this purpose.
Signed-off-by: James Almer <jamrial@gmail.com>
2021-02-17 13:33:20 -03:00
Paul B Mahol
44cf3a2b16
avfilter/x86/vf_gblur: add postscale SIMD
2021-02-16 21:12:11 +01:00
Paul B Mahol
c6ce18be08
avfilter/vf_convolution: add 16-column operation for filter_column()
...
Based on patch by Xu Jun <xujunzz@sjtu.edu.cn>
2021-02-13 14:45:48 +01:00
Paul B Mahol
95183d25e8
avfilter/vf_atadenoise: add sigma options
2021-01-22 16:21:22 +01:00
Paul B Mahol
eaba6cecfb
avfilter/vf_v360: add mitchell interpolation
2020-10-04 19:23:52 +02:00
Paul B Mahol
fda5363c80
avfilter/x86/vf_convolution_init: there is asm only for 8bit depth
2020-09-15 08:13:04 +02:00
Limin Wang
71ec3e4583
Revert "avfilter/yadif: simplify the code for better readability"
...
This reverts commit 2a9b934675
.
2020-08-27 07:30:30 +08:00
Limin Wang
2a9b934675
avfilter/yadif: simplify the code for better readability
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-08-26 14:21:11 +08:00
James Almer
320694ff84
x86/vf_blend: fix warnings about trailing empty parameters
...
Finishes fixing ticket #8771
Signed-off-by: James Almer <jamrial@gmail.com>
2020-07-12 11:30:23 -03:00
Paul B Mahol
8e1354c95d
avfilter/x86/vf_v360_init: add missing cases
2020-04-02 12:25:37 +02:00
Paul B Mahol
e4809e12ea
avfilter/vf_v360: add SIMD for lagrange9 interpolation
2020-04-02 12:25:37 +02:00
Martin Storsjö
0815a22dcc
vf_ssim: Fix loading doubles to float registers on i386
...
This fixes the tests filter-refcmp-ssim-yuv and filter-refcmp-ssim-rgb
on i386 after breaking in fcc0424c93
.
Signed-off-by: Martin Storsjö <martin@martin.st>
2020-02-05 14:38:26 +02:00
Paul B Mahol
fcc0424c93
avfilter/vf_ssim: improve precision
...
Use doubles for accumulating floats.
2020-02-04 18:28:04 +01:00
Paul B Mahol
3bf28d40e5
avfilter/vf_v360: change remaps to int16_t type
2020-01-19 19:54:29 +01:00
Marton Balint
1f8e43938b
avfilter/x86/vf_interlace: always use unaligned movs
...
Fixes crashes in command lines such as:
ffmpeg -f lavfi -i testsrc2=704x576:r=50,interlace,pad=720:576:8 -f null none
Related to ticket #6491 .
Signed-off-by: Marton Balint <cus@passwd.hu>
2019-12-15 00:23:03 +01:00
Paul B Mahol
ac0f5f4c17
avfilter/vf_maskedclamp: add x86 SIMD
2019-10-23 16:20:21 +02:00
James Almer
738bc3e742
x86/vf_transpose: make ff_transpose_8x8_16_sse2 work on x86_32
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2019-10-22 13:51:13 -03:00
James Almer
27bae5aaca
x86/vf_transpose: fix cpuflags check
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-10-21 17:01:39 -03:00
Paul B Mahol
ccd9bca15a
avfilter/vf_transpose: add x86 SIMD
2019-10-21 20:37:51 +02:00
Paul B Mahol
f7f4691f9f
avfilter/x86/vf_atadenoise: fix comment
2019-10-21 17:56:45 +02:00
Paul B Mahol
0ae6fb276b
avfilter/x86/vf_atadenoise: add SIMD for serial too
2019-10-17 21:05:50 +02:00
Paul B Mahol
71e33c6e01
avfilter/vf_atadenoise: add option to use additional algorithm
2019-10-17 20:28:31 +02:00
Paul B Mahol
295d99b439
avfilter/vf_adadenoise: add x86 SIMD
2019-10-17 19:44:11 +02:00
Paul B Mahol
64a805883d
avfilter/vf_gblur: fix heap-buffer overflow
...
Fixes #8282
2019-10-16 12:13:04 +02:00
Andreas Rheinhardt
361fb42e1e
avcodec/filter: Remove extra '; ' outside of functions
...
They are not allowed outside of functions. Fixes the warning
"ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]"
when compiling with GCC and -pedantic.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2019-10-07 21:15:55 +02:00
James Almer
1dbd3c6116
avfilter/vf_eq: fix compilation with x86 asm disabled
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-09-26 12:19:43 -03:00
Ting Fu
4f589d668e
avfilter/x86/vf_eq: add SSE2 version
...
Signed-off-by: Ting Fu <ting.fu@intel.com>
2019-09-26 08:12:36 +08:00
Ting Fu
6aff2042d6
avfilter/x86/vf_eq: Change inline assembly into nasm code
...
Signed-off-by: Ting Fu <ting.fu@intel.com>
2019-09-26 08:11:13 +08:00
Paul B Mahol
921eb21b1d
avfilter/x86/vf_360: add most of >8 depth asm
2019-09-16 10:21:16 +02:00
James Almer
4857688732
x86/vf_v360: use a faster horizontal add in remap4_8bit_line_avx2
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-09-06 12:11:46 -03:00
James Almer
2200cf1aca
x86/vf_v360: make remap{1,2}_8bit_line_avx2 work on x86_32
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-09-06 11:11:45 -03:00
Paul B Mahol
058bbf48c6
avfilter/vf_v360: x86 SIMD for interpolations
2019-09-06 14:10:37 +02:00
Ruiling Song
98e419cbf5
avfilter/vf_convolution: add x86 SIMD for filter_3x3()
...
Tested using a simple command (apply edge enhance):
./ffmpeg_g -i ~/Downloads/bbb_sunflower_1080p_30fps_normal.mp4 \
-vf convolution="0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:5:1:1:1:0:128:128:128" \
-an -vframes 1000 -f null /dev/null
The fps increase from 151 to 270 on my local machine.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
2019-08-07 14:31:28 +08:00
James Almer
b8f1542dcb
avfilter/vf_gblur: add missing preprocessor check
...
Fixes compilation on x86_32
Signed-off-by: James Almer <jamrial@gmail.com>
2019-06-12 10:54:59 -03:00
Ruiling Song
83f9da7768
avfilter/vf_gblur: add x86 SIMD optimizations
...
The horizontal pass get ~2x performance with the patch
under single thread.
Tested overall performance using the command(avx2 enabled):
./ffmpeg -i 1080p.mp4 -vf gblur -f null /dev/null
./ffmpeg -i 1080p.mp4 -vf gblur=threads=1 -f null /dev/null
For single thread, the fps improves from 43 to 60, about 40%.
For multi-thread, the fps improves from 110 to 130, about 20%.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
2019-06-12 08:53:11 +08:00
Paul B Mahol
dcae5ba322
avfilter: add anlmdn filter x86 SIMD optimizations
2019-01-10 21:49:47 +01:00
James Almer
ef67af31ff
x86/af_afir: use three operand form forat some instructions
...
Fixes compilation with old yasm versions.
Signed-off-by: James Almer <jamrial@gmail.com>
2019-01-03 23:36:19 -03:00
James Almer
5402c1886b
x86/af_afir: add ff_fcmul_add_avx()
...
fcmul_add_c: 1228.8
fcmul_add_sse3: 334.3
fcmul_add_avx: 186.3
Tested on a Core i5 4460 @ 3.2GHz
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2019-01-03 10:12:19 -03:00
James Almer
82043dfd2e
avfilter/af_afir: split off fcmul_add into a DSP context
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2019-01-03 10:12:18 -03:00
James Almer
9b5bd665e1
x86/af_afir: fix processing the last element
...
ff_fcmul_add_sse3() is now identical to the C version.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2019-01-03 10:12:18 -03:00
James Almer
3913d6f734
x86/scene_sad: fix link errors when HAVE_X86ASM is not defined
...
Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-21 22:26:07 -03:00
Paul B Mahol
c98a32e4ad
avfilter/vf_blend: add 10bit support
2018-11-15 14:44:24 +01:00
Philip Langdale
1096614c42
avfilter/vf_bwdif: Use common yadif frame management logic
...
After adding field type management to the common yadif logic, we can
remove the duplicate copy of that logic from bwdif.
2018-11-14 17:41:01 -08:00
Marton Balint
6c2a7a8e9a
avfilter/vf_framerate: factorize SAD functions which compute SAD for a whole frame
...
Also add SIMD which works on lines because it is faster then calculating it on
8x8 blocks using pixelutils.
Signed-off-by: Marton Balint <cus@passwd.hu>
2018-11-11 20:30:50 +01:00
Paul B Mahol
0f0d468fbc
avfilter/vf_overlay: exclude nv12/nv21 formats from x86 asm check
...
They are yet to be supported,
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-03 09:22:28 +02:00
Paul B Mahol
6d7c63588c
avfilter/vf_overlay: add x86 SIMD
...
Specifically for yuv444, yuv422, yuv420 format when main stream has no alpha, and alpha
is straight.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2018-05-02 23:58:21 +02:00
Vasile Toncu
9c01cdb94e
avfilter/vf_interlace: remove duplicate code with same funcionality
2018-04-23 23:48:30 +02:00
Martin Vignali
f3df42e81d
avfilter/x86/vf_blend : add SIMD for 16 bit version of
...
grainextract
grainmerge
average
extremity
negation
2018-04-05 21:46:16 +02:00
Martin Vignali
8eb0bb1108
avfilter/x86/vf_blend : reorganize DIFFERENCE macro to reduce line duplication between 8bit and 16 bit version
2018-04-05 21:46:11 +02:00