Documentation



Developed by The Demo Factory:
Kevin Brunner
, Tim Davison,
Ed Allard, Bob Penrod

Class SoDMBufferVideoEngine

SoDMBufferVideoEngine feeds a constant stream of video from the currently selected video device (unless otherwise specified) to it's outputs: textureBits and linearBits. These outputs are typically tied to an SoSFDMBufferImage (such as the image field of an SoDMBufferTexture2 node.

The scale varable is adjusted, based on the size of the incident video, to properly scale downstream textures when connected to an SoDMBufferTexture2 object.

Fields from class SoDMBufferEngine:

    SoEngineOutput textureBits;
    SoEngineOutput linearBits;
    SoEngineOutput scale;
 

Technical Notes:

Video processing is done in a separate thread.

Default Video Parameters:

    VIDEO_WIDTH  = 512;
    VIDEO_HEIGHT = 512;
    VIDEO_BUFFER_COUNT =   5;
 
Video Layout Parameters:
    LAYOUT_GRAPHICS,
    LAYOUT_LINEAR,
    LAYOUT_BOTH
 

Method Index

 o SoDMBufferVideoEngine( int , const char* , int , int , int , int , int , int , int , int , int )
Constructor

The default values (assumed by this constructor) are appropriate for most applications.

(see the Insight Digital Media Programmer's Guide for information concerning video parameters)

 o start( )
Stop dynamically updating the current video image.

 o stop( )
Resume dynamically updating the current video image.

Methods

 o SoDMBufferVideoEngine
  SoDMBufferVideoEngine( int layout = LAYOUT_GRAPHICS,
	 const char* videoSource = NULL, 
	 int originX = 0,
	 int originY = 32,
	 int zoomNumerator = -1,
	 int zoomDenominator = -1,
	 int aspectNumerator = -1,
	 int aspectDenominator = -1,
	 int width = VIDEO_WIDTH, 
	 int height = VIDEO_HEIGHT,
	 int bufferCount = VIDEO_BUFFER_COUNT )
	
Constructor

The default values (assumed by this constructor) are appropriate for most applications.

(see the Insight Digital Media Programmer's Guide for information concerning video parameters)

Parameters:
layout - Dictates active engine outputs.
videoSource - Source for video. NULL= selectable via vcp(1); specify others by name: "Composite".
originX - Video horizontal origin
originY - Video vertical origin
zoomNumerator - Video zoom (fractional) numerator
zoomDenominator - Video zoom (fractional) denominator
aspectNumerator - Video aspect (fractional) numerator
aspectDenominator - Video aspect (fractional) denominator
width - Video and SbDMBuffer size/width (must be power of 2)
height - Video and SbDMBuffer size/height (must be power of 2)
bufferCount - DMbufferpool size
Related Man Pages:
vl
vlSetControl

 o start
  virtual void start( void )
	
Stop dynamically updating the current video image.

 o stop
  virtual void stop( void )
	
Resume dynamically updating the current video image.