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
46775e64
Commit
46775e64
authored
Dec 22, 2023
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/takdsp: fix const correctness
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
c5029bb1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
takdsp_init.c
libavcodec/riscv/takdsp_init.c
+2
-2
takdsp.c
libavcodec/takdsp.c
+3
-3
takdsp.h
libavcodec/takdsp.h
+3
-3
takdsp_init.c
libavcodec/x86/takdsp_init.c
+3
-3
takdsp.c
tests/checkasm/takdsp.c
+3
-3
No files found.
libavcodec/riscv/takdsp_init.c
View file @
46775e64
...
...
@@ -25,8 +25,8 @@
#include "libavutil/riscv/cpu.h"
#include "libavcodec/takdsp.h"
void
ff_decorrelate_ls_rvv
(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
);
void
ff_decorrelate_sr_rvv
(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
);
void
ff_decorrelate_ls_rvv
(
const
int32_t
*
p1
,
int32_t
*
p2
,
int
length
);
void
ff_decorrelate_sr_rvv
(
int32_t
*
p1
,
const
int32_t
*
p2
,
int
length
);
av_cold
void
ff_takdsp_init_riscv
(
TAKDSPContext
*
dsp
)
{
...
...
libavcodec/takdsp.c
View file @
46775e64
...
...
@@ -23,7 +23,7 @@
#include "takdsp.h"
#include "config.h"
static
void
decorrelate_ls
(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
)
static
void
decorrelate_ls
(
const
int32_t
*
p1
,
int32_t
*
p2
,
int
length
)
{
int
i
;
...
...
@@ -34,7 +34,7 @@ static void decorrelate_ls(int32_t *p1, int32_t *p2, int length)
}
}
static
void
decorrelate_sr
(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
)
static
void
decorrelate_sr
(
int32_t
*
p1
,
const
int32_t
*
p2
,
int
length
)
{
int
i
;
...
...
@@ -58,7 +58,7 @@ static void decorrelate_sm(int32_t *p1, int32_t *p2, int length)
}
}
static
void
decorrelate_sf
(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
,
int
dshift
,
int
dfactor
)
static
void
decorrelate_sf
(
int32_t
*
p1
,
const
int32_t
*
p2
,
int
length
,
int
dshift
,
int
dfactor
)
{
int
i
;
...
...
libavcodec/takdsp.h
View file @
46775e64
...
...
@@ -22,10 +22,10 @@
#include <stdint.h>
typedef
struct
TAKDSPContext
{
void
(
*
decorrelate_ls
)(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
);
void
(
*
decorrelate_sr
)(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
);
void
(
*
decorrelate_ls
)(
const
int32_t
*
p1
,
int32_t
*
p2
,
int
length
);
void
(
*
decorrelate_sr
)(
int32_t
*
p1
,
const
int32_t
*
p2
,
int
length
);
void
(
*
decorrelate_sm
)(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
);
void
(
*
decorrelate_sf
)(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
,
int
dshift
,
int
dfactor
);
void
(
*
decorrelate_sf
)(
int32_t
*
p1
,
const
int32_t
*
p2
,
int
length
,
int
dshift
,
int
dfactor
);
}
TAKDSPContext
;
void
ff_takdsp_init
(
TAKDSPContext
*
c
);
...
...
libavcodec/x86/takdsp_init.c
View file @
46775e64
...
...
@@ -23,10 +23,10 @@
#include "libavutil/x86/cpu.h"
#include "config.h"
void
ff_tak_decorrelate_ls_sse2
(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
);
void
ff_tak_decorrelate_sr_sse2
(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
);
void
ff_tak_decorrelate_ls_sse2
(
const
int32_t
*
p1
,
int32_t
*
p2
,
int
length
);
void
ff_tak_decorrelate_sr_sse2
(
int32_t
*
p1
,
const
int32_t
*
p2
,
int
length
);
void
ff_tak_decorrelate_sm_sse2
(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
);
void
ff_tak_decorrelate_sf_sse4
(
int32_t
*
p1
,
int32_t
*
p2
,
int
length
,
int
dshift
,
int
dfactor
);
void
ff_tak_decorrelate_sf_sse4
(
int32_t
*
p1
,
const
int32_t
*
p2
,
int
length
,
int
dshift
,
int
dfactor
);
av_cold
void
ff_takdsp_init_x86
(
TAKDSPContext
*
c
)
{
...
...
tests/checkasm/takdsp.c
View file @
46775e64
...
...
@@ -37,7 +37,7 @@
#define BUF_SIZE 1024
static
void
test_decorrelate_ls
(
TAKDSPContext
*
s
)
{
declare_func
(
void
,
int32_t
*
,
int32_t
*
,
int
);
declare_func
(
void
,
const
int32_t
*
,
int32_t
*
,
int
);
if
(
check_func
(
s
->
decorrelate_ls
,
"decorrelate_ls"
))
{
LOCAL_ALIGNED_32
(
int32_t
,
p1
,
[
BUF_SIZE
]);
...
...
@@ -62,7 +62,7 @@ static void test_decorrelate_ls(TAKDSPContext *s) {
}
static
void
test_decorrelate_sr
(
TAKDSPContext
*
s
)
{
declare_func
(
void
,
int32_t
*
,
int32_t
*
,
int
);
declare_func
(
void
,
int32_t
*
,
const
int32_t
*
,
int
);
if
(
check_func
(
s
->
decorrelate_sr
,
"decorrelate_sr"
))
{
LOCAL_ALIGNED_32
(
int32_t
,
p1
,
[
BUF_SIZE
]);
...
...
@@ -115,7 +115,7 @@ static void test_decorrelate_sm(TAKDSPContext *s) {
}
static
void
test_decorrelate_sf
(
TAKDSPContext
*
s
)
{
declare_func
(
void
,
int32_t
*
,
int32_t
*
,
int
,
int
,
int
);
declare_func
(
void
,
int32_t
*
,
const
int32_t
*
,
int
,
int
,
int
);
if
(
check_func
(
s
->
decorrelate_sf
,
"decorrelate_sf"
))
{
LOCAL_ALIGNED_32
(
int32_t
,
p1
,
[
BUF_SIZE
]);
...
...
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