History

avcodec/x86/mpegvideoencdsp: support negative strides in draw_edges_mmx()

Ramiro Polla committed 2 years ago

Commit f9074421 parent 98610fe1 file · +3 −3Browse files

Unified · Split

libavcodec/x86/mpegvideoencdsp_init.c+3−3
@@ -121,7 +121,7 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height, · 120 unmodified lines
121 "movq %%mm1, (%0, %2) \n\t"121 "movq %%mm1, (%0, %2) \n\t"
122 "add %1, %0 \n\t"122 "add %1, %0 \n\t"
123 "cmp %3, %0 \n\t"123 "cmp %3, %0 \n\t"
124 "jb 1b \n\t"124 "jnz 1b \n\t"
125 : "+r" (ptr)125 : "+r" (ptr)
126 : "r" ((x86_reg) wrap), "r" ((x86_reg) width),126 : "r" ((x86_reg) wrap), "r" ((x86_reg) width),
127 "r" (ptr + wrap * height));127 "r" (ptr + wrap * height));
@@ -142,7 +142,7 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height, · 14 unmodified lines
142 "movq %%mm1, 8(%0, %2) \n\t"142 "movq %%mm1, 8(%0, %2) \n\t"
143 "add %1, %0 \n\t"143 "add %1, %0 \n\t"
144 "cmp %3, %0 \n\t"144 "cmp %3, %0 \n\t"
145 "jb 1b \n\t"145 "jnz 1b \n\t"
146 : "+r"(ptr)146 : "+r"(ptr)
147 : "r"((x86_reg)wrap), "r"((x86_reg)width), "r"(ptr + wrap * height)147 : "r"((x86_reg)wrap), "r"((x86_reg)width), "r"(ptr + wrap * height)
148 );148 );
@@ -161,7 +161,7 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height, · 12 unmodified lines
161 "movd %%mm1, (%0, %2) \n\t"161 "movd %%mm1, (%0, %2) \n\t"
162 "add %1, %0 \n\t"162 "add %1, %0 \n\t"
163 "cmp %3, %0 \n\t"163 "cmp %3, %0 \n\t"
164 "jb 1b \n\t"164 "jnz 1b \n\t"
165 : "+r" (ptr)165 : "+r" (ptr)
166 : "r" ((x86_reg) wrap), "r" ((x86_reg) width),166 : "r" ((x86_reg) wrap), "r" ((x86_reg) width),
167 "r" (ptr + wrap * height));167 "r" (ptr + wrap * height));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t