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
9ef74817
Commit
9ef74817
authored
Oct 14, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdutils: Print general codec capabilities
parent
e240a28b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
cmdutils.c
cmdutils.c
+29
-0
No files found.
cmdutils.c
View file @
9ef74817
...
...
@@ -977,6 +977,35 @@ static void print_codec(const AVCodec *c)
printf
(
"%s %s [%s]:
\n
"
,
encoder
?
"Encoder"
:
"Decoder"
,
c
->
name
,
c
->
long_name
?
c
->
long_name
:
""
);
printf
(
" General capabilities: "
);
if
(
c
->
capabilities
&
AV_CODEC_CAP_DRAW_HORIZ_BAND
)
printf
(
"horizband "
);
if
(
c
->
capabilities
&
AV_CODEC_CAP_DR1
)
printf
(
"dr1 "
);
if
(
c
->
capabilities
&
AV_CODEC_CAP_TRUNCATED
)
printf
(
"trunc "
);
if
(
c
->
capabilities
&
AV_CODEC_CAP_DELAY
)
printf
(
"delay "
);
if
(
c
->
capabilities
&
AV_CODEC_CAP_SMALL_LAST_FRAME
)
printf
(
"small "
);
if
(
c
->
capabilities
&
AV_CODEC_CAP_SUBFRAMES
)
printf
(
"subframes "
);
if
(
c
->
capabilities
&
AV_CODEC_CAP_EXPERIMENTAL
)
printf
(
"exp "
);
if
(
c
->
capabilities
&
AV_CODEC_CAP_CHANNEL_CONF
)
printf
(
"chconf "
);
if
(
c
->
capabilities
&
AV_CODEC_CAP_PARAM_CHANGE
)
printf
(
"small "
);
if
(
c
->
capabilities
&
AV_CODEC_CAP_PARAM_CHANGE
)
printf
(
"variable "
);
if
(
c
->
capabilities
&
(
AV_CODEC_CAP_FRAME_THREADS
|
AV_CODEC_CAP_SLICE_THREADS
|
AV_CODEC_CAP_AUTO_THREADS
))
printf
(
"threads "
);
if
(
!
c
->
capabilities
)
printf
(
"none"
);
printf
(
"
\n
"
);
if
(
c
->
type
==
AVMEDIA_TYPE_VIDEO
)
{
printf
(
" Threading capabilities: "
);
switch
(
c
->
capabilities
&
(
AV_CODEC_CAP_FRAME_THREADS
|
...
...
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