class CVideoEncoderInfo : public CBase |
This class contains information about a video encoder hardware device and its capabilities. 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 encoder devices, and used by the MSL video client code.
Private Member Functions | |
---|---|
CVideoEncoderInfo(TUid, TVersion, TBool, TBool, const TSize &, TUint32, TUint32, TUint, TBool, TUint, TUint, TUint, TUint32, TBool, TBool) | |
void | ConstructL(const TDesC &, const TDesC &, const TArray< TUncompressedVideoFormat > &, const TArray< CCompressedVideoFormat * > &, const TArray< TPictureRateAndSize > &, const TDesC8 &, const TDesC8 &) |
CVideoEncoderInfo | ( | TUid | aUid, |
TVersion | aVersion, | ||
TBool | aAccelerated, | ||
TBool | aSupportsDirectCapture, | ||
const TSize & | aMaxPictureSize, | ||
TUint32 | aSupportedDataUnitTypes, | ||
TUint32 | aSupportedDataUnitEncapsulations, | ||
TUint | aMaxBitrateLayers, | ||
TBool | aSupportsSupplementalEnhancementInfo, | ||
TUint | aMaxUnequalErrorProtectionLevels, | ||
TUint | aMaxBitRate, | ||
TUint | aMaxInLayerScalabilitySteps, | ||
TUint32 | aSupportedPictureOptions, | ||
TBool | aSupportsPictureLoss, | ||
TBool | aSupportsSliceLoss | ||
) | [private] |
TUid aUid | |
TVersion aVersion | |
TBool aAccelerated | |
TBool aSupportsDirectCapture | |
const TSize & aMaxPictureSize | |
TUint32 aSupportedDataUnitTypes | |
TUint32 aSupportedDataUnitEncapsulations | |
TUint aMaxBitrateLayers | |
TBool aSupportsSupplementalEnhancementInfo | |
TUint aMaxUnequalErrorProtectionLevels | |
TUint aMaxBitRate | |
TUint aMaxInLayerScalabilitySteps | |
TUint32 aSupportedPictureOptions | |
TBool aSupportsPictureLoss | |
TBool aSupportsSliceLoss |
IMPORT_C TBool | Accelerated | ( | ) | const |
Returns whether the encoder is hardware-accelerated. Hardware-accelerated encoders can run on an application DSP or dedicated hardware. "True if the encoder is hardware-accelerated."
IMPORT_C const TDesC8 & | CodingStandardSpecificInfo | ( | ) | const |
Returns coding-standard specific information about the encoder. "Coding-standard specific information about the encoder. The data format is coding-standard specific, and defined separately. The reference is valid until the CVideoEncoderInfo object is destroyed."
void | ConstructL | ( | const TDesC & | aManufacturer, |
const TDesC & | aIdentifier, | |||
const TArray< TUncompressedVideoFormat > & | aSupportedInputFormats, | |||
const TArray< CCompressedVideoFormat * > & | aSupportedOutputFormats, | |||
const TArray< TPictureRateAndSize > & | aMaxPictureRates, | |||
const TDesC8 & | aCodingStandardSpecificInfo, | |||
const TDesC8 & | aImplementationSpecificInfo | |||
) | [private] |
const TDesC & aManufacturer | |
const TDesC & aIdentifier | |
const TArray< TUncompressedVideoFormat > & aSupportedInputFormats | |
const TArray< CCompressedVideoFormat * > & aSupportedOutputFormats | |
const TArray< TPictureRateAndSize > & aMaxPictureRates | |
const TDesC8 & aCodingStandardSpecificInfo | |
const TDesC8 & aImplementationSpecificInfo |
IMPORT_C const TDesC & | Identifier | ( | ) | const |
Returns the encoder hardware device manufacturer-specific identifier. The combination of the manufacturer and identifier uniquely identifies the plug-in. "The identifier. The reference is valid until the CVideoEncoderInfo object is destroyed."
IMPORT_C const TDesC8 & | ImplementationSpecificInfo | ( | ) | const |
Returns implementation-specific information about the encoder. "Implementation-specific information about the encoder. The data format is implementation-specific, and defined separately by the encoder supplier. The reference is valid until the CVideoEncoderInfo object is destroyed."
IMPORT_C const TDesC & | Manufacturer | ( | ) | const |
Returns the encoder hardware device manufacturer. "The manufacturer name. The reference is valid until the CVideoEncoderInfo object is destroyed."
IMPORT_C TUint | MaxBitrate | ( | ) | const |
Returns the maximum bit-rate supported by the encoder. "Maximum bit-rate supported, in bits per second. KMaxTUint32 can be used if the encoder has no bit-rate restrictions."
IMPORT_C TUint | MaxBitrateLayers | ( | ) | const |
Returns the maximum number of bit-rate scalability layers supported. "Maximum number of bit-rate scalability layers supported, one (1) if layered scalability is not supported."
IMPORT_C TUint | MaxInLayerScalabilitySteps | ( | ) | const |
Returns the maximum number of in-layer scalability steps supported. "Maximum number of in-layer scalability steps supported, one (1) if in-layer scalability is not supported."
IMPORT_C const RArray< TPictureRateAndSize > & | MaxPictureRates | ( | ) | const |
Returns the maximum picture size/rate combinations supported by the encoder. Video encoders can have different maximum picture rate limitations depending on the picture size used. "A reference to an array of picture size/rate combinations. The reference remains valid until this object is deleted."
IMPORT_C const TSize & | MaxPictureSize | ( | ) | const |
Returns the maximum picture size the encoder supports. "The maximum picture size supported. The reference is valid until the CVideoEncoderInfo object is destroyed."
IMPORT_C TUint | MaxUnequalErrorProtectionLevels | ( | ) | const |
Returns the maximum number of unequal error protection levels supported. "Maximum number of unequal error protection levels supported, one (1) if unequal error protection is not supported."
IMPORT_C CVideoEncoderInfo * | NewL | ( | TUid | aUid, |
const TDesC & | aManufacturer, | |||
const TDesC & | aIdentifier, | |||
TVersion | aVersion, | |||
TBool | aAccelerated, | |||
TBool | aSupportsDirectCapture, | |||
const TArray< TUncompressedVideoFormat > & | aSupportedInputFormats, | |||
const TArray< CCompressedVideoFormat * > & | aSupportedOutputFormats, | |||
const TSize & | aMaxPictureSize, | |||
TUint32 | aSupportedDataUnitTypes, | |||
TUint32 | aSupportedDataUnitEncapsulations, | |||
TUint | aMaxBitrateLayers, | |||
TBool | aSupportsSupplementalEnhancementInfo, | |||
TUint | aMaxUnequalErrorProtectionLevels, | |||
TUint | aMaxBitRate, | |||
const TArray< TPictureRateAndSize > & | aMaxPictureRates, | |||
TUint | aMaxInLayerScalabilitySteps, | |||
TUint32 | aSupportedPictureOptions, | |||
TBool | aSupportsPictureLoss, | |||
TBool | aSupportsSliceLoss, | |||
const TDesC8 & | aCodingStandardSpecificInfo, | |||
const TDesC8 & | aImplementationSpecificInfo | |||
) | [static] |
Creates and returns a new CVideoEncoderInfo object. All data passed in is copied on construction of the object.
A new CVideoEncoderInfo object.
leave
This method may leave with one of the system-wide error codes.
TUid aUid | The uid of the encoder. |
const TDesC & aManufacturer | The video encoder manufacturer. |
const TDesC & aIdentifier | The manufacturer-specific identifier for this encoder. |
TVersion aVersion | The version of this encoder. |
TBool aAccelerated | Whether this encoder is accelerated. |
TBool aSupportsDirectCapture | Whether this encoder supports direct capture. |
const TArray< TUncompressedVideoFormat > & aSupportedInputFormats | An array of the supported input formats. |
const TArray< CCompressedVideoFormat * > & aSupportedOutputFormats | An array of the supported output formats. |
const TSize & aMaxPictureSize | The maximum supported picture size. |
TUint32 aSupportedDataUnitTypes | The supported data unit types. |
TUint32 aSupportedDataUnitEncapsulations | The supported data unit encapsulations. |
TUint aMaxBitrateLayers | The maximum number of bitrate layers supported. |
TBool aSupportsSupplementalEnhancementInfo | Whether supplemental enhancement info is supported. |
TUint aMaxUnequalErrorProtectionLevels | The maximum unequal error protection level supported. |
TUint aMaxBitRate | The maximum bit rate supported. |
const TArray< TPictureRateAndSize > & aMaxPictureRates | An array of the maximum picture size/rates supported. |
TUint aMaxInLayerScalabilitySteps | The maximum in-layer scalability steps supported. |
TUint32 aSupportedPictureOptions | The picture options supported. |
TBool aSupportsPictureLoss | |
TBool aSupportsSliceLoss | |
const TDesC8 & aCodingStandardSpecificInfo | Coding standard specific info. |
const TDesC8 & aImplementationSpecificInfo | Implementation specific info. |
IMPORT_C TUint32 | SupportedDataUnitEncapsulations | ( | ) | const |
Returns the data unit encapsulation types that the encoder supports. "Supported data unit encapsulation types. The value is a binary OR of values from TVideoDataUnitEncapsulation."
IMPORT_C TUint32 | SupportedDataUnitTypes | ( | ) | const |
Returns the data unit types supported by the encoder. "Supported data unit types. The value is a binary OR of values from TVideoDataUnitType."
IMPORT_C const RArray< TUncompressedVideoFormat > & | SupportedInputFormats | ( | ) | const |
Returns the input formats that the encoder supports. "An RArray table of supported video formats (TUncompressedVideoFormat). The reference is valid until the CVideoEncoderInfo object is destroyed."
IMPORT_C const RPointerArray< CCompressedVideoFormat > & | SupportedOutputFormats | ( | ) | const |
Returns the output formats that the encoder supports. "An RArray table of supported video formats (CCompressedVideoFormat). The reference is valid until the CVideoEncoderInfo object is destroyed."
IMPORT_C TUint32 | SupportedPictureOptions | ( | ) | const |
Returns the input picture options that the encoder supports. "Supported input picture options, a bitwise OR of values from TVideoPicture::TVideoPictureOptions."
IMPORT_C TBool | SupportsDirectCapture | ( | ) | const |
Returns whether the encoder supports direct capture. Encoders supporting direct capture can get the input pictures directly from a camera, possibly using an efficient hardware-dependent data path. "True if the encoder supports direct capture."
IMPORT_C TBool | SupportsInputFormat | ( | const TUncompressedVideoFormat & | aFormat | ) | const |
Returns whether the encoder supports the given input format. "True if the encoder supports the given input format."
const TUncompressedVideoFormat & aFormat | "The format to check." |
IMPORT_C TBool | SupportsOutputFormat | ( | const CCompressedVideoFormat & | aFormat | ) | const |
Returns whether the encoder supports the given output format. "True if the encoder supports the given output format."
const CCompressedVideoFormat & aFormat | "The format to check." |
IMPORT_C TBool | SupportsPictureLoss | ( | ) | const |
Returns whether the encoder supports picture loss indications. If true, the encoder implements PictureLoss(), and recovers lost picture contents when it receives the indication. "True if the encoder supports picture loss indications."
IMPORT_C TBool | SupportsSliceLoss | ( | ) | const |
Returns whether the encoder supports slice loss indications. If true, the encoder implements SliceLoss(), and recovers lost or damaged macroblocks when it receives the indication. "True if the encoder supports slice loss indications."
IMPORT_C TBool | SupportsSupplementalEnhancementInfo | ( | ) | const |
Returns whether the encoder implements SendSupplementalInfoL(). If SendSupplementalInfoL() is implemented, the client can send supplemental enhancement information messages as binary strings using that method. If SendSupplementalInfoL() is not implemented, this is not possible, but the encoder can still generate and send coding standard or implementation specific supplemental enhancement information automatically. "True if the encoder supports supplemental enhancement information."
RArray< TPictureRateAndSize > | iMaxPictureRates | [private] |
RArray< TUncompressedVideoFormat > | iSupportedInputFormats | [private] |
RPointerArray< CCompressedVideoFormat > | iSupportedOutputFormats | [private] |