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
59924d5e
Commit
59924d5e
authored
Sep 30, 2017
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/vmafmotion: Allow more pix_fmts.
parent
9e271e3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
vf_vmafmotion.c
libavfilter/vf_vmafmotion.c
+13
-9
No files found.
libavfilter/vf_vmafmotion.c
View file @
59924d5e
...
...
@@ -261,15 +261,19 @@ int ff_vmafmotion_init(VMAFMotionData *s,
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUV422P
,
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUV444P10
,
AV_PIX_FMT_YUV422P10
,
AV_PIX_FMT_YUV420P10
,
AV_PIX_FMT_NONE
};
AVFilterFormats
*
fmts_list
=
ff_make_format_list
(
pix_fmts
);
if
(
!
fmts_list
)
return
AVERROR
(
ENOMEM
);
AVFilterFormats
*
fmts_list
=
NULL
;
int
format
,
ret
;
for
(
format
=
0
;
av_pix_fmt_desc_get
(
format
);
format
++
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
format
);
if
(
!
(
desc
->
flags
&
(
AV_PIX_FMT_FLAG_RGB
|
AV_PIX_FMT_FLAG_HWACCEL
|
AV_PIX_FMT_FLAG_BITSTREAM
|
AV_PIX_FMT_FLAG_PAL
))
&&
(
desc
->
flags
&
AV_PIX_FMT_FLAG_PLANAR
||
desc
->
nb_components
==
1
)
&&
(
!
(
desc
->
flags
&
AV_PIX_FMT_FLAG_BE
)
==
!
HAVE_BIGENDIAN
||
desc
->
comp
[
0
].
depth
==
8
)
&&
(
desc
->
comp
[
0
].
depth
==
8
||
desc
->
comp
[
0
].
depth
==
10
)
&&
(
ret
=
ff_add_format
(
&
fmts_list
,
format
))
<
0
)
return
ret
;
}
return
ff_set_common_formats
(
ctx
,
fmts_list
);
}
...
...
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