VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_viewpoint.h File Reference

Video and audio viewpoint struct and helpers. More...

Include dependency graph for vlc_viewpoint.h:

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.
 

Detailed Description

Video and audio viewpoint struct and helpers.

Macro Definition Documentation

◆ FIELD_OF_VIEW_DEGREES_DEFAULT

#define FIELD_OF_VIEW_DEGREES_DEFAULT   80.f

◆ FIELD_OF_VIEW_DEGREES_MAX

#define FIELD_OF_VIEW_DEGREES_MAX   150.f

◆ FIELD_OF_VIEW_DEGREES_MIN

#define FIELD_OF_VIEW_DEGREES_MIN   20.f

Function Documentation

◆ vlc_viewpoint_clip()

◆ vlc_viewpoint_init()

◆ vlc_viewpoint_to_4x4()

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.

Parameters
vpa valid viewpoint object
matrixa 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.