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
059866eb
Commit
059866eb
authored
Feb 07, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsputil: Move WRAPPER8_16_SQ macro to the only place it is used
parent
bf6b3ec9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
dsputil.c
libavcodec/dsputil.c
+14
-0
dsputil.h
libavcodec/dsputil.h
+0
-14
No files found.
libavcodec/dsputil.c
View file @
059866eb
...
@@ -2315,6 +2315,20 @@ static int ssd_int8_vs_int16_c(const int8_t *pix1, const int16_t *pix2,
...
@@ -2315,6 +2315,20 @@ static int ssd_int8_vs_int16_c(const int8_t *pix1, const int16_t *pix2,
return
score
;
return
score
;
}
}
#define WRAPPER8_16_SQ(name8, name16)\
static int name16(void
/*MpegEncContext*/
*s, uint8_t *dst, uint8_t *src, int stride, int h){\
int score=0;\
score +=name8(s, dst , src , stride, 8);\
score +=name8(s, dst+8 , src+8 , stride, 8);\
if(h==16){\
dst += 8*stride;\
src += 8*stride;\
score +=name8(s, dst , src , stride, 8);\
score +=name8(s, dst+8 , src+8 , stride, 8);\
}\
return score;\
}
WRAPPER8_16_SQ
(
hadamard8_diff8x8_c
,
hadamard8_diff16_c
)
WRAPPER8_16_SQ
(
hadamard8_diff8x8_c
,
hadamard8_diff16_c
)
WRAPPER8_16_SQ
(
hadamard8_intra8x8_c
,
hadamard8_intra16_c
)
WRAPPER8_16_SQ
(
hadamard8_intra8x8_c
,
hadamard8_intra16_c
)
WRAPPER8_16_SQ
(
dct_sad8x8_c
,
dct_sad16_c
)
WRAPPER8_16_SQ
(
dct_sad8x8_c
,
dct_sad16_c
)
...
...
libavcodec/dsputil.h
View file @
059866eb
...
@@ -443,18 +443,4 @@ void ff_dsputil_init_vis(DSPContext* c, AVCodecContext *avctx);
...
@@ -443,18 +443,4 @@ void ff_dsputil_init_vis(DSPContext* c, AVCodecContext *avctx);
# define LOCAL_ALIGNED_16(t, v, ...) LOCAL_ALIGNED(16, t, v, __VA_ARGS__)
# define LOCAL_ALIGNED_16(t, v, ...) LOCAL_ALIGNED(16, t, v, __VA_ARGS__)
#endif
#endif
#define WRAPPER8_16_SQ(name8, name16)\
static int name16(void
/*MpegEncContext*/
*s, uint8_t *dst, uint8_t *src, int stride, int h){\
int score=0;\
score +=name8(s, dst , src , stride, 8);\
score +=name8(s, dst+8 , src+8 , stride, 8);\
if(h==16){\
dst += 8*stride;\
src += 8*stride;\
score +=name8(s, dst , src , stride, 8);\
score +=name8(s, dst+8 , src+8 , stride, 8);\
}\
return score;\
}
#endif
/* AVCODEC_DSPUTIL_H */
#endif
/* AVCODEC_DSPUTIL_H */
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