Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
libvlcpp
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
libvlcpp
Compare revisions
f60d407cc68cdd3ad7ea9b250780a3620e1652e9 to 78f59fdbcdbb76b228703f473b7939b034bde7c8
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
videolan/libvlcpp
Select target project
No results found
78f59fdbcdbb76b228703f473b7939b034bde7c8
Select Git revision
Branches
autotools
cppcx
master
Tags
0.1.0
0.1.0-rc1
0.1.0-rc2
Swap
Target
videolan/libvlcpp
Select target project
videolan/libvlcpp
robUx4/libvlcpp
stolyarchuk/libvlcpp
hacker1024/libvlcpp
mfkl/libvlcpp
The-personified-devil/libvlcpp
chouquette/libvlcpp
aillean/libvlcpp
adtadas19/libvlcpp
aad9805066254/libvlcpp
asenat/libvlcpp
rovenmaburak/libvlcpp
mstorsjo/libvlcpp
ranjuranjith/libvlcpp
tguillem/libvlcpp
akbaralisalar/libvlcpp
king7532/libvlcpp
Skantes/libvlcpp
f45431082/libvlcpp
alexandre-janniaux/libvlcpp
deyayush6/libvlcpp
21 results
f60d407cc68cdd3ad7ea9b250780a3620e1652e9
Select Git revision
Branches
autotools
cppcx
master
Tags
0.1.0
0.1.0-rc1
0.1.0-rc2
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Add orientation and projection enums
· 8d6e2848
Martin Finkel
authored
7 years ago
8d6e2848
Add video viewpoint
· 78f59fdb
Martin Finkel
authored
7 years ago
78f59fdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vlcpp/MediaPlayer.hpp
+6
-0
6 additions, 0 deletions
vlcpp/MediaPlayer.hpp
vlcpp/structures.hpp
+90
-0
90 additions, 0 deletions
vlcpp/structures.hpp
with
96 additions
and
0 deletions
vlcpp/MediaPlayer.hpp
View file @
78f59fdb
...
...
@@ -1688,6 +1688,12 @@ public:
static_cast
<
libvlc_media_slave_type_t
>
(
type
),
uri
.
c_str
(),
select
)
==
0
;
}
bool
updateViewpoint
(
const
VideoViewpoint
&
viewpoint
,
bool
b_absolute
)
{
return
libvlc_video_update_viewpoint
(
*
this
,
static_cast
<
const
libvlc_video_viewpoint_t
*>
(
&
viewpoint
),
b_absolute
)
==
0
;
}
#endif
private
:
...
...
This diff is collapsed.
Click to expand it.
vlcpp/structures.hpp
View file @
78f59fdb
...
...
@@ -111,6 +111,33 @@ public:
/// Subtitle track (also called SPU sometimes)
Subtitle
};
///
/// \brief The Orientation enum indicates the orientation of a video
///
enum
class
Orientation
{
TopLeft
,
TopRight
,
BottomLeft
,
BottomRight
,
LeftTop
,
LeftBottom
,
RightTop
,
RightBottom
};
///
/// \brief The Projection enum indicates the projection of a video
///
enum
class
Projection
{
Rectangular
,
/// 360 spherical
Equirectangular
,
CubemapLayoutStandard
=
0x100
};
#if !defined(_MSC_VER) || _MSC_VER >= 1900
constexpr
static
Type
Unknown
=
Type
::
Unknown
;
constexpr
static
Type
Audio
=
Type
::
Audio
;
...
...
@@ -292,6 +319,26 @@ public:
return
m_fpsDen
;
}
///
/// \brief Orientation
///
/// \see orientation
///
Orientation
orientation
()
const
{
return
m_orientation
;
}
///
/// \brief Projection
///
/// \see projection
///
Projection
projection
()
const
{
return
m_projection
;
}
////////////////////////////////////////////////////////////////////////////
// Subtitles specific
////////////////////////////////////////////////////////////////////////////
...
...
@@ -331,6 +378,8 @@ public:
m_sarDen
=
c
->
video
->
i_sar_den
;
m_fpsNum
=
c
->
video
->
i_frame_rate_num
;
m_fpsDen
=
c
->
video
->
i_frame_rate_den
;
m_orientation
=
static_cast
<
Orientation
>
(
c
->
video
->
i_orientation
);
m_projection
=
static_cast
<
Projection
>
(
c
->
video
->
i_projection
);
break
;
case
libvlc_track_text
:
m_type
=
Subtitle
;
...
...
@@ -364,6 +413,8 @@ private:
uint32_t
m_sarDen
;
uint32_t
m_fpsNum
;
uint32_t
m_fpsDen
;
Orientation
m_orientation
;
Projection
m_projection
;
// Subtitles
std
::
string
m_encoding
;
};
...
...
@@ -598,6 +649,45 @@ public:
return
psz_uri
;
}
};
///
/// \brief C++ Type wrapper for libvlc_video_viewpoint_t
///
class
VideoViewpoint
:
public
libvlc_video_viewpoint_t
{
public:
VideoViewpoint
(
float
yaw
,
float
pitch
,
float
roll
,
float
fieldOfView
)
{
f_yaw
=
yaw
;
f_pitch
=
pitch
;
f_roll
=
roll
;
f_field_of_view
=
fieldOfView
;
}
public
:
float
yaw
()
const
{
return
f_yaw
;
}
float
pitch
()
const
{
return
f_pitch
;
}
float
roll
()
const
{
return
f_roll
;
}
float
field_of_view
()
const
{
return
f_field_of_view
;
}
};
#endif
}
// namespace VLC
...
...
This diff is collapsed.
Click to expand it.