Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
13
Merge Requests
13
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Steve Lhomme
VLC
Commits
0aafec31
Commit
0aafec31
authored
Jul 25, 2017
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc: merge libvlc_video_viewpoint_t and libvlc_video_track_t.pose
parent
ff8c3a93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
23 deletions
+18
-23
include/vlc/libvlc_media.h
include/vlc/libvlc_media.h
+14
-6
include/vlc/libvlc_media_player.h
include/vlc/libvlc_media_player.h
+0
-13
lib/media.c
lib/media.c
+4
-4
No files found.
include/vlc/libvlc_media.h
View file @
0aafec31
...
...
@@ -192,6 +192,19 @@ typedef enum libvlc_video_projection_t
libvlc_video_projection_cubemap_layout_standard
=
0x100
,
}
libvlc_video_projection_t
;
/**
* Viewpoint
*
* \warning allocate using libvlc_video_new_viewpoint()
*/
typedef
struct
libvlc_video_viewpoint_t
{
float
f_yaw
;
/**< view point yaw in degrees ]-180;180] */
float
f_pitch
;
/**< view point pitch in degrees ]-90;90] */
float
f_roll
;
/**< view point roll in degrees ]-180;180] */
float
f_field_of_view
;
/**< field of view in degrees ]0;180[ (default 80.)*/
}
libvlc_video_viewpoint_t
;
typedef
struct
libvlc_video_track_t
{
unsigned
i_height
;
...
...
@@ -203,12 +216,7 @@ typedef struct libvlc_video_track_t
libvlc_video_orient_t
i_orientation
;
libvlc_video_projection_t
i_projection
;
struct
{
float
f_yaw_degrees
;
/**< View point yaw in degrees ]-180;180] */
float
f_pitch_degrees
;
/**< View point pitch in degrees ]-90;90] */
float
f_roll_degrees
;
/**< View point roll in degrees ]-180;180] */
float
f_fov_degrees
;
/**< View point fov in degrees ]0;180[ */
}
pose
;
/**< Initial view point */
libvlc_video_viewpoint_t
pose
;
/**< Initial view point */
}
libvlc_video_track_t
;
typedef
struct
libvlc_subtitle_track_t
...
...
include/vlc/libvlc_media_player.h
View file @
0aafec31
...
...
@@ -1177,19 +1177,6 @@ LIBVLC_API char *libvlc_video_get_aspect_ratio( libvlc_media_player_t *p_mi );
*/
LIBVLC_API
void
libvlc_video_set_aspect_ratio
(
libvlc_media_player_t
*
p_mi
,
const
char
*
psz_aspect
);
/**
* Viewpoint for video outputs
*
* \warning allocate using libvlc_video_new_viewpoint()
*/
typedef
struct
libvlc_video_viewpoint_t
{
float
f_yaw
;
/**< view point yaw in degrees ]-180;180] */
float
f_pitch
;
/**< view point pitch in degrees ]-90;90] */
float
f_roll
;
/**< view point roll in degrees ]-180;180] */
float
f_field_of_view
;
/**< field of view in degrees ]0;180[ (default 80.)*/
}
libvlc_video_viewpoint_t
;
/**
* Create a video viewpoint structure.
*
...
...
lib/media.c
View file @
0aafec31
...
...
@@ -1025,10 +1025,10 @@ libvlc_media_tracks_get( libvlc_media_t *p_md, libvlc_media_track_t *** pp_es )
(
p_es
->
video
.
projection_mode
==
PROJECTION_MODE_CUBEMAP_LAYOUT_STANDARD
)
);
p_mes
->
video
->
i_projection
=
(
int
)
p_es
->
video
.
projection_mode
;
p_mes
->
video
->
pose
.
f_yaw
_degrees
=
p_es
->
video
.
pose
.
yaw
;
p_mes
->
video
->
pose
.
f_pitch
_degrees
=
p_es
->
video
.
pose
.
pitch
;
p_mes
->
video
->
pose
.
f_roll
_degrees
=
p_es
->
video
.
pose
.
roll
;
p_mes
->
video
->
pose
.
f_f
ov_degrees
=
p_es
->
video
.
pose
.
fov
;
p_mes
->
video
->
pose
.
f_yaw
=
p_es
->
video
.
pose
.
yaw
;
p_mes
->
video
->
pose
.
f_pitch
=
p_es
->
video
.
pose
.
pitch
;
p_mes
->
video
->
pose
.
f_roll
=
p_es
->
video
.
pose
.
roll
;
p_mes
->
video
->
pose
.
f_f
ield_of_view
=
p_es
->
video
.
pose
.
fov
;
break
;
case
AUDIO_ES
:
p_mes
->
i_type
=
libvlc_track_audio
;
...
...
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