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
a8ebb774
Commit
a8ebb774
authored
Dec 21, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/swapuv: use FFSWAP
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
a3a22c21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
19 deletions
+4
-19
vf_swapuv.c
libavfilter/vf_swapuv.c
+4
-19
No files found.
libavfilter/vf_swapuv.c
View file @
a8ebb774
...
...
@@ -33,32 +33,17 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms,
{
AVFilterBufferRef
*
picref
=
ff_default_get_video_buffer
(
link
,
perms
,
w
,
h
);
uint8_t
*
tmp
;
int
tmp2
;
tmp
=
picref
->
data
[
2
];
picref
->
data
[
2
]
=
picref
->
data
[
1
];
picref
->
data
[
1
]
=
tmp
;
tmp2
=
picref
->
linesize
[
2
];
picref
->
linesize
[
2
]
=
picref
->
linesize
[
1
];
picref
->
linesize
[
1
]
=
tmp2
;
FFSWAP
(
uint8_t
*
,
picref
->
data
[
1
],
picref
->
data
[
2
]);
FFSWAP
(
int
,
picref
->
linesize
[
1
],
picref
->
linesize
[
2
]);
return
picref
;
}
static
int
filter_frame
(
AVFilterLink
*
link
,
AVFilterBufferRef
*
inpicref
)
{
uint8_t
*
tmp_data
;
int
tmp_linesize
;
tmp_data
=
inpicref
->
data
[
1
];
inpicref
->
data
[
1
]
=
inpicref
->
data
[
2
];
inpicref
->
data
[
2
]
=
tmp_data
;
tmp_linesize
=
inpicref
->
linesize
[
1
];
inpicref
->
linesize
[
1
]
=
inpicref
->
linesize
[
2
];
inpicref
->
linesize
[
2
]
=
tmp_linesize
;
FFSWAP
(
uint8_t
*
,
inpicref
->
data
[
1
],
inpicref
->
data
[
2
]);
FFSWAP
(
int
,
inpicref
->
linesize
[
1
],
inpicref
->
linesize
[
2
]);
return
ff_filter_frame
(
link
->
dst
->
outputs
[
0
],
inpicref
);
}
...
...
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