Commit 78f59fdb authored by Martin Finkel's avatar Martin Finkel

Add video viewpoint

parent 8d6e2848
...@@ -1688,6 +1688,12 @@ public: ...@@ -1688,6 +1688,12 @@ public:
static_cast<libvlc_media_slave_type_t>( type ), uri.c_str(), select ) == 0; 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 #endif
private: private:
......
...@@ -649,6 +649,45 @@ public: ...@@ -649,6 +649,45 @@ public:
return psz_uri; 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 #endif
} // namespace VLC } // namespace VLC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment