Component description
A component description record.
Overview
Describes a class of components by their attributes. Fields that are set to 0 are treated as “don’t care.”
struct ComponentDescription {
OSType componentType;
OSType componentSubType;
OSType componentManufacturer;
unsigned long componentFlags;
unsigned long componentFlagsMask;
};componentTypeA four-character code that identifies the type of component.
componentSubTypeA four-character code that identifies the subtype of the component. For example, the subtype of an image compressor component indicates the compression algorithm employed by the compressor. A value of
0matches any subtype.componentManufacturerA four-character code that identifies the manufacturer of the component. Components provided by Apple have a manufacturer value of
'appl'. A value of0matches any manufacturer.componentFlagsA 32-bit field that contains flags describing required component capabilities. Set the high-order 8 bits to
0. The low-order 24 bits are specific to each component type. These flags can be used to indicate the presence of features or capabilities in a given component.componentFlagsMaskA 32-bit field that indicates which flags in the
componentFlagsfield are relevant to this operation. For each flag in thecomponentFlagsfield that is to be considered as a search criterion, set the corresponding bit in this field to1. To ignore a flag, set the bit to0.
Movie importer component flags
canMovieImportInPlaceSet this bit if a movie import component must be able to create a movie from a file without having to write to a separate disk file. Examples include MPEG and AIFF import components.
movieImportSubTypeIsFileExtensionSet this bit if the component’s subtype is a file extension instead of a Macintosh file type. For example, if you require an import component that opens files with an extension of
.doc, set this flag and set your component subtype to'DOC '.canMovieImportFilesSet this bit if a movie import component must import files.