Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
e7cb7c76
Commit
e7cb7c76
authored
Jul 26, 2022
by
Andreas Rheinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/cfhdencdsp: Constify input pointers
Signed-off-by:
Andreas Rheinhardt
<
andreas.rheinhardt@outlook.com
>
parent
dc3e25e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
cfhdencdsp.c
libavcodec/cfhdencdsp.c
+3
-3
cfhdencdsp.h
libavcodec/cfhdencdsp.h
+2
-2
cfhdencdsp_init.c
libavcodec/x86/cfhdencdsp_init.c
+2
-2
No files found.
libavcodec/cfhdencdsp.c
View file @
e7cb7c76
...
...
@@ -23,7 +23,7 @@
#include "cfhdencdsp.h"
static
av_always_inline
void
filter
(
int16_t
*
input
,
ptrdiff_t
in_stride
,
static
av_always_inline
void
filter
(
const
int16_t
*
input
,
ptrdiff_t
in_stride
,
int16_t
*
low
,
ptrdiff_t
low_stride
,
int16_t
*
high
,
ptrdiff_t
high_stride
,
int
len
)
...
...
@@ -46,7 +46,7 @@ static av_always_inline void filter(int16_t *input, ptrdiff_t in_stride,
1
*
input
[((
len
-
2
)
-
3
)
*
in_stride
]
+
1
*
input
[((
len
-
2
)
-
4
)
*
in_stride
]
+
4
)
>>
3
);
}
static
void
horiz_filter
(
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
static
void
horiz_filter
(
const
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
ptrdiff_t
in_stride
,
ptrdiff_t
low_stride
,
ptrdiff_t
high_stride
,
int
width
,
int
height
)
...
...
@@ -59,7 +59,7 @@ static void horiz_filter(int16_t *input, int16_t *low, int16_t *high,
}
}
static
void
vert_filter
(
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
static
void
vert_filter
(
const
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
ptrdiff_t
in_stride
,
ptrdiff_t
low_stride
,
ptrdiff_t
high_stride
,
int
width
,
int
height
)
...
...
libavcodec/cfhdencdsp.h
View file @
e7cb7c76
...
...
@@ -23,12 +23,12 @@
#include <stdint.h>
typedef
struct
CFHDEncDSPContext
{
void
(
*
horiz_filter
)(
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
void
(
*
horiz_filter
)(
const
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
ptrdiff_t
in_stride
,
ptrdiff_t
low_stride
,
ptrdiff_t
high_stride
,
int
width
,
int
height
);
void
(
*
vert_filter
)(
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
void
(
*
vert_filter
)(
const
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
ptrdiff_t
in_stride
,
ptrdiff_t
low_stride
,
ptrdiff_t
high_stride
,
int
width
,
int
height
);
...
...
libavcodec/x86/cfhdencdsp_init.c
View file @
e7cb7c76
...
...
@@ -27,11 +27,11 @@
#include "libavutil/x86/cpu.h"
#include "libavcodec/cfhdencdsp.h"
void
ff_cfhdenc_horiz_filter_sse2
(
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
void
ff_cfhdenc_horiz_filter_sse2
(
const
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
ptrdiff_t
in_stride
,
ptrdiff_t
low_stride
,
ptrdiff_t
high_stride
,
int
width
,
int
height
);
void
ff_cfhdenc_vert_filter_sse2
(
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
void
ff_cfhdenc_vert_filter_sse2
(
const
int16_t
*
input
,
int16_t
*
low
,
int16_t
*
high
,
ptrdiff_t
in_stride
,
ptrdiff_t
low_stride
,
ptrdiff_t
high_stride
,
int
width
,
int
height
);
...
...
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