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
3bf28d40
Commit
3bf28d40
authored
Jan 19, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_v360: change remaps to int16_t type
parent
ff5e241b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
48 deletions
+48
-48
v360.h
libavfilter/v360.h
+6
-6
vf_v360.c
libavfilter/vf_v360.c
+37
-37
vf_v360_init.c
libavfilter/x86/vf_v360_init.c
+5
-5
No files found.
libavfilter/v360.h
View file @
3bf28d40
...
...
@@ -96,8 +96,8 @@ enum RotationOrder {
};
typedef
struct
XYRemap
{
u
int16_t
u
[
4
][
4
];
u
int16_t
v
[
4
][
4
];
int16_t
u
[
4
][
4
];
int16_t
v
[
4
][
4
];
float
ker
[
4
][
4
];
}
XYRemap
;
...
...
@@ -152,25 +152,25 @@ typedef struct V360Context {
int
nb_allocated
;
int
elements
;
u
int16_t
*
u
[
2
],
*
v
[
2
];
int16_t
*
u
[
2
],
*
v
[
2
];
int16_t
*
ker
[
2
];
unsigned
map
[
4
];
void
(
*
in_transform
)(
const
struct
V360Context
*
s
,
const
float
*
vec
,
int
width
,
int
height
,
uint16_t
us
[
4
][
4
],
u
int16_t
vs
[
4
][
4
],
float
*
du
,
float
*
dv
);
int16_t
us
[
4
][
4
],
int16_t
vs
[
4
][
4
],
float
*
du
,
float
*
dv
);
void
(
*
out_transform
)(
const
struct
V360Context
*
s
,
int
i
,
int
j
,
int
width
,
int
height
,
float
*
vec
);
void
(
*
calculate_kernel
)(
float
du
,
float
dv
,
const
XYRemap
*
rmap
,
uint16_t
*
u
,
u
int16_t
*
v
,
int16_t
*
ker
);
int16_t
*
u
,
int16_t
*
v
,
int16_t
*
ker
);
int
(
*
remap_slice
)(
AVFilterContext
*
ctx
,
void
*
arg
,
int
jobnr
,
int
nb_jobs
);
void
(
*
remap_line
)(
uint8_t
*
dst
,
int
width
,
const
uint8_t
*
const
src
,
ptrdiff_t
in_linesize
,
const
uint16_t
*
const
u
,
const
u
int16_t
*
const
v
,
const
int16_t
*
const
ker
);
const
int16_t
*
const
u
,
const
int16_t
*
const
v
,
const
int16_t
*
const
ker
);
}
V360Context
;
void
ff_v360_init
(
V360Context
*
s
,
int
depth
);
...
...
libavfilter/vf_v360.c
View file @
3bf28d40
This diff is collapsed.
Click to expand it.
libavfilter/x86/vf_v360_init.c
View file @
3bf28d40
...
...
@@ -24,19 +24,19 @@
#include "libavfilter/v360.h"
void
ff_remap1_8bit_line_avx2
(
uint8_t
*
dst
,
int
width
,
const
uint8_t
*
src
,
ptrdiff_t
in_linesize
,
const
uint16_t
*
u
,
const
uint16_t
*
v
,
const
int16_t
*
ker
);
const
int16_t
*
const
u
,
const
int16_t
*
const
v
,
const
int16_t
*
const
ker
);
void
ff_remap2_8bit_line_avx2
(
uint8_t
*
dst
,
int
width
,
const
uint8_t
*
src
,
ptrdiff_t
in_linesize
,
const
uint16_t
*
u
,
const
uint16_t
*
v
,
const
int16_t
*
ker
);
const
int16_t
*
const
u
,
const
int16_t
*
const
v
,
const
int16_t
*
const
ker
);
void
ff_remap4_8bit_line_avx2
(
uint8_t
*
dst
,
int
width
,
const
uint8_t
*
src
,
ptrdiff_t
in_linesize
,
const
uint16_t
*
u
,
const
uint16_t
*
v
,
const
int16_t
*
ker
);
const
int16_t
*
const
u
,
const
int16_t
*
const
v
,
const
int16_t
*
const
ker
);
void
ff_remap1_16bit_line_avx2
(
uint8_t
*
dst
,
int
width
,
const
uint8_t
*
src
,
ptrdiff_t
in_linesize
,
const
uint16_t
*
u
,
const
uint16_t
*
v
,
const
int16_t
*
ker
);
const
int16_t
*
const
u
,
const
int16_t
*
const
v
,
const
int16_t
*
const
ker
);
void
ff_remap2_16bit_line_avx2
(
uint8_t
*
dst
,
int
width
,
const
uint8_t
*
src
,
ptrdiff_t
in_linesize
,
const
uint16_t
*
u
,
const
uint16_t
*
v
,
const
int16_t
*
ker
);
const
int16_t
*
const
u
,
const
int16_t
*
const
v
,
const
int16_t
*
const
ker
);
av_cold
void
ff_v360_init_x86
(
V360Context
*
s
,
int
depth
)
{
...
...
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