mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
depth_projection_parameters.h
Go to the documentation of this file.
1 #ifndef MF_DEPTH_PROJECTION_PARAMETERS_H_
2 #define MF_DEPTH_PROJECTION_PARAMETERS_H_
3 
4 #include "../common.h"
5 
6 namespace mf {
7 
9 
13  enum depth_range {
17  };
18 
22  bool flip_z = true;
23 
24  bool valid() const;
25 
26  real depth_min() const { return (range == signed_normalized ? -1.0 : 0.0); }
27  real depth_max() const { return 1.0; }
28 };
29 
30 }
31 
32 #endif
depth_range
Definition: depth_projection_parameters.h:13
float real
Real number type.
Definition: common.h:48
Parameters of Z to depth projection.
Definition: depth_projection_parameters.h:12
real depth_max() const
Definition: depth_projection_parameters.h:27
Depths of points within frustum are in [0, 1] (DirectX convention).
Definition: depth_projection_parameters.h:15
depth_range range
Specifies range of depth values for points in frustum.
Definition: depth_projection_parameters.h:21
Depths of points within frustum are in [-1, +1] (OpenGL convention).
Definition: depth_projection_parameters.h:14
real depth_min() const
Definition: depth_projection_parameters.h:26
real z_near
Unsigned Z distance of near clipping plane to camera.
Definition: depth_projection_parameters.h:19
Definition: depth_projection_parameters.h:16
bool valid() const
Definition: depth_projection_parameters.cc:5
real z_far
Unsigned Z distance of far clipping plane to camera.
Definition: depth_projection_parameters.h:20
bool flip_z
Whether Z axis needs to be reversed, i.e. -Z direction maps to positive depth.
Definition: depth_projection_parameters.h:22