52
Argus Encoder Family Version 2.6 API Developer’s Guide
FMTestApp
When the Cue button is clicked,
OnInitialize()
does the following:
• Checks to see if FilterManager is currently in an error state. If so, it calls
Reset()
to clear the encoding properties.
• Reads the text edit field values from the window and stores them in the
Windows Registry.
• Calls the FilterManager
Reset()
method to reset all the encoder components.
• Calls the FilterManager
Load()
method to load all settings from the Registry.
• Reports an error and fails if the
Load()
method returns unsuccessfully.
• Calls the Filter Manager
Cue()
method to set up all of the encoder COM
components for an encode. If VTR control is enabled, for example, the
VTR will roll the tape to the mark-in. The encoder calculates the duration
of the encode in frames by subtracting the Mark-In from the Mark-Out.
The audio and video encoders load their microcode, setting encode
parameters according to the specified Windows Registry settings.
• Checks the
Cue()
return code, aborting on error.
• Calls application-specific methods to intelligently set the appropriate buttons
Figure 4-1. C++ Sample Application Window