Type | Name | Description |
VARIANT_BOOL | IsCompressedStream | A read-only property that indicates whether the stream is compressed. A value of VARIANT_TRUE indicates that the stream is either MPEG-2, MPEG-4, H.264, or MPEG-TS. Otherwise, the value is VARIANT_FALSE. |
LONG_PTR | get_DicomDSPtr | Retrieves the currently initialized DICOM dataset. Typecast this pointer to LDicomDS before using it. Do not make changes to the dataset after the filter is connected, since this might cause problems with the LEAD DICOM Reader. Use this property, instead of get_DicomDS, to obtain the dataset. It is compatible with both 32 and 64 bit platforms. |
This is the interface for the LEAD DICOM Reader.
newVal | Pointer to the user dataset. | |
bCopy | A value that specifies whether the filter should make a copy of the passed dataset for future usage. Possible values are: | |
Value | Meaning | |
TRUE | Make a copy of the dataset (allocating memory for it, and maintaining responsibility for freeing this memory). | |
FALSE | The user will take care of the pointer life (and ensure its availability for the Writer as long as it is needed). |
Sets the DICOM dataset inside the LEAD DICOM Reader filter. This function should be used instead of SetDicomDS for compatibility on both 32 bit and 64 bit platforms. Before using this function you need to first create and initialize a dataset using the raster toolkit and LDicomDS::InitDS and either LDicomDS::LoadDS or LDicomDS::LoadDSMemory. Use this method, instead of SetDicomDS, to assign the dataset. It is compatible with both 32 and 64 bit platforms. This function fails if:
The LEAD DICOM Reader is already connected.
The dataset contains no pixel data.
The pixel data could not be read properly.
Call this method with pDS set to NULL:
To stop the LEAD DICOM Reader from using the dataset.
Before freeing the dataset's memory.
S_OK |
SUCCESS |
< 0 |
An error occurred. |
pzFileName |
Pointer to an OLECHAR string that contains the input DICOM file |
Sets the input file name. Should you set the InputFileName to NULL, be sure to set an input dataset using SetDicomDS because otherwise you will have no input data and the filter will fail to connect. The function fails under the following conditions:
If the filter output pin is already connected.
If a user dataset is initialized.
If the input file contains no pixel data.
If the input file is not a valid DICOM file.
If the length of the input file name exceeds the maximum length allowed for a file name (260 characters)
The default value is ". Note that the DICOM file may contain MPEG2 or H.264/AVCdata, which would require that a MPEG-2 video decoder be installed before the file could be played.
S_OK |
SUCCESS |
< 0 |
An error occurred. |
ppszFileName |
Address of a pointer to the returned DICOM input file name. |
Retrieves the input file name. This function allocates memory for the string. You are responsible for freeing the memory by using SysFreeString().
S_OK |
SUCCESS |
< 0 |
An error occurred. |
pbConnected | Pointer to a variable that will receive the connection state of the output pin. Possible values are: | |
Value | Meaning | |
TRUE | The output pin is connected. | |
FALSE | The output pin is not connected. |
Gets a value that indicates whether the output pin is connected.
S_OK |
SUCCESS |
< 0 |
An error occurred. |
pDS |
Address of a pointer to the returned dataset. |
Retrieves the currently initialized DICOM dataset. Typecast this pointer to LDicomDS before using it. Do not make changes to the dataset after the filter is connected, since this might cause problems with the LEAD DICOM Reader. This function is only compatible with 32 bit platforms. Use get_DicomDSPtr instead.
S_OK |
SUCCESS |
< 0 |
An error occurred. |
lFrameTime |
New frame time value in milliseconds. |
Sets the frame time (the time each frame is displayed while playing the PixelData), in milliseconds. Possible values range between 20 and 1000. The Frame Control feature must be enabled in order to control the frame time (and thus the play speed). If frame time is not enabled, the stream plays with the frame time set to 40 milliseconds (25 frames per second).
S_OK |
SUCCESS |
< 0 |
An error occurred. |
lFrameTime |
Pointer to a variable that will receive the current frame time. |
Retrieves the frame time (the time each frame is displayed while playing the PixelData), in milliseconds. The default value is 40.
S_OK |
SUCCESS |
< 0 |
An error occurred. |
bEnableFrameControl | A Boolean value that enables or disables frame control. Possible values are: | |
Value | Meaning | |
TRUE | Enable frame control. | |
FALSE | Disable frame control. |
Sets the frame control using put_FrameTime or set through the interface by using the property page.
S_OK |
SUCCESS |
< 0 |
An error occurred. |
bEnableFrameControl | Pointer to a variable that indicates whether frame control is enabled. Possible values are: | |
Value | Meaning | |
TRUE | Frame control is enabled. | |
FALSE | Frame control is disabled. |
Retrieves a value that indicates whether frame control is enabled. The default values is FALSE.
S_OK |
SUCCESS |
< 0 |
An error occurred. |
bEnableFrameDropping | A Boolean variable that contains a value that indicates whether frames can be dropped. Possible values are: | |
Value | Meaning | |
TRUE | Frames can be dropped. | |
FALSE | Keep every frame. |
Use this function to set the filter to drop frames when necessary in order to maintain the frame rate. To enable frame dropping set bEnableFrameDropping to TRUE. To keep every frame set bEnableFrameDropping to FALSE.
Always returns S_OK.
pbEnableFrameDropping | pointer to a Boolean value that indicates whether the frame dropping feature is currently set to drop frames. | |
Value | Meaning | |
TRUE | The filter is currently set to drop frames when necessary to maintain the frame time. | |
FALSE | The filter is set to keep every frame. |
Gets a value that indicates whether the filter is currently set to drop frames when necessary to maintain the frame time. The default value is FALSE.
S_OK |
SUCCESS |
E_INVALIDARG |
The input pointer is invalid. |
newVal | Pointer to the user dataset. | |
bCopy | A value that specifies whether the filter should make a copy of the passed dataset for future usage. Possible values are: | |
Value | Meaning | |
TRUE | Make a copy of the dataset (allocating memory for it, and maintaining responsibility for freeing this memory). | |
FALSE | The user will take care of the pointer life (and ensure its availability for the Writer as long as it is needed). |
Sets the DICOM dataset inside the LEAD DICOM Reader filter. Before using this function you need to first create and initialize a dataset using the raster toolkit and LDicomDS::InitDS and either LDicomDS::LoadDS or LDicomDS::LoadDSMemory. This function is only compatible with 32 bit platforms. Use SetDicomDSPtr instead. This function fails if:
The LEAD DICOM Reader is already connected.
The dataset contains no pixel data.
The pixel data could not be read properly.
Call this method with pDS set to NULL:
To stop the LEAD DICOM Reader from using the dataset.
Before freeing the dataset's memory.
S_OK |
SUCCESS |
< 0 |
An error occurred. |
Resets the LEAD DICOM Reader option values to the default values, as follows:
InputFileName = "
FrameControl = FALSE
FrameDropping = FALSE
FrameTime = 40
Always returns S_OK.
This filter is included as part of the following modules:
LEADTOOLS Medical Multimedia Module