CamSim  0.0.0
A rasterization-based simulator for various types of cameras
Public Member Functions | List of all members
CamSim::Simulator Class Reference

Simulates a camera frame. More...

Public Member Functions

 Simulator ()
 Constructor. More...
 
Configuration: animation and scene
const AnimationcameraAnimation () const
 Get camera animation. More...
 
void setCameraAnimation (const Animation &animation)
 Set camera animation. More...
 
const TransformationcameraTransformation () const
 Get camera transformation (relative to the camera animation) More...
 
void setCameraTransformation (const Transformation &transformation)
 Set camera transformation (relative to the camera animation) More...
 
const Scenescene () const
 Get scene. More...
 
void setScene (const Scene &scene)
 Set scene. More...
 
Configuration: chip and optics
const ChipTimingchipTiming () const
 Get chip timing parameters. More...
 
void setChipTiming (const ChipTiming &chipTiming)
 Set chip timing parameters. More...
 
const PMDpmd () const
 Get PMD chip parameters. More...
 
void setPMD (const PMD &pmd)
 Set PMD chip parameters. More...
 
const Projectionprojection () const
 Get projection parameters. More...
 
void setProjection (const Projection &projection)
 Set projection parameters. More...
 
Configuration: rendering pipeline and output
const Pipelinepipeline () const
 Get pipeline parameters. More...
 
void setPipeline (const Pipeline &pipeline)
 Set pipeline parameters. More...
 
const Outputoutput () const
 Get output parameters. More...
 
void setOutput (const Output &output)
 Set output parameters. More...
 
void setCustomTransformation (const Transformation &transformation)
 Set custom transformation, for output of custom space position and normals (see Output::customSpacePositions, Output::customSpaceNormals). By default, the custom transformation does nothing, and the custom space is equivalent to world space. More...
 
Simulation
int subFrames () const
 Get the number of subframes simulated for the current configuration. This is usually 4 if PMD simulation is active (see output), and 1 otherwise. More...
 
long long startTimestamp ()
 Get the start time in microseconds (earliest starting point of all involved animations) More...
 
long long endTimestamp ()
 Get the end time in microseconds (latest end point of all involved animations) More...
 
long long subFrameDuration ()
 Get subframe duration in microseconds (depends on chip timings) More...
 
long long frameDuration ()
 Get frame duration in microseconds (depends on chip timings and number of subframes) More...
 
float framesPerSecond ()
 Get frames per second rate (depends on chip timings and number of subframes) More...
 
long long nextFrameTimestamp ()
 Get the next time stamp in microseconds for simulation via simulate(). If you did not call simulate() yet with the current configuration, this will be the same as startTimestamp. Otherwise, it will be the last time stamp passed to simulate() plus the frameDuration(). You should stop to call simulate() once the returned time stamp is later than endTimestamp(). More...
 
void simulate (long long frameTimestamp)
 Simulate a camera frame at the time given by frameTimestamp. More...
 
Retrieving simulation results

Many of these function return texture handles. See the TexData class on how to access the data within the texture conveniently, and the Exporter class on how to write the data to various file formats.

long long getTimestamp (int i=-1) const
 Get the time stamp associated with the given subframe i or the final result (if i is -1; however, this is always the same as for subframe 0). More...
 
unsigned int getShadowMapCubeTex (int lightIndex, int i=-1) const
 Get the texture containing the shadow map cube for the light source with index lightIndex in the scene for the given subframe i or the final result (if i is -1). Shadow maps for the final result are always the same as those for the first subframe. More...
 
TexData getShadowMap (int lightIndex, int cubeSide, int i=-1) const
 Convenience wrapper for getShadowMapTex(). You need to specify the cube side (0 = pos-x, 1 = neg-x, 2 = pos-y, 3 = neg-y, 4 = pos-z, 5 = neg-z). More...
 
unsigned int getReflectiveShadowMapCubeArrayTex (int lightIndex, int i=-1) const
 Get the cube array texture containing the reflective shadow map information for the light source with index lightIndex in the scene, for the given subframe i or the final result (if i is -1). Shadow maps for the final result are always the same as those for the first subframe. The cube array texture contains the following layers: More...
 
TexData getReflectiveShadowMapPositions (int lightIndex, int cubeSide, int i=-1) const
 Convenience wrapper for getReflectiveShadowMapTex() that gets the position data. You need to specify the cube side (0 = pos-x, 1 = neg-x, 2 = pos-y, 3 = neg-y, 4 = pos-z, 5 = neg-z). More...
 
TexData getReflectiveShadowMapNormals (int lightIndex, int cubeSide, int i=-1) const
 Convenience wrapper for getReflectiveShadowMapTex() that gets the normal data. More...
 
TexData getReflectiveShadowMapRadiances (int lightIndex, int cubeSide, int i=-1) const
 Convenience wrapper for getReflectiveShadowMapTex() that gets the radiance data. More...
 
TexData getReflectiveShadowMapBRDFDiffuseParameters (int lightIndex, int cubeSide, int i=-1) const
 Convenience wrapper for getReflectiveShadowMapTex() that gets the BRDF diffuse parameter data. More...
 
TexData getReflectiveShadowMapBRDFSpecularParameters (int lightIndex, int cubeSide, int i=-1) const
 Convenience wrapper for getReflectiveShadowMapTex() that gets the BRDF specular parameter data. More...
 
unsigned int getDepthTex (int i=-1) const
 Get the output texture containing OpenGL depth buffer data for the given subframe i or the final result (if i is -1) Depths of the final result are always the same as those for the first subframe. Note that depth buffer data is only available if (1) any output other than rgb or pmd is active or (2) neither spatial nor temporal oversampling is active. More...
 
TexData getDepth (int i=-1) const
 Convenience wrapper for getDepthTex() More...
 
unsigned int getRGBTex (int i=-1) const
 Get the output texture containing linear RGB colors for the given subframe i or the final result (if i is -1) More...
 
TexData getRGB (int i=-1) const
 Convenience wrapper for getRGBTex() More...
 
unsigned int getSRGBTex (int i=-1) const
 Get the output texture containing sRGB colors for the given subframe i or the final result (if i is -1) More...
 
TexData getSRGB (int i=-1) const
 Convenience wrapper for getSRGBTex() More...
 
unsigned int getPMDTex (int i=-1) const
 Get the output texture containing PMD simulation for the given subframe i or the final result (if i is -1). The subframe texture will contain a phase image in digital numbers with the three channels (A-B, A+B, A, B); the final result will contain simulated range, amplitude, and intensity. More...
 
TexData getPMD (int i=-1) const
 Convenience wrapper for getPMDTex() More...
 
unsigned int getPMDCoordinatesTex () const
 Get the output texture containing PMD simulated cartesian coordinates. These are computed from the simulated PMD range value, taking the camera intrinsic parameters into account (image size, center pixel and focal lengths). Note that lens distortion is currently ignored. More...
 
TexData getPMDCoordinates () const
 Convenience wrapper for getPMDCoordinatesTex() More...
 
unsigned int getEyeSpacePositionsTex (int i=-1) const
 Get the output texture containing eye space positions for the given subframe i or the final result (if i is -1). Positions of the final result are always the same as those for the first subframe. More...
 
TexData getEyeSpacePositions (int i=-1) const
 Convenience wrapper for getEyeSpacePositionsTex() More...
 
unsigned int getCustomSpacePositionsTex (int i=-1) const
 Get the output texture containing custom space positions for the given subframe i or the final result (if i is -1). Positions of the final result are always the same as those for the first subframe. More...
 
TexData getCustomSpacePositions (int i=-1) const
 Convenience wrapper for getCustomSpacePositionsTex() More...
 
unsigned int getEyeSpaceNormalsTex (int i=-1) const
 Get the output texture containing eye space normals for the given subframe i or the final result (if i is -1) Normals of the final result are always the same as those for the first subframe. More...
 
TexData getEyeSpaceNormals (int i=-1) const
 Convenience wrapper for getEyeSpaceNormalsTex() More...
 
unsigned int getCustomSpaceNormalsTex (int i=-1) const
 Get the output texture containing custom space normals for the given subframe i or the final result (if i is -1) Normals of the final result are always the same as those for the first subframe. More...
 
TexData getCustomSpaceNormals (int i=-1) const
 Convenience wrapper for getCustomSpaceNormalsTex() More...
 
unsigned int getDepthAndRangeTex (int i=-1) const
 Get the output texture containing depth and range for the given subframe i or the final result (if i is -1) Depth and range of the final result are always the same as those for the first subframe. More...
 
TexData getDepthAndRange (int i=-1) const
 Convenience wrapper for getDepthAndRangeTex() More...
 
unsigned int getIndicesTex (int i=-1) const
 Get the output texture containing indices for the given subframe i or the final result (if i is -1) Indices of the final result are always the same as those for the first subframe. Note that all indices are incremented by one, so that unrendered areas in the resulting texture can be identified by checking for index zero (which never corresponds to a rendered object). More...
 
TexData getIndices (int i=-1) const
 Convenience wrapper for getIndicesTex() More...
 
unsigned int getForwardFlow3DTex (int i=-1) const
 Get the output texture containing forward 3D flow for the given subframe i or the final result (if i is -1) More...
 
TexData getForwardFlow3D (int i=-1) const
 Convenience wrapper for getForwardFlow3DTex() More...
 
unsigned int getForwardFlow2DTex (int i=-1) const
 Get the output texture containing forward 2D flow for the given subframe i or the final result (if i is -1) More...
 
TexData getForwardFlow2D (int i=-1) const
 Convenience wrapper for getForwardFlow2DTex() More...
 
unsigned int getBackwardFlow3DTex (int i=-1) const
 Get the output texture containing backward 3D flow for the given subframe i or the final result (if i is -1) More...
 
TexData getBackwardFlow3D (int i=-1) const
 Convenience wrapper for getBackwardFlow3DTex() More...
 
unsigned int getBackwardFlow2DTex (int i=-1) const
 Get the output texture containing backward 2D flow for the given subframe i or the final result (if i is -1) More...
 
TexData getBackwardFlow2D (int i=-1) const
 Convenience wrapper for getBackwardFlow2DTex() More...
 
const TransformationgetCameraTransformation (int i=-1) const
 Get the camera transformation for the given subframe i or the final result (if i is -1) Transformations of the final result are always the same as those for the first subframe. More...
 
const TransformationgetLightTransformation (int lightIndex, int i) const
 Get the transformation for the light source with index lightIndex in the scene for the given subframe i or the final result (if i is -1) Transformations of the final result are always the same as those for the first subframe. More...
 
const TransformationgetObjectTransformation (int objectIndex, int i) const
 Get the transformation for the object with index objectIndex in the scene for the given subframe i or the final result (if i is -1) Transformations of the final result are always the same as those for the first subframe. More...
 

Detailed Description

Simulates a camera frame.

Constructor & Destructor Documentation

◆ Simulator()

CamSim::Simulator::Simulator ( )

Constructor.

Member Function Documentation

◆ cameraAnimation()

const Animation& CamSim::Simulator::cameraAnimation ( ) const
inline

Get camera animation.

◆ cameraTransformation()

const Transformation& CamSim::Simulator::cameraTransformation ( ) const
inline

Get camera transformation (relative to the camera animation)

◆ chipTiming()

const ChipTiming& CamSim::Simulator::chipTiming ( ) const
inline

Get chip timing parameters.

◆ endTimestamp()

long long CamSim::Simulator::endTimestamp ( )

Get the end time in microseconds (latest end point of all involved animations)

◆ frameDuration()

long long CamSim::Simulator::frameDuration ( )

Get frame duration in microseconds (depends on chip timings and number of subframes)

◆ framesPerSecond()

float CamSim::Simulator::framesPerSecond ( )

Get frames per second rate (depends on chip timings and number of subframes)

◆ getBackwardFlow2D()

TexData CamSim::Simulator::getBackwardFlow2D ( int  i = -1) const
inline

Convenience wrapper for getBackwardFlow2DTex()

◆ getBackwardFlow2DTex()

unsigned int CamSim::Simulator::getBackwardFlow2DTex ( int  i = -1) const

Get the output texture containing backward 2D flow for the given subframe i or the final result (if i is -1)

◆ getBackwardFlow3D()

TexData CamSim::Simulator::getBackwardFlow3D ( int  i = -1) const
inline

Convenience wrapper for getBackwardFlow3DTex()

◆ getBackwardFlow3DTex()

unsigned int CamSim::Simulator::getBackwardFlow3DTex ( int  i = -1) const

Get the output texture containing backward 3D flow for the given subframe i or the final result (if i is -1)

◆ getCameraTransformation()

const Transformation& CamSim::Simulator::getCameraTransformation ( int  i = -1) const

Get the camera transformation for the given subframe i or the final result (if i is -1) Transformations of the final result are always the same as those for the first subframe.

◆ getCustomSpaceNormals()

TexData CamSim::Simulator::getCustomSpaceNormals ( int  i = -1) const
inline

Convenience wrapper for getCustomSpaceNormalsTex()

◆ getCustomSpaceNormalsTex()

unsigned int CamSim::Simulator::getCustomSpaceNormalsTex ( int  i = -1) const

Get the output texture containing custom space normals for the given subframe i or the final result (if i is -1) Normals of the final result are always the same as those for the first subframe.

◆ getCustomSpacePositions()

TexData CamSim::Simulator::getCustomSpacePositions ( int  i = -1) const
inline

Convenience wrapper for getCustomSpacePositionsTex()

◆ getCustomSpacePositionsTex()

unsigned int CamSim::Simulator::getCustomSpacePositionsTex ( int  i = -1) const

Get the output texture containing custom space positions for the given subframe i or the final result (if i is -1). Positions of the final result are always the same as those for the first subframe.

◆ getDepth()

TexData CamSim::Simulator::getDepth ( int  i = -1) const
inline

Convenience wrapper for getDepthTex()

◆ getDepthAndRange()

TexData CamSim::Simulator::getDepthAndRange ( int  i = -1) const
inline

Convenience wrapper for getDepthAndRangeTex()

◆ getDepthAndRangeTex()

unsigned int CamSim::Simulator::getDepthAndRangeTex ( int  i = -1) const

Get the output texture containing depth and range for the given subframe i or the final result (if i is -1) Depth and range of the final result are always the same as those for the first subframe.

◆ getDepthTex()

unsigned int CamSim::Simulator::getDepthTex ( int  i = -1) const

Get the output texture containing OpenGL depth buffer data for the given subframe i or the final result (if i is -1) Depths of the final result are always the same as those for the first subframe. Note that depth buffer data is only available if (1) any output other than rgb or pmd is active or (2) neither spatial nor temporal oversampling is active.

◆ getEyeSpaceNormals()

TexData CamSim::Simulator::getEyeSpaceNormals ( int  i = -1) const
inline

Convenience wrapper for getEyeSpaceNormalsTex()

◆ getEyeSpaceNormalsTex()

unsigned int CamSim::Simulator::getEyeSpaceNormalsTex ( int  i = -1) const

Get the output texture containing eye space normals for the given subframe i or the final result (if i is -1) Normals of the final result are always the same as those for the first subframe.

◆ getEyeSpacePositions()

TexData CamSim::Simulator::getEyeSpacePositions ( int  i = -1) const
inline

Convenience wrapper for getEyeSpacePositionsTex()

◆ getEyeSpacePositionsTex()

unsigned int CamSim::Simulator::getEyeSpacePositionsTex ( int  i = -1) const

Get the output texture containing eye space positions for the given subframe i or the final result (if i is -1). Positions of the final result are always the same as those for the first subframe.

◆ getForwardFlow2D()

TexData CamSim::Simulator::getForwardFlow2D ( int  i = -1) const
inline

Convenience wrapper for getForwardFlow2DTex()

◆ getForwardFlow2DTex()

unsigned int CamSim::Simulator::getForwardFlow2DTex ( int  i = -1) const

Get the output texture containing forward 2D flow for the given subframe i or the final result (if i is -1)

◆ getForwardFlow3D()

TexData CamSim::Simulator::getForwardFlow3D ( int  i = -1) const
inline

Convenience wrapper for getForwardFlow3DTex()

◆ getForwardFlow3DTex()

unsigned int CamSim::Simulator::getForwardFlow3DTex ( int  i = -1) const

Get the output texture containing forward 3D flow for the given subframe i or the final result (if i is -1)

◆ getIndices()

TexData CamSim::Simulator::getIndices ( int  i = -1) const
inline

Convenience wrapper for getIndicesTex()

◆ getIndicesTex()

unsigned int CamSim::Simulator::getIndicesTex ( int  i = -1) const

Get the output texture containing indices for the given subframe i or the final result (if i is -1) Indices of the final result are always the same as those for the first subframe. Note that all indices are incremented by one, so that unrendered areas in the resulting texture can be identified by checking for index zero (which never corresponds to a rendered object).

◆ getLightTransformation()

const Transformation& CamSim::Simulator::getLightTransformation ( int  lightIndex,
int  i 
) const

Get the transformation for the light source with index lightIndex in the scene for the given subframe i or the final result (if i is -1) Transformations of the final result are always the same as those for the first subframe.

◆ getObjectTransformation()

const Transformation& CamSim::Simulator::getObjectTransformation ( int  objectIndex,
int  i 
) const

Get the transformation for the object with index objectIndex in the scene for the given subframe i or the final result (if i is -1) Transformations of the final result are always the same as those for the first subframe.

◆ getPMD()

TexData CamSim::Simulator::getPMD ( int  i = -1) const
inline

Convenience wrapper for getPMDTex()

◆ getPMDCoordinates()

TexData CamSim::Simulator::getPMDCoordinates ( ) const
inline

Convenience wrapper for getPMDCoordinatesTex()

◆ getPMDCoordinatesTex()

unsigned int CamSim::Simulator::getPMDCoordinatesTex ( ) const

Get the output texture containing PMD simulated cartesian coordinates. These are computed from the simulated PMD range value, taking the camera intrinsic parameters into account (image size, center pixel and focal lengths). Note that lens distortion is currently ignored.

◆ getPMDTex()

unsigned int CamSim::Simulator::getPMDTex ( int  i = -1) const

Get the output texture containing PMD simulation for the given subframe i or the final result (if i is -1). The subframe texture will contain a phase image in digital numbers with the three channels (A-B, A+B, A, B); the final result will contain simulated range, amplitude, and intensity.

◆ getReflectiveShadowMapBRDFDiffuseParameters()

TexData CamSim::Simulator::getReflectiveShadowMapBRDFDiffuseParameters ( int  lightIndex,
int  cubeSide,
int  i = -1 
) const
inline

Convenience wrapper for getReflectiveShadowMapTex() that gets the BRDF diffuse parameter data.

◆ getReflectiveShadowMapBRDFSpecularParameters()

TexData CamSim::Simulator::getReflectiveShadowMapBRDFSpecularParameters ( int  lightIndex,
int  cubeSide,
int  i = -1 
) const
inline

Convenience wrapper for getReflectiveShadowMapTex() that gets the BRDF specular parameter data.

◆ getReflectiveShadowMapCubeArrayTex()

unsigned int CamSim::Simulator::getReflectiveShadowMapCubeArrayTex ( int  lightIndex,
int  i = -1 
) const

Get the cube array texture containing the reflective shadow map information for the light source with index lightIndex in the scene, for the given subframe i or the final result (if i is -1). Shadow maps for the final result are always the same as those for the first subframe. The cube array texture contains the following layers:

  • 0: Positions in camera space (not light space and not world space)
  • 1: Normals in camera space
  • 2: Radiances for r, g, b, and power
  • 3: BRDF diffuse parameters kd_r, kd_g, kd_b
  • 4: BRDF specular parameters ks_r, ks_g, ks_b, shininess

◆ getReflectiveShadowMapNormals()

TexData CamSim::Simulator::getReflectiveShadowMapNormals ( int  lightIndex,
int  cubeSide,
int  i = -1 
) const
inline

Convenience wrapper for getReflectiveShadowMapTex() that gets the normal data.

◆ getReflectiveShadowMapPositions()

TexData CamSim::Simulator::getReflectiveShadowMapPositions ( int  lightIndex,
int  cubeSide,
int  i = -1 
) const
inline

Convenience wrapper for getReflectiveShadowMapTex() that gets the position data. You need to specify the cube side (0 = pos-x, 1 = neg-x, 2 = pos-y, 3 = neg-y, 4 = pos-z, 5 = neg-z).

◆ getReflectiveShadowMapRadiances()

TexData CamSim::Simulator::getReflectiveShadowMapRadiances ( int  lightIndex,
int  cubeSide,
int  i = -1 
) const
inline

Convenience wrapper for getReflectiveShadowMapTex() that gets the radiance data.

◆ getRGB()

TexData CamSim::Simulator::getRGB ( int  i = -1) const
inline

Convenience wrapper for getRGBTex()

◆ getRGBTex()

unsigned int CamSim::Simulator::getRGBTex ( int  i = -1) const

Get the output texture containing linear RGB colors for the given subframe i or the final result (if i is -1)

◆ getShadowMap()

TexData CamSim::Simulator::getShadowMap ( int  lightIndex,
int  cubeSide,
int  i = -1 
) const
inline

Convenience wrapper for getShadowMapTex(). You need to specify the cube side (0 = pos-x, 1 = neg-x, 2 = pos-y, 3 = neg-y, 4 = pos-z, 5 = neg-z).

◆ getShadowMapCubeTex()

unsigned int CamSim::Simulator::getShadowMapCubeTex ( int  lightIndex,
int  i = -1 
) const

Get the texture containing the shadow map cube for the light source with index lightIndex in the scene for the given subframe i or the final result (if i is -1). Shadow maps for the final result are always the same as those for the first subframe.

◆ getSRGB()

TexData CamSim::Simulator::getSRGB ( int  i = -1) const
inline

Convenience wrapper for getSRGBTex()

◆ getSRGBTex()

unsigned int CamSim::Simulator::getSRGBTex ( int  i = -1) const

Get the output texture containing sRGB colors for the given subframe i or the final result (if i is -1)

◆ getTimestamp()

long long CamSim::Simulator::getTimestamp ( int  i = -1) const

Get the time stamp associated with the given subframe i or the final result (if i is -1; however, this is always the same as for subframe 0).

◆ nextFrameTimestamp()

long long CamSim::Simulator::nextFrameTimestamp ( )

Get the next time stamp in microseconds for simulation via simulate(). If you did not call simulate() yet with the current configuration, this will be the same as startTimestamp. Otherwise, it will be the last time stamp passed to simulate() plus the frameDuration(). You should stop to call simulate() once the returned time stamp is later than endTimestamp().

◆ output()

const Output& CamSim::Simulator::output ( ) const
inline

Get output parameters.

◆ pipeline()

const Pipeline& CamSim::Simulator::pipeline ( ) const
inline

Get pipeline parameters.

◆ pmd()

const PMD& CamSim::Simulator::pmd ( ) const
inline

Get PMD chip parameters.

◆ projection()

const Projection& CamSim::Simulator::projection ( ) const
inline

Get projection parameters.

◆ scene()

const Scene& CamSim::Simulator::scene ( ) const
inline

Get scene.

◆ setCameraAnimation()

void CamSim::Simulator::setCameraAnimation ( const Animation animation)

Set camera animation.

◆ setCameraTransformation()

void CamSim::Simulator::setCameraTransformation ( const Transformation transformation)

Set camera transformation (relative to the camera animation)

◆ setChipTiming()

void CamSim::Simulator::setChipTiming ( const ChipTiming chipTiming)

Set chip timing parameters.

◆ setCustomTransformation()

void CamSim::Simulator::setCustomTransformation ( const Transformation transformation)

Set custom transformation, for output of custom space position and normals (see Output::customSpacePositions, Output::customSpaceNormals). By default, the custom transformation does nothing, and the custom space is equivalent to world space.

◆ setOutput()

void CamSim::Simulator::setOutput ( const Output output)

Set output parameters.

◆ setPipeline()

void CamSim::Simulator::setPipeline ( const Pipeline pipeline)

Set pipeline parameters.

◆ setPMD()

void CamSim::Simulator::setPMD ( const PMD pmd)

Set PMD chip parameters.

◆ setProjection()

void CamSim::Simulator::setProjection ( const Projection projection)

Set projection parameters.

◆ setScene()

void CamSim::Simulator::setScene ( const Scene scene)

Set scene.

◆ simulate()

void CamSim::Simulator::simulate ( long long  frameTimestamp)

Simulate a camera frame at the time given by frameTimestamp.

This function simulates a camera viewing the scene using the current configuration at the given point in time.

It uses its own internal framebuffer object and manages its own textures for simulation results. You can get these textures individually.

If the simulation requires the simulation of subframes, then all subframes and the final result frame are simulated in one step, but the results from every subframe remain accessible. For example, if PMD simulation is activated (see output), then the four phase images as well as the final result are simulated in one step.

◆ startTimestamp()

long long CamSim::Simulator::startTimestamp ( )

Get the start time in microseconds (earliest starting point of all involved animations)

◆ subFrameDuration()

long long CamSim::Simulator::subFrameDuration ( )

Get subframe duration in microseconds (depends on chip timings)

◆ subFrames()

int CamSim::Simulator::subFrames ( ) const

Get the number of subframes simulated for the current configuration. This is usually 4 if PMD simulation is active (see output), and 1 otherwise.


The documentation for this class was generated from the following file: