mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-12 19:18:44 +02:00
avcodec/x86/mpegvideoencdsp: support negative strides in draw_edges_mmx()
This commit is contained in:
parent
98610fe95f
commit
f9074427db
@ -121,7 +121,7 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height,
|
|||||||
"movq %%mm1, (%0, %2) \n\t"
|
"movq %%mm1, (%0, %2) \n\t"
|
||||||
"add %1, %0 \n\t"
|
"add %1, %0 \n\t"
|
||||||
"cmp %3, %0 \n\t"
|
"cmp %3, %0 \n\t"
|
||||||
"jb 1b \n\t"
|
"jnz 1b \n\t"
|
||||||
: "+r" (ptr)
|
: "+r" (ptr)
|
||||||
: "r" ((x86_reg) wrap), "r" ((x86_reg) width),
|
: "r" ((x86_reg) wrap), "r" ((x86_reg) width),
|
||||||
"r" (ptr + wrap * height));
|
"r" (ptr + wrap * height));
|
||||||
@ -142,7 +142,7 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height,
|
|||||||
"movq %%mm1, 8(%0, %2) \n\t"
|
"movq %%mm1, 8(%0, %2) \n\t"
|
||||||
"add %1, %0 \n\t"
|
"add %1, %0 \n\t"
|
||||||
"cmp %3, %0 \n\t"
|
"cmp %3, %0 \n\t"
|
||||||
"jb 1b \n\t"
|
"jnz 1b \n\t"
|
||||||
: "+r"(ptr)
|
: "+r"(ptr)
|
||||||
: "r"((x86_reg)wrap), "r"((x86_reg)width), "r"(ptr + wrap * height)
|
: "r"((x86_reg)wrap), "r"((x86_reg)width), "r"(ptr + wrap * height)
|
||||||
);
|
);
|
||||||
@ -161,7 +161,7 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height,
|
|||||||
"movd %%mm1, (%0, %2) \n\t"
|
"movd %%mm1, (%0, %2) \n\t"
|
||||||
"add %1, %0 \n\t"
|
"add %1, %0 \n\t"
|
||||||
"cmp %3, %0 \n\t"
|
"cmp %3, %0 \n\t"
|
||||||
"jb 1b \n\t"
|
"jnz 1b \n\t"
|
||||||
: "+r" (ptr)
|
: "+r" (ptr)
|
||||||
: "r" ((x86_reg) wrap), "r" ((x86_reg) width),
|
: "r" ((x86_reg) wrap), "r" ((x86_reg) width),
|
||||||
"r" (ptr + wrap * height));
|
"r" (ptr + wrap * height));
|
||||||
|
Loading…
Reference in New Issue
Block a user