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
dd2631a6
Commit
dd2631a6
authored
Mar 15, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsputil: mark source of diff_bytes as const.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1bc85fb3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
dsputil.c
libavcodec/dsputil.c
+1
-1
dsputil.h
libavcodec/dsputil.h
+1
-1
dsputilenc_mmx.c
libavcodec/x86/dsputilenc_mmx.c
+1
-1
No files found.
libavcodec/dsputil.c
View file @
dd2631a6
...
...
@@ -1921,7 +1921,7 @@ static void add_bytes_c(uint8_t *dst, uint8_t *src, int w){
dst
[
i
+
0
]
+=
src
[
i
+
0
];
}
static
void
diff_bytes_c
(
uint8_t
*
dst
,
uint8_t
*
src1
,
uint8_t
*
src2
,
int
w
){
static
void
diff_bytes_c
(
uint8_t
*
dst
,
const
uint8_t
*
src1
,
const
uint8_t
*
src2
,
int
w
){
long
i
;
#if !HAVE_FAST_UNALIGNED
if
((
long
)
src2
&
(
sizeof
(
long
)
-
1
)){
...
...
libavcodec/dsputil.h
View file @
dd2631a6
...
...
@@ -378,7 +378,7 @@ typedef struct DSPContext {
/* huffyuv specific */
void
(
*
add_bytes
)(
uint8_t
*
dst
/*align 16*/
,
uint8_t
*
src
/*align 16*/
,
int
w
);
void
(
*
diff_bytes
)(
uint8_t
*
dst
/*align 16*/
,
uint8_t
*
src1
/*align 16*/
,
uint8_t
*
src2
/*align 1*/
,
int
w
);
void
(
*
diff_bytes
)(
uint8_t
*
dst
/*align 16*/
,
const
uint8_t
*
src1
/*align 16*/
,
const
uint8_t
*
src2
/*align 1*/
,
int
w
);
/**
* subtract huffyuv's variant of median prediction
* note, this might read from src1[-1], src2[-1]
...
...
libavcodec/x86/dsputilenc_mmx.c
View file @
dd2631a6
...
...
@@ -821,7 +821,7 @@ static int vsad16_mmx2(void *v, uint8_t * pix1, uint8_t * pix2, int line_size, i
}
#undef SUM
static
void
diff_bytes_mmx
(
uint8_t
*
dst
,
uint8_t
*
src1
,
uint8_t
*
src2
,
int
w
){
static
void
diff_bytes_mmx
(
uint8_t
*
dst
,
const
uint8_t
*
src1
,
const
uint8_t
*
src2
,
int
w
){
x86_reg
i
=
0
;
__asm__
volatile
(
"1:
\n\t
"
...
...
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