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
51dab60c
Commit
51dab60c
authored
Sep 12, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_noise: dont corrupt the picture outside width x height
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3eba83da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vf_noise.c
libavfilter/vf_noise.c
+5
-1
No files found.
libavfilter/vf_noise.c
View file @
51dab60c
...
...
@@ -57,6 +57,7 @@ typedef struct {
const
AVClass
*
class
;
int
nb_planes
;
int
linesize
[
4
];
int
bytewidth
[
4
];
int
height
[
4
];
FilterParams
all
;
FilterParams
param
[
4
];
...
...
@@ -196,6 +197,9 @@ static int config_input(AVFilterLink *inlink)
n
->
height
[
1
]
=
n
->
height
[
2
]
=
FF_CEIL_RSHIFT
(
inlink
->
h
,
desc
->
log2_chroma_h
);
n
->
height
[
0
]
=
n
->
height
[
3
]
=
inlink
->
h
;
n
->
bytewidth
[
1
]
=
n
->
bytewidth
[
2
]
=
FF_CEIL_RSHIFT
(
inlink
->
w
,
desc
->
log2_chroma_w
)
*
((
desc
->
comp
[
0
].
depth_minus1
+
1
)
/
8
);
n
->
bytewidth
[
0
]
=
n
->
bytewidth
[
3
]
=
inlink
->
w
*
((
desc
->
comp
[
0
].
depth_minus1
+
1
)
/
8
);
return
0
;
}
...
...
@@ -377,7 +381,7 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
noise
(
td
->
out
->
data
[
plane
]
+
start
*
td
->
out
->
linesize
[
plane
],
td
->
in
->
data
[
plane
]
+
start
*
td
->
in
->
linesize
[
plane
],
td
->
out
->
linesize
[
plane
],
td
->
in
->
linesize
[
plane
],
s
->
linesize
[
plane
],
start
,
end
,
s
,
plane
);
s
->
bytewidth
[
plane
],
start
,
end
,
s
,
plane
);
}
return
0
;
}
...
...
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