mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
libavcode/x86/vvc: change label to vvc_sad_16 to reflect block sizes
According to the VVC specification (section 8.5.1), the maximum width/height of a subblock passed for DMVR SAD is 16. This along with previous constraint requiring width * height >= 128 means that 8x16, 16x8, and 16x16 are the only allowed sizes. This re-labels vvc_sad_16_128 to vvc_sad_16 to reflect this and adds a comment about the block size constraints. There's no functionality change.
This commit is contained in:
parent
510494760c
commit
55e9c758f0
@ -29,6 +29,7 @@ SECTION_RODATA
|
|||||||
pw_1: times 2 dw 1
|
pw_1: times 2 dw 1
|
||||||
|
|
||||||
; DMVR SAD is only calculated on even rows to reduce complexity
|
; DMVR SAD is only calculated on even rows to reduce complexity
|
||||||
|
; Additionally the only valid sizes are 8x16, 16x8, and 16x16
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
%macro MIN_MAX_SAD 3
|
%macro MIN_MAX_SAD 3
|
||||||
@ -77,7 +78,7 @@ cglobal vvc_sad, 6, 9, 5, src1, src2, dx, dy, block_w, block_h, off1, off2, row_
|
|||||||
vpbroadcastd m4, [pw_1]
|
vpbroadcastd m4, [pw_1]
|
||||||
|
|
||||||
cmp block_wd, 16
|
cmp block_wd, 16
|
||||||
jge vvc_sad_16_128
|
je vvc_sad_16
|
||||||
|
|
||||||
vvc_sad_8:
|
vvc_sad_8:
|
||||||
.loop_height:
|
.loop_height:
|
||||||
@ -100,7 +101,7 @@ cglobal vvc_sad, 6, 9, 5, src1, src2, dx, dy, block_w, block_h, off1, off2, row_
|
|||||||
movd eax, xm0
|
movd eax, xm0
|
||||||
RET
|
RET
|
||||||
|
|
||||||
vvc_sad_16_128:
|
vvc_sad_16:
|
||||||
sar block_wd, 4
|
sar block_wd, 4
|
||||||
.loop_height:
|
.loop_height:
|
||||||
mov off1q, src1q
|
mov off1q, src1q
|
||||||
|
Loading…
x
Reference in New Issue
Block a user