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
fbaa3959
Commit
fbaa3959
authored
Sep 02, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_v360: remove not needed items from ThreadData
parent
6b090307
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
vf_v360.c
libavfilter/vf_v360.c
+4
-8
No files found.
libavfilter/vf_v360.c
View file @
fbaa3959
...
...
@@ -123,10 +123,8 @@ typedef struct V360Context {
}
V360Context
;
typedef
struct
ThreadData
{
V360Context
*
s
;
AVFrame
*
in
;
AVFrame
*
out
;
int
nb_planes
;
}
ThreadData
;
#define OFFSET(x) offsetof(V360Context, x)
...
...
@@ -266,13 +264,13 @@ typedef struct XYRemap1 {
static int remap1_##bits##bit_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \
{ \
ThreadData *td = (ThreadData*)arg; \
const V360Context *s =
td->s;
\
const V360Context *s =
ctx->priv;
\
const AVFrame *in = td->in; \
AVFrame *out = td->out; \
\
int plane, x, y; \
\
for (plane = 0; plane <
td->nb_planes; plane++) {
\
for (plane = 0; plane <
s->nb_planes; plane++) {
\
const int in_linesize = in->linesize[plane] / div; \
const int out_linesize = out->linesize[plane] / div; \
const uint##bits##_t *src = (const uint##bits##_t *)in->data[plane]; \
...
...
@@ -323,13 +321,13 @@ typedef struct XYRemap4 {
static int remap##window_size##_##bits##bit_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \
{ \
ThreadData *td = (ThreadData*)arg; \
const V360Context *s =
td->s;
\
const V360Context *s =
ctx->priv;
\
const AVFrame *in = td->in; \
AVFrame *out = td->out; \
\
int plane, x, y, i, j; \
\
for (plane = 0; plane <
td->nb_planes; plane++) {
\
for (plane = 0; plane <
s->nb_planes; plane++) {
\
const int in_linesize = in->linesize[plane] / div; \
const int out_linesize = out->linesize[plane] / div; \
const uint##bits##_t *src = (const uint##bits##_t *)in->data[plane]; \
...
...
@@ -2206,10 +2204,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
av_frame_copy_props
(
out
,
in
);
td
.
s
=
s
;
td
.
in
=
in
;
td
.
out
=
out
;
td
.
nb_planes
=
s
->
nb_planes
;
ctx
->
internal
->
execute
(
ctx
,
s
->
remap_slice
,
&
td
,
NULL
,
FFMIN
(
outlink
->
h
,
ff_filter_get_nb_threads
(
ctx
)));
...
...
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