You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
vp9/x86: simplify FILTER_INIT.
In the 2 FILTER_INIT usages, the source is already preloaded so that extra complexity taken from FILTER_UPDATE is not necessary. Also add forgotten "mask" argument in FILTER_{INIT,UPDATE} comments.
This commit is contained in:
@@ -93,19 +93,15 @@ SECTION .text
|
|||||||
psraw %1, %8
|
psraw %1, %8
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
%macro FILTER_INIT 7-8 ; tmp1, tmp2, cacheL, cacheH, dstp, filterid, [source]
|
%macro FILTER_INIT 8 ; tmp1, tmp2, cacheL, cacheH, dstp, filterid, mask, source
|
||||||
FILTER%6_INIT %1, l, %3
|
FILTER%6_INIT %1, l, %3
|
||||||
FILTER%6_INIT %2, h, %4
|
FILTER%6_INIT %2, h, %4
|
||||||
packuswb %1, %2
|
packuswb %1, %2
|
||||||
%if %0 == 8
|
|
||||||
MASK_APPLY %1, %8, %7, %2
|
MASK_APPLY %1, %8, %7, %2
|
||||||
%else
|
|
||||||
MASK_APPLY %1, %5, %7, %2
|
|
||||||
%endif
|
|
||||||
mova %5, %1
|
mova %5, %1
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
%macro FILTER_UPDATE 11-14 ; tmp1, tmp2, cacheL, cacheH, dstp, -, -, +, +, rshift, [source], [preload reg + value]
|
%macro FILTER_UPDATE 11-14 ; tmp1, tmp2, cacheL, cacheH, dstp, -, -, +, +, rshift, mask, [source], [preload reg + value]
|
||||||
%if %0 == 13 ; no source + preload
|
%if %0 == 13 ; no source + preload
|
||||||
mova %12, %13
|
mova %12, %13
|
||||||
%elif %0 == 14 ; source + preload
|
%elif %0 == 14 ; source + preload
|
||||||
|
Reference in New Issue
Block a user