Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
5a508a98
Commit
5a508a98
authored
Jan 07, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PIC / ebx fix
Originally committed as revision 1408 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0b093b6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
dsputil_mmx.c
libavcodec/i386/dsputil_mmx.c
+6
-6
dsputil_mmx_rnd.h
libavcodec/i386/dsputil_mmx_rnd.h
+10
-2
No files found.
libavcodec/i386/dsputil_mmx.c
View file @
5a508a98
...
@@ -790,7 +790,7 @@ void OPNAME ## mpeg4_qpel16_h_lowpass_mmx2(uint8_t *dst, uint8_t *src, int dstSt
...
@@ -790,7 +790,7 @@ void OPNAME ## mpeg4_qpel16_h_lowpass_mmx2(uint8_t *dst, uint8_t *src, int dstSt
"addl %4, %1 \n\t"\
"addl %4, %1 \n\t"\
"decl %2 \n\t"\
"decl %2 \n\t"\
" jnz 1b \n\t"\
" jnz 1b \n\t"\
: "+a"(src), "+
b"(dst), "+c
"(h)\
: "+a"(src), "+
c"(dst), "+m
"(h)\
: "d"(srcStride), "S"(dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(temp), "m"(ROUNDER)\
: "d"(srcStride), "S"(dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(temp), "m"(ROUNDER)\
: "memory"\
: "memory"\
);\
);\
...
@@ -903,7 +903,7 @@ void OPNAME ## mpeg4_qpel8_h_lowpass_mmx2(uint8_t *dst, uint8_t *src, int dstStr
...
@@ -903,7 +903,7 @@ void OPNAME ## mpeg4_qpel8_h_lowpass_mmx2(uint8_t *dst, uint8_t *src, int dstStr
"addl %4, %1 \n\t"\
"addl %4, %1 \n\t"\
"decl %2 \n\t"\
"decl %2 \n\t"\
" jnz 1b \n\t"\
" jnz 1b \n\t"\
: "+a"(src), "+
b"(dst), "+c
"(h)\
: "+a"(src), "+
c"(dst), "+m
"(h)\
: "S"(srcStride), "D"(dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(temp), "m"(ROUNDER)\
: "S"(srcStride), "D"(dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(temp), "m"(ROUNDER)\
: "memory"\
: "memory"\
);\
);\
...
@@ -961,14 +961,14 @@ static void OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src,
...
@@ -961,14 +961,14 @@ static void OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src,
"punpckhbw %%mm7, %%mm3 \n\t"\
"punpckhbw %%mm7, %%mm3 \n\t"\
"movq %%mm0, (%1) \n\t"\
"movq %%mm0, (%1) \n\t"\
"movq %%mm1, 17*8(%1) \n\t"\
"movq %%mm1, 17*8(%1) \n\t"\
"movq %%mm2,
(%1, %4
) \n\t"\
"movq %%mm2,
2*17*8(%1
) \n\t"\
"movq %%mm3,
(%1, %5
) \n\t"\
"movq %%mm3,
3*17*8(%1
) \n\t"\
"addl $8, %1 \n\t"\
"addl $8, %1 \n\t"\
"addl %3, %0 \n\t"\
"addl %3, %0 \n\t"\
"decl %2 \n\t"\
"decl %2 \n\t"\
" jnz 1b \n\t"\
" jnz 1b \n\t"\
: "+r" (src), "+r" (temp_ptr), "+r"(count)\
: "+r" (src), "+r" (temp_ptr), "+r"(count)\
: "r" (srcStride)
, "r"(2*8*17), "r"(3*8*17)
\
: "r" (srcStride)\
: "memory"\
: "memory"\
);\
);\
\
\
...
@@ -1014,7 +1014,7 @@ static void OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src,
...
@@ -1014,7 +1014,7 @@ static void OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src,
"decl %2 \n\t"\
"decl %2 \n\t"\
" jnz 1b \n\t"\
" jnz 1b \n\t"\
\
\
: "+r"(temp_ptr), "+r"(dst), "+
r
"(count)\
: "+r"(temp_ptr), "+r"(dst), "+
g
"(count)\
: "r"(dstStride), "r"(2*dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(ROUNDER), "g"(4-14*dstStride)\
: "r"(dstStride), "r"(2*dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(ROUNDER), "g"(4-14*dstStride)\
:"memory"\
:"memory"\
);\
);\
...
...
libavcodec/i386/dsputil_mmx_rnd.h
View file @
5a508a98
...
@@ -85,7 +85,11 @@ static void DEF(put, pixels8_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int
...
@@ -85,7 +85,11 @@ static void DEF(put, pixels8_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int
"addl %5, %3
\n\t
"
"addl %5, %3
\n\t
"
"subl $4, %0
\n\t
"
"subl $4, %0
\n\t
"
"jnz 1b
\n\t
"
"jnz 1b
\n\t
"
:
"+a"
(
h
),
"+b"
(
src1
),
"+c"
(
src2
),
"+d"
(
dst
)
#ifdef PIC //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cant be used
:
"+m"
(
h
),
"+a"
(
src1
),
"+c"
(
src2
),
"+d"
(
dst
)
#else
:
"+b"
(
h
),
"+a"
(
src1
),
"+c"
(
src2
),
"+d"
(
dst
)
#endif
:
"S"
(
src1Stride
),
"D"
(
dstStride
)
:
"S"
(
src1Stride
),
"D"
(
dstStride
)
:
"memory"
);
:
"memory"
);
}
}
...
@@ -163,7 +167,11 @@ static void DEF(put, pixels16_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, in
...
@@ -163,7 +167,11 @@ static void DEF(put, pixels16_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, in
"addl $32, %2
\n\t
"
"addl $32, %2
\n\t
"
"subl $2, %0
\n\t
"
"subl $2, %0
\n\t
"
"jnz 1b
\n\t
"
"jnz 1b
\n\t
"
:
"+a"
(
h
),
"+b"
(
src1
),
"+c"
(
src2
),
"+d"
(
dst
)
#ifdef PIC //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cant be used
:
"+m"
(
h
),
"+a"
(
src1
),
"+c"
(
src2
),
"+d"
(
dst
)
#else
:
"+b"
(
h
),
"+a"
(
src1
),
"+c"
(
src2
),
"+d"
(
dst
)
#endif
:
"S"
(
src1Stride
),
"D"
(
dstStride
)
:
"S"
(
src1Stride
),
"D"
(
dstStride
)
:
"memory"
);
:
"memory"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment