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
5d2c5e8b
Commit
5d2c5e8b
authored
Feb 26, 2016
by
wm4
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_copy: exclude hwaccel formats
This does obviously not work. (Additions based on vf_crop.c.)
parent
e266d299
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
vf_copy.c
libavfilter/vf_copy.c
+18
-0
No files found.
libavfilter/vf_copy.c
View file @
5d2c5e8b
...
...
@@ -27,6 +27,23 @@
#include "internal.h"
#include "video.h"
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
AVFilterFormats
*
formats
=
NULL
;
int
fmt
;
for
(
fmt
=
0
;
av_pix_fmt_desc_get
(
fmt
);
fmt
++
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
fmt
);
int
ret
;
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG_HWACCEL
)
continue
;
if
((
ret
=
ff_add_format
(
&
formats
,
fmt
))
<
0
)
return
ret
;
}
return
ff_set_common_formats
(
ctx
,
formats
);
}
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
in
)
{
AVFilterLink
*
outlink
=
inlink
->
dst
->
outputs
[
0
];
...
...
@@ -64,4 +81,5 @@ AVFilter ff_vf_copy = {
.
description
=
NULL_IF_CONFIG_SMALL
(
"Copy the input video unchanged to the output."
),
.
inputs
=
avfilter_vf_copy_inputs
,
.
outputs
=
avfilter_vf_copy_outputs
,
.
query_formats
=
query_formats
,
};
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