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
53e86382
Commit
53e86382
authored
Aug 12, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_unsharp: adopt a more natural order of params in apply_unsharp()
parent
540181f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vf_unsharp.c
libavfilter/vf_unsharp.c
+5
-5
No files found.
libavfilter/vf_unsharp.c
View file @
53e86382
...
...
@@ -63,8 +63,8 @@ typedef struct {
FilterParam
chroma
;
///< chroma parameters (width, height, amount)
}
UnsharpContext
;
static
void
apply_unsharp
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
int
dst_stride
,
int
src_stride
,
static
void
apply_unsharp
(
uint8_t
*
dst
,
int
dst_stride
,
const
uint8_t
*
src
,
int
src_stride
,
int
width
,
int
height
,
FilterParam
*
fp
)
{
uint32_t
**
sc
=
fp
->
sc
;
...
...
@@ -208,9 +208,9 @@ static void end_frame(AVFilterLink *link)
AVFilterBufferRef
*
in
=
link
->
cur_buf
;
AVFilterBufferRef
*
out
=
link
->
dst
->
outputs
[
0
]
->
out_buf
;
apply_unsharp
(
out
->
data
[
0
],
in
->
data
[
0
],
out
->
linesize
[
0
],
in
->
linesize
[
0
],
link
->
w
,
link
->
h
,
&
unsharp
->
luma
);
apply_unsharp
(
out
->
data
[
1
],
in
->
data
[
1
],
out
->
linesize
[
1
],
in
->
linesize
[
1
],
CHROMA_WIDTH
(
link
),
CHROMA_HEIGHT
(
link
),
&
unsharp
->
chroma
);
apply_unsharp
(
out
->
data
[
2
],
in
->
data
[
2
],
out
->
linesize
[
2
],
in
->
linesize
[
2
],
CHROMA_WIDTH
(
link
),
CHROMA_HEIGHT
(
link
),
&
unsharp
->
chroma
);
apply_unsharp
(
out
->
data
[
0
],
out
->
linesize
[
0
],
in
->
data
[
0
],
in
->
linesize
[
0
],
link
->
w
,
link
->
h
,
&
unsharp
->
luma
);
apply_unsharp
(
out
->
data
[
1
],
out
->
linesize
[
1
],
in
->
data
[
1
],
in
->
linesize
[
1
],
CHROMA_WIDTH
(
link
),
CHROMA_HEIGHT
(
link
),
&
unsharp
->
chroma
);
apply_unsharp
(
out
->
data
[
2
],
out
->
linesize
[
2
],
in
->
data
[
2
],
in
->
linesize
[
2
],
CHROMA_WIDTH
(
link
),
CHROMA_HEIGHT
(
link
),
&
unsharp
->
chroma
);
avfilter_unref_buffer
(
in
);
avfilter_draw_slice
(
link
->
dst
->
outputs
[
0
],
0
,
link
->
h
,
1
);
...
...
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