VLC 4.0.0-dev
|
Video and audio viewpoint struct and helpers. More...
Go to the source code of this file.
Data Structures | |
struct | vlc_viewpoint_t |
Viewpoints. More... | |
Macros | |
#define | FIELD_OF_VIEW_DEGREES_DEFAULT 80.f |
#define | FIELD_OF_VIEW_DEGREES_MAX 150.f |
#define | FIELD_OF_VIEW_DEGREES_MIN 20.f |
Functions | |
static void | vlc_viewpoint_init (vlc_viewpoint_t *p_vp) |
static void | vlc_viewpoint_clip (vlc_viewpoint_t *p_vp) |
void | vlc_viewpoint_to_4x4 (const vlc_viewpoint_t *vp, float *matrix) |
Generate the 4x4 transform matrix corresponding to a viewpoint. | |
Video and audio viewpoint struct and helpers.
#define FIELD_OF_VIEW_DEGREES_DEFAULT 80.f |
#define FIELD_OF_VIEW_DEGREES_MAX 150.f |
#define FIELD_OF_VIEW_DEGREES_MIN 20.f |
|
inlinestatic |
References FIELD_OF_VIEW_DEGREES_MAX, FIELD_OF_VIEW_DEGREES_MIN, vlc_viewpoint_t::fov, vlc_viewpoint_t::pitch, vlc_viewpoint_t::roll, VLC_CLIP, and vlc_viewpoint_t::yaw.
Referenced by ViewpointApply(), and VoutFixFormat().
|
inlinestatic |
References FIELD_OF_VIEW_DEGREES_DEFAULT, vlc_viewpoint_t::fov, vlc_viewpoint_t::pitch, vlc_viewpoint_t::roll, and vlc_viewpoint_t::yaw.
Referenced by aout_New(), input_Create(), and video_format_Init().
void vlc_viewpoint_to_4x4 | ( | const vlc_viewpoint_t * | vp, |
float * | matrix | ||
) |
Generate the 4x4 transform matrix corresponding to a viewpoint.
Convert a vlc_viewpoint_t into a 4x4 transform matrix with a column-major layout.
vp | a valid viewpoint object |
matrix | a 4x4-sized array which will contain the matrix data |
Column-major matrix multiplication mathematically equal to z_rot * x_rot * y_rot
References vlc_viewpoint_t::pitch, vlc_viewpoint_t::roll, and vlc_viewpoint_t::yaw.