class CPreProcessorInfo : public CBase |
This class contains information about the pre-processing capabilities that an encoder or a pre-processor hardware has. Although it mainly contains static data, it is defined as a complete CBase-derived class since the data is relatively complex and proper memory management is necessary.
The objects are created by the pre-processor or encoder devices, and used by the MSL video client code.
Private Member Functions | |
---|---|
CPreProcessorInfo(TUid, TVersion, TBool, TBool, TBool, TBool, const TYuvToYuvCapabilities &, TUint32, TUint32) | |
void | ConstructL(const TDesC &, const TDesC &, const TArray< TUncompressedVideoFormat > &, const TArray< TUncompressedVideoFormat > &, const TArray< TUint32 > &, const TArray< TScaleFactor > &, const TDesC8 &) |
CPreProcessorInfo | ( | TUid | aUid, |
TVersion | aVersion, | ||
TBool | aAccelerated, | ||
TBool | aSupportsDirectCapture, | ||
TBool | aSupportsArbitraryScaling, | ||
TBool | aSupportsAntiAliasedScaling, | ||
const TYuvToYuvCapabilities & | aYuvToYuvCapabilities, | ||
TUint32 | aSupportedRgbRanges, | ||
TUint32 | aSupportedRotations | ||
) | [private] |
IMPORT_C TBool | Accelerated | ( | ) | const |
Returns whether the plug-in is hardware-accelerated. Hardware-accelerated pre-processors can run on an application DSP or dedicated hardware. "True if the pre-processor is hardware-accelerated."
void | ConstructL | ( | const TDesC & | aManufacturer, |
const TDesC & | aIdentifier, | |||
const TArray< TUncompressedVideoFormat > & | aInputFormats, | |||
const TArray< TUncompressedVideoFormat > & | aOutputFormats, | |||
const TArray< TUint32 > & | aSupportedCombinations, | |||
const TArray< TScaleFactor > & | aSupportedScaleFactors, | |||
const TDesC8 & | aImplementationSpecificInfo | |||
) | [private] |
const TDesC & aManufacturer | |
const TDesC & aIdentifier | |
const TArray< TUncompressedVideoFormat > & aInputFormats | |
const TArray< TUncompressedVideoFormat > & aOutputFormats | |
const TArray< TUint32 > & aSupportedCombinations | |
const TArray< TScaleFactor > & aSupportedScaleFactors | |
const TDesC8 & aImplementationSpecificInfo |
IMPORT_C const TDesC & | Identifier | ( | ) | const |
Returns the hardware device manufacturer-specific identifier. The combination of the manufacturer and identifier uniquely identifies the plug-in. "The hardware device identifier. The reference is valid until this object is destroyed."
IMPORT_C const TDesC8 & | ImplementationSpecificInfo | ( | ) | const |
Returns implementation-specific information about the pre-processor. "Implementation- specific information about the pre-processor. The data format is implementation-specific, and defined separately by the pre-processor supplier. The reference is valid until the CPreProcessorInfo object is destroyed."
IMPORT_C const TDesC & | Manufacturer | ( | ) | const |
Returns the hardware device manufacturer. "The hardware device manufacturer. The reference is valid until this is destroyed."
IMPORT_C CPreProcessorInfo * | NewL | ( | TUid | aUid, |
const TDesC & | aManufacturer, | |||
const TDesC & | aIdentifier, | |||
TVersion | aVersion, | |||
TBool | aAccelerated, | |||
TBool | aSupportsDirectCapture, | |||
const TArray< TUncompressedVideoFormat > & | aInputFormats, | |||
const TArray< TUncompressedVideoFormat > & | aOutputFormats, | |||
const TArray< TUint32 > & | aSupportedCombinations, | |||
TBool | aSupportsArbitraryScaling, | |||
TBool | aSupportsAntiAliasedScaling, | |||
const TArray< TScaleFactor > & | aSupportedScaleFactors, | |||
const TYuvToYuvCapabilities & | aYuvToYuvCapabilities, | |||
TUint32 | aSupportedRgbRanges, | |||
TUint32 | aSupportedRotations, | |||
const TDesC8 & | aImplementationSpecificInfo | |||
) | [static] |
Creates and returns a new CPreProcessorInfo object. All data passed into this method is copied. leave
"This method may leave with one of the system-wide error codes.
TUid aUid | "The uid of the pre-processor." |
const TDesC & aManufacturer | "The manufacturer of the pre-processor." |
const TDesC & aIdentifier | "The manufacturer-specific identifier of the pre-processor." |
TVersion aVersion | "The version of the pre-processor." |
TBool aAccelerated | "Whether the pre-processor is hw accelerated or not." |
TBool aSupportsDirectCapture | "Whether the pre-processor supports direct capture." |
const TArray< TUncompressedVideoFormat > & aInputFormats | "An array of the supported input formats." |
const TArray< TUncompressedVideoFormat > & aOutputFormats | "An array of the supported output formats." |
const TArray< TUint32 > & aSupportedCombinations | "An array of the supported combinations." |
TBool aSupportsArbitraryScaling | "Whether the pre-processor supports arbitrary scaling." |
TBool aSupportsAntiAliasedScaling | "Whether the pre-processor supports anti-alias filtering on scaling."" @param "aSupportedScaleFactors" "An array of the supported scale factors if arbitrary scaling isn't suported" @param "aYuvToYuvCapabilities" "The yuv to yuv conversion capabilities of the pre-processor." @param "aSupportedRgbRanges" "The supported rgb ranges." @param "aSupportedRotations" "The supported rotations." @param "aImplementationSpecificInfo" "Implementation-specific information." @return"The newly created CPreProcessorInfo object." |
const TArray< TScaleFactor > & aSupportedScaleFactors | |
const TYuvToYuvCapabilities & aYuvToYuvCapabilities | |
TUint32 aSupportedRgbRanges | |
TUint32 aSupportedRotations | |
const TDesC8 & aImplementationSpecificInfo |
IMPORT_C const RArray< TUint32 > & | SupportedCombinations | ( | ) | const |
Lists all supported pre-processing combinations. "An RArray table of pre-processing combinations. Each value is a bitwise OR of values from TPrePostProcessType. The reference is valid until the CPreProcessorInfo object is destroyed."
IMPORT_C const RArray< TUncompressedVideoFormat > & | SupportedInputFormats | ( | ) | const |
Returns the input formats that the pre-processor supports. "An RArray table of supported video formats (TUncompressedVideoFormat). The reference is valid until the CPreProcessorInfo object is destroyed."
IMPORT_C const RArray< TUncompressedVideoFormat > & | SupportedOutputFormats | ( | ) | const |
Returns the output formats that the pre-processor supports. "An RArray table of supported video formats (TUncompressedVideoFormat). The reference is valid until the CPreProcessorInfo object is destroyed."
IMPORT_C TUint32 | SupportedRgbRanges | ( | ) | const |
Returns RGB value ranges the hardware device supports for RGB to YUV conversion. "The supported RGB ranges as a bitwise OR of TRgbRange values."
IMPORT_C TUint32 | SupportedRotations | ( | ) | const |
Returns the rotation types the plug-in supports. "The supported rotation types as a bitwise OR of TRotationType values. If the pre-processor does not support rotation, the return value is zero."
IMPORT_C const RArray< TScaleFactor > & | SupportedScaleFactors | ( | ) | const |
Returns the scaling factors the plug-in supports. If the plug-in supports arbitrary scaling the list is empty - use SupportsArbitraryScaling() first. "An RArray list of supported scale factors (TScaleFactor). The reference is valid until the CPreProcessorInfo object is destroyed. If the pre-processor supports arbitrary scaling or no scaling at all, the list is empty."
IMPORT_C TBool | SupportsAntiAliasedScaling | ( | ) | const |
Returns whether the hardware device supports anti-aliasing filtering for scaling. "True if anti-aliasing filtering is supported."
IMPORT_C TBool | SupportsArbitraryScaling | ( | ) | const |
Returns whether the pre-processor supports arbitrary scaling. "True if arbitrary scaling is supported. If arbitrary scaling is not supported, some specific scale factors can still be available."
IMPORT_C TBool | SupportsCombination | ( | TUint32 | aCombination | ) | const |
Returns whether the pre-processor supports the given pre-processing combination. "True if the pre-processing combination is supported."
TUint32 aCombination | "Pre-processing combination, a bitwise OR of values from TPrePostProcessType." |
IMPORT_C TBool | SupportsDirectCapture | ( | ) | const |
Returns whether the hardware device supports direct capture. Pre-processors supporting direct capture can get the input pictures directly from a camera, possibly using an efficient hardware-dependent data path. "True if the pre-processor supports direct capture."
IMPORT_C TBool | SupportsInputFormat | ( | const TUncompressedVideoFormat & | aFormat | ) | const |
Returns whether the pre-processor supports the given input format. "True if the pre-processor supports the given input format."
const TUncompressedVideoFormat & aFormat | "The format to be checked." |
IMPORT_C TBool | SupportsOutputFormat | ( | const TUncompressedVideoFormat & | aFormat | ) | const |
Returns whether the pre-processor supports the given output format. "True if the pre-processor supports the given input format."
const TUncompressedVideoFormat & aFormat | "The format to be checked." |
IMPORT_C TVersion | Version | ( | ) | const |
Returns the pre-processor version. "Pre-processor version."
IMPORT_C const TYuvToYuvCapabilities & | YuvToYuvCapabilities | ( | ) | const |
Returns the YUV to YUV conversion capabilities for the pre-processor. "The conversion capabilities, as a TYuvToYuvCapabilities structure. The reference is valid until the CPreProcessorInfo object is destroyed."
RArray< TUncompressedVideoFormat > | iInputFormats | [private] |
RArray< TUncompressedVideoFormat > | iOutputFormats | [private] |