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
c31f6b1d
Commit
c31f6b1d
authored
Apr 04, 2018
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avprobe: Print a user-friendly version of the display matrix
Shift fixed point numbers to be actual decimal numbers.
parent
f821b2ea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
avprobe.c
avtools/avprobe.c
+10
-0
No files found.
avtools/avprobe.c
View file @
c31f6b1d
...
...
@@ -131,6 +131,7 @@ typedef struct PrintContext {
static
AVIOContext
*
probe_out
=
NULL
;
static
PrintContext
octx
;
#define AVP_INDENT() avio_printf(probe_out, "%*c", octx.level * 2, ' ')
#define CONV_FP(x,fp) ((double) (x)) / (1 << fp)
/*
* Default format, INI
...
...
@@ -816,6 +817,15 @@ static void show_stream(InputFile *ifile, InputStream *ist)
for
(
j
=
0
;
j
<
9
;
j
++
)
probe_int
(
NULL
,
((
int32_t
*
)
sd
->
data
)[
j
]);
probe_array_footer
(
"matrix"
,
1
);
probe_array_header
(
"matrix_str"
,
1
);
for
(
j
=
0
;
j
<
9
;
j
++
)
{
char
buf
[
32
];
int
fp
=
(
j
==
2
||
j
==
5
||
j
==
8
)
?
30
:
16
;
int32_t
val
=
((
int32_t
*
)
sd
->
data
)[
j
];
value_string
(
buf
,
sizeof
(
buf
),
CONV_FP
(
val
,
fp
),
""
);
probe_str
(
NULL
,
buf
);
}
probe_array_footer
(
"matrix_str"
,
1
);
probe_int
(
"rotation"
,
av_display_rotation_get
((
int32_t
*
)
sd
->
data
));
probe_object_footer
(
"displaymatrix"
);
...
...
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