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
075eaf8d
Commit
075eaf8d
authored
Dec 26, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vc1dsp: fix the warning fix, make it work with --disable-asm
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
955c7c7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
vc1dsp.c
libavcodec/vc1dsp.c
+7
-5
No files found.
libavcodec/vc1dsp.c
View file @
075eaf8d
...
@@ -562,7 +562,7 @@ static av_always_inline int vc1_mspel_filter(const uint8_t *src, int stride, int
...
@@ -562,7 +562,7 @@ static av_always_inline int vc1_mspel_filter(const uint8_t *src, int stride, int
/** Function used to do motion compensation with bicubic interpolation
/** Function used to do motion compensation with bicubic interpolation
*/
*/
#define VC1_MSPEL_MC(OP, OPNAME)\
#define VC1_MSPEL_MC(OP, OP
4, OP
NAME)\
static av_always_inline void OPNAME ## vc1_mspel_mc(uint8_t *dst, const uint8_t *src, int stride, int hmode, int vmode, int rnd)\
static av_always_inline void OPNAME ## vc1_mspel_mc(uint8_t *dst, const uint8_t *src, int stride, int hmode, int vmode, int rnd)\
{\
{\
int i, j;\
int i, j;\
...
@@ -620,8 +620,8 @@ static av_always_inline void OPNAME ## vc1_mspel_mc(uint8_t *dst, const uint8_t
...
@@ -620,8 +620,8 @@ static av_always_inline void OPNAME ## vc1_mspel_mc(uint8_t *dst, const uint8_t
static void OPNAME ## pixels8x8_c(uint8_t *block, const uint8_t *pixels, int line_size, int rnd){\
static void OPNAME ## pixels8x8_c(uint8_t *block, const uint8_t *pixels, int line_size, int rnd){\
int i;\
int i;\
for(i=0; i<8; i++){\
for(i=0; i<8; i++){\
OP
(*
(block ), AV_RN32(pixels ));\
OP
4(*(uint32_t*)
(block ), AV_RN32(pixels ));\
OP
(*
(block+4), AV_RN32(pixels+4));\
OP
4(*(uint32_t*)
(block+4), AV_RN32(pixels+4));\
pixels+=line_size;\
pixels+=line_size;\
block +=line_size;\
block +=line_size;\
}\
}\
...
@@ -629,9 +629,11 @@ static void OPNAME ## pixels8x8_c(uint8_t *block, const uint8_t *pixels, int lin
...
@@ -629,9 +629,11 @@ static void OPNAME ## pixels8x8_c(uint8_t *block, const uint8_t *pixels, int lin
#define op_put(a, b) a = av_clip_uint8(b)
#define op_put(a, b) a = av_clip_uint8(b)
#define op_avg(a, b) a = (a + av_clip_uint8(b) + 1) >> 1
#define op_avg(a, b) a = (a + av_clip_uint8(b) + 1) >> 1
#define op4_avg(a, b) a = rnd_avg32(a, b)
#define op4_put(a, b) a = b
VC1_MSPEL_MC
(
op_put
,
put_
)
VC1_MSPEL_MC
(
op_put
,
op4_put
,
put_
)
VC1_MSPEL_MC
(
op_avg
,
avg_
)
VC1_MSPEL_MC
(
op_avg
,
op4_avg
,
avg_
)
/* pixel functions - really are entry points to vc1_mspel_mc */
/* pixel functions - really are entry points to vc1_mspel_mc */
...
...
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