Functions | |
MOVIE2RECORDER | CreateMovie2Recorder (Movie2_RecordingEngine Type) |
Create a new Movie2 recorder object for use with the other functions of this DLL. More... | |
MOVIE2RECORDER | CreateMovie2RecorderEx (Movie2_RecordingEngine Type, IMG Image) |
Create a new Movie2 recorder object and immediately set the image to work on. More... | |
BOOL | IsMovie2Recorder (MOVIE2RECORDER handle) |
Verify as good as possible that an input handle refers to a valid Movie2 Recording engine object. More... | |
long | Movie2AddFrame (MOVIE2RECORDER Handle) |
Add a single frame from the image object that has been set for this recorder object to the AVI stream. More... | |
long | Movie2GetAcqMode (MOVIE2RECORDER Handle, Movie2_AcqMode &Mode) |
Query the acquisition mode currently used by the recording engine. More... | |
long | Movie2GetCompressorIndex (MOVIE2RECORDER Handle, long &Index) |
Get the index of the compressor to be used next time Movie2StartRecording is called. More... | |
long | Movie2GetCompressorName (MOVIE2RECORDER Handle, long Index, char *szName, long BufferSize) |
Retrieve the friendly name of a compressor on this system. More... | |
long | Movie2GetCompressorNameW (MOVIE2RECORDER Handle, long Index, wchar_t *szName, long BufferSize) |
Retrieve the friendly name of a compressor on this system. More... | |
long | Movie2GetFrameRate (MOVIE2RECORDER Handle, double &FramesPerSecond) |
Retrieve the currently set frame rate. More... | |
long | Movie2GetImage (MOVIE2RECORDER Handle, IMG &Image) |
Retrieve the image that is currently being used by the recording engine. More... | |
long | Movie2GetIsRecording (MOVIE2RECORDER Handle, BOOL &IsRecording) |
Checks whether a recorder object is currently recording AVI streams to disk. More... | |
long | Movie2GetNumAcquiredFrames (MOVIE2RECORDER Handle, long &FramesAcquired) |
Query the number of frames that have so far been acquired during the running acquisition. More... | |
long | Movie2GetNumCompressors (MOVIE2RECORDER Handle, long &NumCompressors) |
Retrieve the number of compressors that has been found on the system. More... | |
long | Movie2GetNumDroppedFrames (MOVIE2RECORDER Handle, long &FramesDropped) |
Query the number of frames that have so far been dropped during the running acquisition. More... | |
long | Movie2GetSyncMode (MOVIE2RECORDER Handle, Movie2_SyncMode &Mode) |
Query the synchronization mode currently used by the recording engine. More... | |
long | Movie2GetTargetFileName (MOVIE2RECORDER Handle, char *szBuffer, long &BufferSize) |
Retrieve the name of the currently set target file. More... | |
long | Movie2GetTargetFileNameW (MOVIE2RECORDER Handle, wchar_t *szBuffer, long &BufferSize) |
Retrieve the name of the currently set target file. More... | |
long | Movie2GetUseMetadata (MOVIE2RECORDER Handle, BOOL &Use) |
Query whether meta data are currently being written. More... | |
long | Movie2PauseRecording (MOVIE2RECORDER Handle) |
Pause continuous recording of AVI data into a file. More... | |
long | Movie2PreStartRecording (MOVIE2RECORDER Handle) |
Prepare the start of AVI recording. More... | |
long | Movie2RegisterErrorCallback (MOVIE2RECORDER Handle, pfMovie2Error Callback, void *pUserData, long &Cookie) |
Register an Error callback that will be raised by the Movie2 recorder whenever an internal error occurred. More... | |
long | Movie2RegisterImageSnappedCallback (MOVIE2RECORDER Handle, pfMovie2ImageSnapped Callback, void *pUserData, long &Cookie) |
Register an ImageSnapped callback that will be raised by the Movie2 recorder whenever a new image has been acquired. More... | |
long | Movie2RegisterImageUpdatedCallback (MOVIE2RECORDER Handle, pfMovie2ImageUpdated Callback, void *pUserData, long &Cookie) |
Register an ImageUpdated callback that will be raised by the Movie2 recorder whenever the image handle in the recorder object changed its value. More... | |
long | Movie2RegisterMetaDataCallback (MOVIE2RECORDER Handle, pfMovie2ProvideMetaData Callback, void *pUserData, long &Cookie) |
Register a MetaData callback that will be raised by the Movie2 recorder whenever new MetaData can be passed to the current frame into the AVI container. More... | |
long | Movie2ResetAcquiredFramesCounter (MOVIE2RECORDER Handle) |
Reset the counter for acquired frames. More... | |
long | Movie2ResetDroppedFramesCounter (MOVIE2RECORDER Handle) |
Reset the counter for dropped frames. More... | |
long | Movie2SetAcqMode (MOVIE2RECORDER Handle, Movie2_AcqMode Mode) |
Set the acquisition mode to be used by the recording engine. More... | |
long | Movie2SetCompressorIndex (MOVIE2RECORDER Handle, long Index) |
Set the index of the compressor to be used next time Movie2StartRecording is called. More... | |
long | Movie2SetFrameRate (MOVIE2RECORDER Handle, double FramesPerSecond) |
Set the frame rate with which the recoding engine should record the video signal. More... | |
long | Movie2SetImage (MOVIE2RECORDER Handle, IMG Image) |
Set the image to be used by the Movie2 recording engine. More... | |
long | Movie2SetSyncMode (MOVIE2RECORDER Handle, Movie2_SyncMode Mode) |
Set the synchronization mode to be used by the Movie2 recording engine. More... | |
long | Movie2SetTargetFileName (MOVIE2RECORDER Handle, const char *szFileName) |
Set the name of the file into which the AVI sequence is to be recorded. More... | |
long | Movie2SetTargetFileNameW (MOVIE2RECORDER Handle, const wchar_t *szFileName) |
Set the name of the file into which the AVI sequence is to be recorded. More... | |
long | Movie2SetUseMetadata (MOVIE2RECORDER Handle, BOOL Use) |
Specify whether or not meta data should be recorded while writing an AVI file. More... | |
long | Movie2ShowCodecPropertyPage (MOVIE2RECORDER Handle, HWND hwndOwner) |
If possible, display the property page(s) of the currently selected video compression codec (the one set by the last call to Movie2SetCompressorIndex). More... | |
long | Movie2StartRecording (MOVIE2RECORDER Handle) |
Start continuous recording of AVI data into a file according to the settings made before this method has been called. More... | |
long | Movie2StopRecording (MOVIE2RECORDER Handle) |
Stop continuous recording of AVI data. More... | |
long | Movie2UnregisterCallback (MOVIE2RECORDER Handle, long Cookie) |
Deregisters any previously registered callback. More... | |
MOVIE2RECORDER CreateMovie2Recorder | ( | Movie2_RecordingEngine | Type | ) |
Create a new Movie2 recorder object for use with the other functions of this DLL.
Destruction through ReleaseObject
.
[in] | Type | Type of the recording engine to be used. |
NULL
. MOVIE2RECORDER CreateMovie2RecorderEx | ( | Movie2_RecordingEngine | Type, |
IMG | Image | ||
) |
Create a new Movie2 recorder object and immediately set the image to work on.
Destruction through ReleaseObject
.
[in] | Type | Type of the recording engine to be used. |
[in] | Image | Handle of image object to work with. |
NULL
. BOOL IsMovie2Recorder | ( | MOVIE2RECORDER | handle | ) |
Verify as good as possible that an input handle refers to a valid Movie2 Recording engine object.
IsImage
, this function should only be used with a great lot of extra care - it is usually preferable to maintain proper and tidy use of handles instead.[in] | handle | Handle to be verified. |
TRUE
if it is a valid Movie2 recording object, FALSE
otherwise. long Movie2AddFrame | ( | MOVIE2RECORDER | Handle | ) |
Add a single frame from the image object that has been set for this recorder object to the AVI stream.
It only is effective, if the acquisition mode has been set to Movie2_AcqAddFrame with Movie2SetAcqMode.
[in] | Handle | Handle of recorder for which to add a frame. |
long Movie2GetAcqMode | ( | MOVIE2RECORDER | Handle, |
Movie2_AcqMode & | Mode | ||
) |
Query the acquisition mode currently used by the recording engine.
You can change the current acquisition mode by calling Movie2SetAcqMode.
[in] | Handle | Handle of recorder object for which to query the acquisition mode. |
[out] | Mode | Acquisition mode currently set. See Movie2_AcqMode for possible modes. |
long Movie2GetCompressorIndex | ( | MOVIE2RECORDER | Handle, |
long & | Index | ||
) |
Get the index of the compressor to be used next time Movie2StartRecording is called.
[in] | Handle | Handle of recorder object. |
[out] | Index | Index of the compressor to be used for the next recording. |
long Movie2GetCompressorName | ( | MOVIE2RECORDER | Handle, |
long | Index, | ||
char * | szName, | ||
long | BufferSize | ||
) |
Retrieve the friendly name of a compressor on this system.
Use the function Movie2GetNumCompressors to check how many compressors have been found on the system.
[in] | Handle | Handle of recorder object. |
[in] | Index | Index of the codec for which to retrieve the name. |
[in] | szName | Pointer to a buffer into which the friendly name of the codec should be written (including the terminating zero). |
[in] | BufferSize | Size of the buffer pointed to by szName. |
long Movie2GetCompressorNameW | ( | MOVIE2RECORDER | Handle, |
long | Index, | ||
wchar_t * | szName, | ||
long | BufferSize | ||
) |
Retrieve the friendly name of a compressor on this system.
Use the function Movie2GetNumCompressors to check how many compressors have been found on the system.
[in] | Handle | Handle of recorder object. |
[in] | Index | Index of the codec for which to retrieve the name. |
[in] | szName | Pointer to a buffer into which the friendly name of the codec should be written (including the terminating zero). |
[in] | BufferSize | Size of the buffer pointed to by szName. |
long Movie2GetFrameRate | ( | MOVIE2RECORDER | Handle, |
double & | FramesPerSecond | ||
) |
Retrieve the currently set frame rate.
See the description of Movie2SetFrameRate for the interpretation of the frame rate.
[in] | Handle | Handle of recorder object for which to retrieve the setting. |
[out] | FramesPerSecond | Current frame rate. |
long Movie2GetImage | ( | MOVIE2RECORDER | Handle, |
IMG & | Image | ||
) |
Retrieve the image that is currently being used by the recording engine.
[in] | Handle | Handle of recorder object. |
[out] | Image | Image handle object that is currently being used for recording. |
long Movie2GetIsRecording | ( | MOVIE2RECORDER | Handle, |
BOOL & | IsRecording | ||
) |
Checks whether a recorder object is currently recording AVI streams to disk.
[in] | Handle | Handle of recorder object to be checked. |
[out] | IsRecording | TRUE if it is currently recording, FALSE otherwise. |
long Movie2GetNumAcquiredFrames | ( | MOVIE2RECORDER | Handle, |
long & | FramesAcquired | ||
) |
Query the number of frames that have so far been acquired during the running acquisition.
Usually the number is reset at the beginning of the acquisition. It may also be reset by a call to Movie2ResetAcquiredFramesCounter.
[in] | Handle | Handle of recorder object to query. |
[out] | FramesAcquired | Number of acquired frames. |
long Movie2GetNumCompressors | ( | MOVIE2RECORDER | Handle, |
long & | NumCompressors | ||
) |
Retrieve the number of compressors that has been found on the system.
[in] | Handle | Handle of recorder object for which to check the number of available compressors. |
[out] | NumCompressors | Number of compressors found on the computer. |
long Movie2GetNumDroppedFrames | ( | MOVIE2RECORDER | Handle, |
long & | FramesDropped | ||
) |
Query the number of frames that have so far been dropped during the running acquisition.
Usually the number is reset at the beginning of the acquisition. It may also be reset by a call to Movie2ResetDroppedFramesCounter.
[in] | Handle | Handle of recorder object to query. |
[out] | FramesDropped | Number of dropped frames. |
long Movie2GetSyncMode | ( | MOVIE2RECORDER | Handle, |
Movie2_SyncMode & | Mode | ||
) |
Query the synchronization mode currently used by the recording engine.
[in] | Handle | Handle of recorder object for which to query the synchronization mode. |
[out] | Mode | Synchronization mode currently set. See Movie2_SyncMode for possible modes. |
long Movie2GetTargetFileName | ( | MOVIE2RECORDER | Handle, |
char * | szBuffer, | ||
long & | BufferSize | ||
) |
Retrieve the name of the currently set target file.
[in] | Handle | Handle of recorder object for which to retrieve the file name. |
[in] | szBuffer | Buffer into which to receive the target file name. |
[in] | BufferSize | Size of the buffer pointed to by szBuffer. Upon leaving this function, BufferSize will contain the number of characters that have actually been written into the buffer. |
long Movie2GetTargetFileNameW | ( | MOVIE2RECORDER | Handle, |
wchar_t * | szBuffer, | ||
long & | BufferSize | ||
) |
Retrieve the name of the currently set target file.
[in] | Handle | Handle of recorder object for which to retrieve the file name. |
[in] | szBuffer | Buffer into which to receive the target file name. |
[in] | BufferSize | Size of the buffer pointed to by szBuffer. Upon leaving this function, BufferSize will contain the number of characters that have actually been written into the buffer. |
long Movie2GetUseMetadata | ( | MOVIE2RECORDER | Handle, |
BOOL & | Use | ||
) |
Query whether meta data are currently being written.
The Movie2RegisterMetaDataCallback has to be registered with which the MetaData can be written to the AVI file.
Meta data are (ANSI-) strings with up to 64k characters, one per image being recorded. For example, the MetaData can be used to save the corresponding timestamp as a string for every recorded frame within the AVI container.
To read out the MetaData you can implement the CVB Notify Interface (INotify
) of the Driver.dll in your own application. If you prefer the Grabber OCX you can use the ImageNotificationString
Event. As examples the VCMovie2PlayerExample
and the CSMovie2PlayerExample
are included in Movie2.
[in] | Handle | Handle of recorder object on which to query. |
[out] | Use | TRUE if metadata are to be written, FALSE otherwise. |
long Movie2PauseRecording | ( | MOVIE2RECORDER | Handle | ) |
long Movie2PreStartRecording | ( | MOVIE2RECORDER | Handle | ) |
Prepare the start of AVI recording.
This method may be called any time prior to Movie2StartRecording to speed up the initialization process and allow the recorder to react to the "start" signal more promptly. If it has not been called prior to Movie2StartRecording, Movie2StartRecording will call Movie2PreStartRecording to do the necessary initializations.
[in] | Handle | Handle of recorder object for which to prepare recording start. |
long Movie2RegisterErrorCallback | ( | MOVIE2RECORDER | Handle, |
pfMovie2Error | Callback, | ||
void * | pUserData, | ||
long & | Cookie | ||
) |
Register an Error callback that will be raised by the Movie2 recorder whenever an internal error occurred.
Callback has to be unregistered with Movie2UnregisterCallback.
[in] | Handle | Handle of recorder object on which to register the callback. |
[in] | Callback | Callback to be registered. |
[in] | pUserData | User data to go with the callback. |
[out] | Cookie | Cookie issued during registration of the callback. |
long Movie2RegisterImageSnappedCallback | ( | MOVIE2RECORDER | Handle, |
pfMovie2ImageSnapped | Callback, | ||
void * | pUserData, | ||
long & | Cookie | ||
) |
Register an ImageSnapped callback that will be raised by the Movie2 recorder whenever a new image has been acquired.
Callback has to be unregistered with Movie2UnregisterCallback.
[in] | Handle | Handle of recorder object on which to register the callback. |
[in] | Callback | Callback to be registered. |
[in] | pUserData | User data to go with the callback. |
[out] | Cookie | Cookie issued during registration of the callback. |
long Movie2RegisterImageUpdatedCallback | ( | MOVIE2RECORDER | Handle, |
pfMovie2ImageUpdated | Callback, | ||
void * | pUserData, | ||
long & | Cookie | ||
) |
Register an ImageUpdated callback that will be raised by the Movie2 recorder whenever the image handle in the recorder object changed its value.
Callback has to be unregistered with Movie2UnregisterCallback.
[in] | Handle | Handle of recorder object on which to register the callback. |
[in] | Callback | Callback to be registered. |
[in] | pUserData | User data to go with the callback. |
[out] | Cookie | Cookie issued during registration of the callback. |
long Movie2RegisterMetaDataCallback | ( | MOVIE2RECORDER | Handle, |
pfMovie2ProvideMetaData | Callback, | ||
void * | pUserData, | ||
long & | Cookie | ||
) |
Register a MetaData callback that will be raised by the Movie2 recorder whenever new MetaData can be passed to the current frame into the AVI container.
Will only be raised if UseMetadata is set to TRUE
. Callback has to be unregistered with Movie2UnregisterCallback.
Meta data are (ANSI-) strings with up to 64k characters, one per image being recorded. For example, the MetaData can be used to save the corresponding timestamp as a string for every recorded frame within the AVI container.
To read out the MetaData you can implement the CVB Notify Interface (INotify
) of the Driver.dll in your own application. If you prefer the Grabber OCX you can use the ImageNotificationString
Event. As examples the VCMovie2PlayerExample
and the CSMovie2PlayerExample
are included in Movie2.
DirectStreamCopy
writes only the text of the first frame to all other frames.[in] | Handle | Handle of recorder object on which to register the callback. |
[in] | Callback | Callback to be registered. |
[in] | pUserData | User data to go with the callback. |
[out] | Cookie | Cookie issued during registration of the callback. |
long Movie2ResetAcquiredFramesCounter | ( | MOVIE2RECORDER | Handle | ) |
long Movie2ResetDroppedFramesCounter | ( | MOVIE2RECORDER | Handle | ) |
long Movie2SetAcqMode | ( | MOVIE2RECORDER | Handle, |
Movie2_AcqMode | Mode | ||
) |
Set the acquisition mode to be used by the recording engine.
Inquire the currently set acquisition mode with Movie2GetAcqMode.
[in] | Handle | Handle of recorder object for which to set the acquisition mode. |
[in] | Mode | Acquisition mode to be set. See Movie2_AcqMode for possible modes. |
long Movie2SetCompressorIndex | ( | MOVIE2RECORDER | Handle, |
long | Index | ||
) |
Set the index of the compressor to be used next time Movie2StartRecording is called.
[in] | Handle | Handle of recorder object on which to change the value. |
[in] | Index | Index of the compressor to be used. 0 = uncompressed. |
long Movie2SetFrameRate | ( | MOVIE2RECORDER | Handle, |
double | FramesPerSecond | ||
) |
Set the frame rate with which the recoding engine should record the video signal.
[in] | Handle | Handle of recorder object for which to set the value. |
[in] | FramesPerSecond | Frame rate to be set. |
long Movie2SetImage | ( | MOVIE2RECORDER | Handle, |
IMG | Image | ||
) |
Set the image to be used by the Movie2 recording engine.
[in] | Handle | Handle of recorder object for which to set the image. |
[in] | Image | Handle of the image to be used for recording. |
long Movie2SetSyncMode | ( | MOVIE2RECORDER | Handle, |
Movie2_SyncMode | Mode | ||
) |
Set the synchronization mode to be used by the Movie2 recording engine.
[in] | Handle | Handle of recorder object for which to set the synchronization mode. |
[in] | Mode | Synchronization mode to be set. See Movie2_SyncMode for possible modes. |
long Movie2SetTargetFileName | ( | MOVIE2RECORDER | Handle, |
const char * | szFileName | ||
) |
Set the name of the file into which the AVI sequence is to be recorded.
[in] | Handle | Handle of recorder object. |
[in] | szFileName | Name of the AVI file to be generated. |
long Movie2SetTargetFileNameW | ( | MOVIE2RECORDER | Handle, |
const wchar_t * | szFileName | ||
) |
Set the name of the file into which the AVI sequence is to be recorded.
[in] | Handle | Handle of recorder object. |
[in] | szFileName | Name of the AVI file to be generated. |
long Movie2SetUseMetadata | ( | MOVIE2RECORDER | Handle, |
BOOL | Use | ||
) |
Specify whether or not meta data should be recorded while writing an AVI file.
Meta data are (ANSI-) strings with up to 64k characters, one per image being recorded. For example, the MetaData can be used to save the corresponding timestamp as a string for every recorded frame within the AVI container.
To read out the MetaData you can implement the CVB Notify Interface (INotify
) of the Driver.dll in your own application. If you prefer the Grabber OCX you can use the ImageNotificationString Event. As examples the VCMovie2PlayerExample
and the CSMovie2PlayerExample
are included in Movie2.
DirectStreamCopy
writes only the text of the first frame to all other frames. [in] | Handle | Handle of recorder object on which to set. |
[in] | Use | TRUE if metadata are to be written, FALSE otherwise. |
long Movie2ShowCodecPropertyPage | ( | MOVIE2RECORDER | Handle, |
HWND | hwndOwner | ||
) |
If possible, display the property page(s) of the currently selected video compression codec (the one set by the last call to Movie2SetCompressorIndex).
[in] | Handle | Handle of recorder object. |
[in] | hwndOwner | Handle of parent form. |
long Movie2StartRecording | ( | MOVIE2RECORDER | Handle | ) |
Start continuous recording of AVI data into a file according to the settings made before this method has been called.
If you want to speed up the Movie2StartRecording you can use Movie2PreStartRecording to initialize the recording.
[in] | Handle | Handle of recorder object for which to start recording. |
long Movie2StopRecording | ( | MOVIE2RECORDER | Handle | ) |
Stop continuous recording of AVI data.
[in] | Handle | Handle of recorder object for which to stop recording. |
long Movie2UnregisterCallback | ( | MOVIE2RECORDER | Handle, |
long | Cookie | ||
) |
Deregisters any previously registered callback.
[in] | Handle | Handle of recorder object on which to deregister a callback. |
[in] | Cookie | Cookie that has been issued upon the callbacks. |