TOC PREV NEXT INDEX

image_capture

Synopsis

Records, plays back, and encodes collections of images in AVI or MPEG formats

Input Port

LGDView

GDview_ref_templ

LInputFrameBuffer

Mesh_Unif+Node_Data

Parameters

The following table lists amimator's public parameters stored in the imcapParam subobject. They carry data and flags used by other objects in the macro. They are set by UI controls defined in the imcapUI subobject.

Name

Type

UI panel control

reset

int

UIbutton:
imcapUI.PlaybackControls.GoToStart

reset back

int

UIbutton:
imcapUI.PlaybackControls.GoTo nd

run

int

UI button:
imcapUI.PlaybackControls.Run Forwards

run back

int

UIbutton
imcapUI.PlaybackControls.RunBack

step

int

UIbutton
imcapUI.PlaybackControls.StepForward

step back

int

UIbutton
imcapUI.PlaybackControls.StepBack

run options

int

UIoptionMenu
imcapUI.PlaybackControls.RunOptions

mode

int

UIoptionMenu
imcapUI.ImageCapControls.Mode

capture mode

int

UIoptionMenu
imcapUI.ImageCapControls.CaptureMode

temp file dir

string

UItext
imcapUI.ImageCapControls.TempDir

clear

int

UIbutton:
imcapUI.ImageCapControls.Clear

record

int

UIbutton:
imcapUI.ImageCapControls.Record

delete

int

UIbutton:
imcapUI.ImageCapControls.Delete

movie mode

int

UIoptionMenu
imcapUI.MovieControls.Mode

filename

string

VUIFileSelector
imcapUI.MovieControls.FileSelector

gen movie

int

UIbutton:
imcapUI.MovieControls.Generate

Compress AVI

int

UIToggle
imcapUI.MovieControls.AVIcompress

Choose Compression Codec

 

UIbutton
imcapUI.MovieControls.AVIchooseCodec

current image

int

UIlabel
imcapUI.PlaybackControls.Current

total images

int

UIlabel
imcapUI.ImageCapControls.NumberOfFrames

Output Port

LFrameBuffer

Mesh_Unif+Node_Data

Subobjects

The following table lists the immediate subobjects of the image capture macro.

imcapParam

A group that collects the public parameters used by image capture .

imcapCompute

A macro that encapsulates the processing done by the image capture to create the animation sequence.

imcapUI

A macro that encapsulates the user interface controls displayed in the default UImodpanel.

UImod panel

A group representing the default UI panel.

instancer

A module

Description

The image_capture macro includes GUI controls to enable the user to control some of the MPEG encoding parameters. MPEG which stands for Moving Picture Experts Group, is the nickname given to a family of International Standards used for coding audio-visual information in a digital compressed format. There is a choice of either constant bitrate/variable quality mode (CBR) and control the bitrate of the movie or variable bitrate/constant (VBR) quality mode and control the quality of the movie. On Windows, the encoder is MMX and SSE accelerated.

The encoder is not tightly integrated into the rest of the animator library; it's a separate DLL on Windows and a separate shared library on Unix. Furthermore, the encoder uses a "plugin" interface that is the same as that used by the well-known bbMPEG encoder. The bbMPEG encoder can be downloaded from the bbMPEG home page. This makes it possible to upgrade the encoder on Windows merely by downloading a new version of the DLL and replacing the one that comes with AVS/Express.

There is one crucial difference between using the AVS/Express version of the DLL and using the download version of the DLL. The download version of the DLL has its own integrated GUI. The integrated GUI has the advantage that it allows detailed control over the myriad MPEG encoding parameters and a help system that explains some of the parameters. The disadvantage is that any encoding settings done through AVS/Express will be ignored. Any parameter that you can set through the AVS/Express GUI can be set through bbMPEG's integrated GUI, but you may be surprised to find that your settings in the AVS/Express GUI have no effect.

When the capture mode is set to Disk, the user may specify which directory to store the temporary images captured while recording. When Disk mode is selected the type in box for Temp File Dir becomes available.

In both Windows and UNIX, the Image Capture module contains the means to compress AVI files. In Windows, you have the ablity to choose the compression type as well as the settings. When the Movie Control Mode in the Windows version is selected to AVI, two options are given. The first is a check box which asks if you wish to compress the AVI. If this is checked, the second button to choose the Compression Codec becomes available. By pressing this button a pop up screen will appear with a list of compressors that are available on the users machine. The user can then press configure to set the compression to compressor they wish.

In the UNIX version of this there is one built-in codec. The built-in codec emulates the Windows codec known as "AVIzlib".

Input

LDGView

GDview_ref_templ. Connection to a view.

LInputFrameBuffer

Mesh_Unif+Node_Data. Connection to a frame buffer.

Parameters

reset

When reset is set to nonzero, the animation is set to the first frame. If the animation is running, it continues from the first frame. reset is automatically reset to 0 after the reset is done.

reset back

UIbutton:intWhen reset_back is set to nonzero, the animation is set to the last frame. If the animation is running, it continues from the first frame. reset_back is automatically reset to 0 after the reset is done.

run

UIbutton. When nonzero, the animation runs. When the animation reaches the end, the run parameter is automatically set to zero unless the cycle parameter is nonzero. If run is set to zero while the loop is running, it stops at the current value until run is set to one.

run back

int__While run back is set to a non-zero value, the currrent sequence of frames is displayed backwards, from last to first, according to the mode set in the run options parameter. When the animated sequence is complete, run back is automatically reset to 0.
The run back parameter is set to 1 by the Run Backwards UIbutton control, and to 0 by the Stop control.

step

int__When step is set to a non-zero value, the current frame is advanced to the next frame forwards in the animation sequence. When the new frame is set, step is automatically reset to 0.
The step parameter is set by the StepForward UIbutton control in animUI.PlaybackControls.

step back

int__When step back is set to a non-zero value, the current frame is set to the previous frame in the animation sequence. When the new frame is set, step back is automatically reset to 0.
The step parameter is set by the StepBack UIbutton control in animUI.PlaybackControls.

run options

int__The run options parameter specifies one of three modes for running the animation:
·__0 = Once
·__1 = Cycle
·__2 = Bounce
The run options parameter is set by the RunOptions UIoptionMenu control in animUI.PlaybackControls

mode

Mode option menu to one of the capture options:
0 = Inactive
1 = Capture from View
Records images from the view connected to the LGDview port on the image capture object.
2 = Capture from Framebuffer
Records images from the view connected to the LInputFrameBuffer port on the image capture object.
3 = Playback to view
Plays back the images to the view connected to the LGDview port on the image capture object.
4 = Playback to Framebuffer
Plays back the images to the LFrameBuffer output port on the image capture object.

capture mode

0 = Disk
Saves the images to temporary files in the directory specified by filename.
1 = Memory saves the images to your computer's memory.

Temp file dir

The directory where temporary captured images files are stored.

clear

Clears all frames in the current animation.

record

Forces the creation of a frame for the current view.

delete

Deletes the current frame.

movie mode

Specifies the type of movie to be created:
0 = AVI
1 = MPEG 1

filename

Specifies the directory in which to create the movie files.

gen movie

Launches generation of the movie.

Compress AVI

Choose to compress the AVI file

Choose Compression Codec

In Windows only, this pops up a menu listing the available VFW (Video for Windows) codecs installed on the machine. The menu allows for setting the codec-specific compression parameters as well as the codec.

Output Port

LFrameBuffer

Mesh_Unif+Node_Data

Example

Not available

File

See also related modules



TOC PREV NEXT INDEX