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
c7bf98d4
Commit
c7bf98d4
authored
Apr 04, 2017
by
James Almer
Committed by
Vittorio Giovara
Apr 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avprobe: use av_spherical_projection_name() to print spherical projection names
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
498864fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
avprobe.c
avtools/avprobe.c
+3
-7
No files found.
avtools/avprobe.c
View file @
c7bf98d4
...
@@ -817,25 +817,21 @@ static void show_stream(InputFile *ifile, InputStream *ist)
...
@@ -817,25 +817,21 @@ static void show_stream(InputFile *ifile, InputStream *ist)
case
AV_PKT_DATA_SPHERICAL
:
case
AV_PKT_DATA_SPHERICAL
:
spherical
=
(
AVSphericalMapping
*
)
sd
->
data
;
spherical
=
(
AVSphericalMapping
*
)
sd
->
data
;
probe_object_header
(
"spherical"
);
probe_object_header
(
"spherical"
);
probe_str
(
"projection"
,
av_spherical_projection_name
(
spherical
->
projection
));
if
(
spherical
->
projection
==
AV_SPHERICAL_EQUIRECTANGULAR
)
{
if
(
spherical
->
projection
==
AV_SPHERICAL_CUBEMAP
)
{
probe_str
(
"projection"
,
"equirectangular"
);
}
else
if
(
spherical
->
projection
==
AV_SPHERICAL_CUBEMAP
)
{
probe_str
(
"projection"
,
"cubemap"
);
probe_int
(
"padding"
,
spherical
->
padding
);
probe_int
(
"padding"
,
spherical
->
padding
);
}
else
if
(
spherical
->
projection
==
AV_SPHERICAL_EQUIRECTANGULAR_TILE
)
{
}
else
if
(
spherical
->
projection
==
AV_SPHERICAL_EQUIRECTANGULAR_TILE
)
{
size_t
l
,
t
,
r
,
b
;
size_t
l
,
t
,
r
,
b
;
av_spherical_tile_bounds
(
spherical
,
par
->
width
,
par
->
height
,
av_spherical_tile_bounds
(
spherical
,
par
->
width
,
par
->
height
,
&
l
,
&
t
,
&
r
,
&
b
);
&
l
,
&
t
,
&
r
,
&
b
);
probe_str
(
"projection"
,
"tiled equirectangular"
);
probe_object_header
(
"bounding"
);
probe_object_header
(
"bounding"
);
probe_int
(
"left"
,
l
);
probe_int
(
"left"
,
l
);
probe_int
(
"top"
,
t
);
probe_int
(
"top"
,
t
);
probe_int
(
"right"
,
r
);
probe_int
(
"right"
,
r
);
probe_int
(
"bottom"
,
b
);
probe_int
(
"bottom"
,
b
);
probe_object_footer
(
"bounding"
);
probe_object_footer
(
"bounding"
);
}
else
}
probe_str
(
"projection"
,
"unknown"
);
probe_object_header
(
"orientation"
);
probe_object_header
(
"orientation"
);
probe_int
(
"yaw"
,
(
double
)
spherical
->
yaw
/
(
1
<<
16
));
probe_int
(
"yaw"
,
(
double
)
spherical
->
yaw
/
(
1
<<
16
));
...
...
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