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
18d25ece
Commit
18d25ece
authored
Nov 19, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_weave: pal and hwaccel formats are not supported
parent
5ed6b735
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
vf_weave.c
libavfilter/vf_weave.c
+22
-0
No files found.
libavfilter/vf_weave.c
View file @
18d25ece
...
...
@@ -49,6 +49,26 @@ static const AVOption weave_options[] = {
AVFILTER_DEFINE_CLASS
(
weave
);
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
AVFilterFormats
*
formats
=
NULL
;
int
ret
;
for
(
int
fmt
=
0
;
av_pix_fmt_desc_get
(
fmt
);
fmt
++
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
fmt
);
if
(
!
(
desc
->
flags
&
AV_PIX_FMT_FLAG_PAL
)
&&
!
(
desc
->
flags
&
AV_PIX_FMT_FLAG_HWACCEL
))
{
if
((
ret
=
ff_add_format
(
&
formats
,
fmt
))
<
0
)
{
ff_formats_unref
(
&
formats
);
return
ret
;
}
}
}
return
ff_set_common_formats
(
ctx
,
formats
);
}
static
int
config_props_output
(
AVFilterLink
*
outlink
)
{
AVFilterContext
*
ctx
=
outlink
->
src
;
...
...
@@ -156,6 +176,7 @@ AVFilter ff_vf_weave = {
.
description
=
NULL_IF_CONFIG_SMALL
(
"Weave input video fields into frames."
),
.
priv_size
=
sizeof
(
WeaveContext
),
.
priv_class
=
&
weave_class
,
.
query_formats
=
query_formats
,
.
uninit
=
uninit
,
.
inputs
=
weave_inputs
,
.
outputs
=
weave_outputs
,
...
...
@@ -179,6 +200,7 @@ AVFilter ff_vf_doubleweave = {
.
description
=
NULL_IF_CONFIG_SMALL
(
"Weave input video fields into double number of frames."
),
.
priv_size
=
sizeof
(
WeaveContext
),
.
priv_class
=
&
doubleweave_class
,
.
query_formats
=
query_formats
,
.
init
=
init
,
.
uninit
=
uninit
,
.
inputs
=
weave_inputs
,
...
...
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