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
446dac9c
Commit
446dac9c
authored
Apr 11, 2020
by
Jun Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/dump: dump DOVI side data
dump DOVI side data. Signed-off-by:
Jun Zhao
<
barryjzhao@tencent.com
>
parent
1483cfa8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
dump.c
libavformat/dump.c
+19
-0
No files found.
libavformat/dump.c
View file @
446dac9c
...
...
@@ -27,6 +27,7 @@
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/mastering_display_metadata.h"
#include "libavutil/dovi_meta.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/avstring.h"
...
...
@@ -387,6 +388,20 @@ static void dump_spherical(void *ctx, AVCodecParameters *par, AVPacketSideData *
}
}
static
void
dump_dovi_conf
(
void
*
ctx
,
AVPacketSideData
*
sd
)
{
AVDOVIDecoderConfigurationRecord
*
dovi
=
(
AVDOVIDecoderConfigurationRecord
*
)
sd
->
data
;
av_log
(
ctx
,
AV_LOG_INFO
,
"version: %d.%d, profile: %d, level: %d, "
"rpu flag: %d, el flag: %d, bl flag: %d, compatibility id: %d"
,
dovi
->
dv_version_major
,
dovi
->
dv_version_minor
,
dovi
->
dv_profile
,
dovi
->
dv_level
,
dovi
->
rpu_present_flag
,
dovi
->
el_present_flag
,
dovi
->
bl_present_flag
,
dovi
->
dv_bl_signal_compatibility_id
);
}
static
void
dump_sidedata
(
void
*
ctx
,
AVStream
*
st
,
const
char
*
indent
)
{
int
i
;
...
...
@@ -449,6 +464,10 @@ static void dump_sidedata(void *ctx, AVStream *st, const char *indent)
case
AV_PKT_DATA_ICC_PROFILE
:
av_log
(
ctx
,
AV_LOG_INFO
,
"ICC Profile"
);
break
;
case
AV_PKT_DATA_DOVI_CONF
:
av_log
(
ctx
,
AV_LOG_INFO
,
"DOVI configuration record: "
);
dump_dovi_conf
(
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