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
41e86146
Commit
41e86146
authored
Sep 26, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump: print detailed color space information
parent
20a5956b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
utils.c
libavcodec/utils.c
+17
-0
No files found.
libavcodec/utils.c
View file @
41e86146
...
...
@@ -1926,6 +1926,23 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
"%s"
,
enc
->
pix_fmt
==
AV_PIX_FMT_NONE
?
"none"
:
av_get_pix_fmt_name
(
enc
->
pix_fmt
));
if
(
enc
->
color_range
!=
AVCOL_RANGE_UNSPECIFIED
)
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
", %s"
,
av_color_range_name
(
enc
->
color_range
));
if
(
enc
->
colorspace
!=
AVCOL_SPC_UNSPECIFIED
||
enc
->
color_primaries
!=
AVCOL_PRI_UNSPECIFIED
||
enc
->
color_trc
!=
AVCOL_TRC_UNSPECIFIED
)
{
new_line
=
1
;
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
", %s/%s/%s"
,
av_color_space_name
(
enc
->
colorspace
),
av_color_primaries_name
(
enc
->
color_primaries
),
av_color_transfer_name
(
enc
->
color_trc
));
}
if
(
av_log_get_level
()
>=
AV_LOG_DEBUG
&&
enc
->
chroma_sample_location
!=
AVCHROMA_LOC_UNSPECIFIED
)
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
", %s"
,
av_chroma_location_name
(
enc
->
chroma_sample_location
));
if
(
enc
->
width
)
{
av_strlcat
(
buf
,
new_line
?
"
\n
"
:
", "
,
buf_size
);
...
...
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