IMVRecording
The IMVRecording interface is used to control the filters image processing algorithm. Read the filter description to see how the filter is used.
| get_RecordingMode | Returns the recording mode as MV_RECORDING_MODE. |
| put_RecordingMode | Sets the recording mode as MV_RECORDING_MODE. |
| get_TimingMode | Returns the timing mode as MV_TIMING_MODE. |
| put_TimingMode | Sets the timing mode as MV_TIMING_MODE. |
| get_Framerate | Returns the frame rate of the recording output pin as double. |
| put_Framerate | Sets the frame rate of the recording output pin as double. |
| Snapshot | Takes a snaphot if the filter is in snapshot mode. |
| StartRecording | Starts the recording if the filter is in video recording mode. |
| StopRecording | Stops the recording if the filter is in video recording mode. |
| StartTimeLapse | Starts the time lapse if the filter is in time lapse mode. |
| StopTimeLapse | Stops the time lapse if the filter is in time lapse mode. |
| IsRunning | Returns information about the recording state. |
| get_TimeLapseInterval | Returns the time lapse interval as double. |
| put_TimeLapseInterval | Sets the time lapse interval as double. |
Header file: iMVRecording.h
Interface definition language file: iMVRecording.idl
Typelib: MVRecording
Interface ID: IID_IMVRecording
HRESULT get_RecordingMode( [out, retval] int *piMode );
Returns the recording mode as MV_RECORDING_MODE.
Parameter:
| piMode | Pointer to an integer that receives the recording mode as MV_RECORDING_MODE. |
HRESULT put_RecordingMode( [in ] int iMode );
Sets the recording mode as MV_RECORDING_MODE.
Parameter:
| iMode | The recording mode as MV_RECORDING_MODE. |
HRESULT get_TimingMode( [out, retval] int *piMode );
Returns the timing mode as MV_TIMING_MODE.
Parameter:
| piMode | Pointer to an integer that receives the timing mode as MV_TIMING_MODE. |
HRESULT put_TimingMode( [in ] int iMode );
Sets the timing mode as MV_TIMING_MODE.
Parameter:
| iMode | The timing mode as MV_TIMING_MODE. |
HRESULT get_Framerate( [out, retval] double *pdFramerate );
Returns the frame rate of the recording output pin as double.
Parameter:
| pdFrameRate | Pointer to a double that receives the frame rate. |
HRESULT put_Framerate( [in ] double dFramerate );
Sets the frame rate of the recording output pin as double. Must be greater than zero and small than 100.0.
Parameter:
| dFrameRate | Sets the frame rate as double. |
HRESULT Snapshot();
Takes a snaphot if the filter is in snapshot mode.
HRESULT StartRecording();
Starts the recording if the filter is in video recording mode.
HRESULT StopRecording();
Stops the recording if the filter is in video recording mode.
HRESULT StartTimeLapse();
Starts the time lapse if the filter is in time lapse mode.
HRESULT StopTimeLapse();
Stops the time lapse if the filter is in time lapse mode.
HRESULT IsRunning( [out, retval] int *piRunning );
Returns information about the recording state.
Parameter:
| piRunning | Pointer to an integer that receives the state. TRUE (1) signals that the recordings funtion is running. |
HRESULT get_TimeLapseInterval( [out, retval] double *pdInterval );
Returns the time lapse interval in seconds as double.
Parameter:
| pdInterval | Pointer to a double that receives the time lapse interval in seconds. |
HRESULT put_TimeLapseInterval( [in] double dInterval ); }
Sets the time lapse interval in seconds as double. Must not be greater than 0.040 (40ms = 25 fps).
Parameter:
| dInterval | The time lapse interval in seconds. |
Filter specific structures and enumerators
typedef enum _MV_TIMING_MODE
{
MV_USE_ORIGINAL_TIMESTAMPS=0,
MV_USE_CUSTOM_FRAMERATE,
MV_USE_DEFAULT_FRAMERATE
} MV_TIMING_MODE;
typedef enum _MV_RECORDING_MODE
{
MV_SNAPSHOTS=0,
MV_TIME_LAPSE,
MV_VIDEO_RECORDING
} MV_RECORDING_MODE;