The UMSImageReaderMClass metaclass is an Ultimedia Services Version 2 feature and does not apply to Ultimedia Services Version 1.2.1.
To learn more about the UMSImageReaderMClass class, see:
For introductory information, see MetaClass Objects.
This method returns an instantiated child of the UMSImageReader class that is capable of processing the file indicated by pathname. The particular child returned depends upon interaction with a UMSConfig object.
Error Codes |
---|
For certain Error Codes, more specific information can be obtained from the error_string parameter.
This method returns an instantiated child of the UMSImageReader class as determined by the alias parameter. The particular child returned depends upon interaction with a UMSConfig object.
Error Codes |
---|
For certain Error Codes, more specific information can be obtained from the error_string parameter.
The UMSImageReaderMClass_make_by_pathname method uses the Dectector.image stanza (shown below) of the UMS_config file to determine which detectors to run against the input file specified by the path name. When a detector returns success, the corresponding file_type_alias value is used to determine the specific Image Reader object to instantiate.
Detector.image: detection_module "d_PCDO" file_type_alias "PCDOverview" *NEXT: detection_module "d_PCDI" file_type_alias "PCDImagePac" *NEXT: detection_module "d_JPEG" file_type_alias "JPEG" *NEXT: detection_module "d_TIFF" file_type_alias "TIFF" *NEXT: detection_module "d_GIF" file_type_alias "GIF"
The image reader metaclass' make_by_pathname runs these detectors and returns the appropriate file_type_alias string to the application.
PCDOverview: CLASS_UMSImageReader "UMSPCDOImageReader" PCDImagePac: CLASS_UMSImageReader "UMSPCDIPImageReader" CLASS_UMSImageReaderMem "8000000" JPEG: CLASS_UMSImageReader "UMSJPEGImageReader"
When the image reader reconstructs image data from an Image Pac, it makes use of internal memory buffers. The CLASS_UMSimageReaderMem attribute specifies the maximum size of these memory buffers. The value of 8000000 allows for maximum performance in image reconstruction. However, this value cannot be appropriate for systems with limited real memory. In such cases, the attribute can specify a smaller value. (Note, however, that a smaller value can result in reduced performance of image reconstruction.) To specify the minimum acceptable buffer, the attribute should be set to the value 0. This attribute applies only to the PCDImagePac stanza.
For introductory information, see MetaClass Objects.