Decoding of 360° videos
The decoding of 360° videos requires the bundle of the TVideoGrabber SDK and the Datastead RTSP/RTMP/HTTP/ONVIF Source Filter (v7.8.2.0 or higher).
To enable the decoding of 360° videos, enable the v360_Enabled property.
When v360_MouseAction is activated, the mouse motion controls the point of view and the mouse wheel controls the angles (zoom in or zoom out), either while the mouse button is down or when the mouse button is released, depending on the TV360_MouseAction value.
When moving the mouse, the "quantity of displacement" is controlled by v360_MouseActionPercent (10% by default).
To return to the default angles, invoke v360_ResetAnglesToDefault.
The point of view can be controlled with v360_SetYawPitchRoll or v360_AddYawPitchRoll. The current point of view is returned by v360_GetYawPitchRoll.
The zoom can be controlled directly by invoking v360_SetAngle (v360_out, v360_fov_Horizontal, Value) or v360_SetAngle (v360_out, v360_fov_Vertical, Value).
The master angle is the angle from which the opposite angle is calculated to maintain the aspect ratio. It is v360_fov_Horizontal by default, and can be changed to v360_fov_Vertical with the v360_MasterAngle property.
The aspect ratio is controlled automatically when v360_AspectRatio is 0 (default) or negative (e.g. -1). To deactivate this, set a value > 0.0, e.g. 1.777778 to force a 16:9 aspect ratio or 2.0 to force a 2:1 aspect ratio. These values apply when v360_MasterAngle = v360_fov_Horizontal (default); when v360_MasterAngle = v360_fov_Vertical, the value is used as the height / width ratio (e.g. 0.5 for a 2:1 aspect ratio).
Supported stereo formats (v360_SetStereoFormat):
- sf_2DMono
- sf_SideBySide
- sf_TopBottom
Supported projections (v360_SetProjection):
- ipp_Equirectangular
- ipp_Cubemap_3_2
- ipp_Cubemap_6_1
- ipp_Equiangular
- ipp_Flat
- ipp_Dual_fisheye
- ipp_Barrel
- ipp_Cubemap_1_6
- ipp_Stereographic
- ipp_Mercator
- ipp_Ball
- ipp_Hammer
- ipp_Sinusoidal
- ipp_Fisheye
- ipp_Pannini
- ipp_Cylindrical
- ipp_Perspective
- ipp_Tetrahedron
- ipp_Barrel_split
- ipp_Tspyramid
- ipp_Hequirectangular
- ipp_Equisolid
- ipp_Orthographic
- ipp_Octahedron
Supported interpolations (v360_SetInterpolation):
- ipl_Bilinear
- ipl_Nearest
- ipl_Lagrange9
- ipl_Bicubic
- ipl_Lanczos
- ipl_Spline16
- ipl_Gaussian
- ipl_Mitchell