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
f4cee500
Commit
f4cee500
authored
Apr 02, 2017
by
Steve Lhomme
Committed by
James Almer
Apr 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/dump : Display Content Light Level metadata
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
157e57a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
dump.c
libavformat/dump.c
+11
-0
No files found.
libavformat/dump.c
View file @
f4cee500
...
...
@@ -343,6 +343,14 @@ static void dump_mastering_display_metadata(void *ctx, AVPacketSideData* sd) {
av_q2d
(
metadata
->
min_luminance
),
av_q2d
(
metadata
->
max_luminance
));
}
static
void
dump_content_light_metadata
(
void
*
ctx
,
AVPacketSideData
*
sd
)
{
AVContentLightMetadata
*
metadata
=
(
AVContentLightMetadata
*
)
sd
->
data
;
av_log
(
ctx
,
AV_LOG_INFO
,
"Content Light Level Metadata, "
"MaxCLL=%d, MaxFALL=%d"
,
metadata
->
MaxCLL
,
metadata
->
MaxFALL
);
}
static
void
dump_spherical
(
void
*
ctx
,
AVCodecParameters
*
par
,
AVPacketSideData
*
sd
)
{
AVSphericalMapping
*
spherical
=
(
AVSphericalMapping
*
)
sd
->
data
;
...
...
@@ -426,6 +434,9 @@ static void dump_sidedata(void *ctx, AVStream *st, const char *indent)
av_log
(
ctx
,
AV_LOG_INFO
,
"spherical: "
);
dump_spherical
(
ctx
,
st
->
codecpar
,
&
sd
);
break
;
case
AV_PKT_DATA_CONTENT_LIGHT_LEVEL
:
dump_content_light_metadata
(
ctx
,
&
sd
);
break
;
default:
av_log
(
ctx
,
AV_LOG_INFO
,
"unknown side data type %d (%d bytes)"
,
sd
.
type
,
sd
.
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