CVideoDecoderInfo Class Reference
class CVideoDecoderInfo : public CBase
|
This class contains information about a single video decoder. 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 video decoder hardware devices, and used by the MSL video client code.
Public Member Functions
|
|
~CVideoDecoderInfo
()
|
IMPORT_C
TBool
|
Accelerated
()
|
IMPORT_C void
|
AddSupportedScreenL
(
TInt
)
|
IMPORT_C const
TDesC8
&
|
CodingStandardSpecificInfo
()
|
IMPORT_C void
|
GetSupportedScreensL
(
RArray
<
TInt
> &)
|
IMPORT_C const
TDesC
&
|
Identifier
()
|
IMPORT_C const
TDesC8
&
|
ImplementationSpecificInfo
()
|
IMPORT_C const
TDesC
&
|
Manufacturer
()
|
IMPORT_C
TUint
|
MaxBitrate
()
|
IMPORT_C const
RArray
<
TPictureRateAndSize
> &
|
MaxPictureRates
()
|
IMPORT_C const
TSize
&
|
MaxPictureSize
()
|
IMPORT_C
CVideoDecoderInfo
*
|
NewL
(
TUid
, const
TDesC
&, const
TDesC
&,
TVersion
, const
TArray
<
CCompressedVideoFormat
* > &,
TBool
,
TBool
, const
TSize
&,
TUint
, const
TArray
<
TPictureRateAndSize
> &,
TBool
,
TBool
, const
TDesC8
&, const
TDesC8
&)
|
IMPORT_C void
|
SetSupportsContentProtected
(const
TBool
)
|
IMPORT_C const
RPointerArray
<
CCompressedVideoFormat
> &
|
SupportedFormats
()
|
IMPORT_C
TBool
|
SupportsContentProtected
()
|
IMPORT_C
TBool
|
SupportsDirectDisplay
()
|
IMPORT_C
TBool
|
SupportsFormat
(const
CCompressedVideoFormat
&)
|
IMPORT_C
TBool
|
SupportsPictureLoss
()
|
IMPORT_C
TBool
|
SupportsSliceLoss
()
|
IMPORT_C
TUid
|
Uid
()
|
IMPORT_C
TVersion
|
Version
()
|
Private Member Functions
|
|
CVideoDecoderInfo
(
TUid
,
TVersion
,
TBool
,
TBool
, const
TSize
&,
TUint
,
TBool
,
TBool
)
|
void
|
ConstructL
(const
TDesC
&, const
TDesC
&, const
TArray
<
CCompressedVideoFormat
* > &, const
TArray
<
TPictureRateAndSize
> &, const
TDesC8
&, const
TDesC8
&)
|
Constructor & Destructor Documentation
CVideoDecoderInfo(TUid, TVersion, TBool, TBool, const TSize &, TUint, TBool, TBool)
CVideoDecoderInfo
|
(
|
TUid
|
aUid,
|
|
TVersion
|
aVersion,
|
|
TBool
|
aAccelerated,
|
|
TBool
|
aSupportsDirectDisplay,
|
|
const
TSize
&
|
aMaxPictureSize,
|
|
TUint
|
aMaxBitrate,
|
|
TBool
|
aSupportsPictureLoss,
|
|
TBool
|
aSupportsSliceLoss
|
|
)
|
[private]
|
~CVideoDecoderInfo()
IMPORT_C
|
~CVideoDecoderInfo
|
(
|
)
|
|
Member Functions Documentation
Accelerated()
IMPORT_C
TBool
|
Accelerated
|
(
|
)
|
const
|
Returns whether the decoder is hardware-accelerated. A hardware-accelerated decoder can run on an application DSP or dedicated hardware.
AddSupportedScreenL(TInt)
IMPORT_C void
|
AddSupportedScreenL
|
(
|
TInt
|
aScreenNo
|
)
|
|
Adds the screen number into the list of screens supported by the decoder.
-
leave
-
"KErrNoMemory when there is no memory to expand the list of supported screens.
KErrNotSupported if the secondary screen display is not supported in Multimedia Framework."
CodingStandardSpecificInfo()
IMPORT_C const
TDesC8
&
|
CodingStandardSpecificInfo
|
(
|
)
|
const
|
Returns coding-standard specific information about the decoder.
ConstructL(const TDesC &, const TDesC &, const TArray< CCompressedVideoFormat * > &, const TArray< TPictureRateAndSize > &, const TDesC8 &, const TDesC8 &)
GetSupportedScreensL(RArray< TInt > &)
IMPORT_C void
|
GetSupportedScreensL
|
(
|
RArray
<
TInt
> &
|
aSupportedScreens
|
)
|
const
|
Lists the screens supported by the decoder.
-
leave
-
"KErrNotSupported if the secondary screen display is not supported in Multimedia Framework.
KErrNoMemory when there is no memory to expand the list."
Parameters
RArray
<
TInt
> & aSupportedScreens
|
"An array to retrieve the list of supported screens. This method resets the array before adding elements to it. The array must be created and destroyed by the caller."
|
Identifier()
IMPORT_C const
TDesC
&
|
Identifier
|
(
|
)
|
const
|
Returns the codec device manufacturer-specific identifier. The combination of the manufacturer and identifier uniquely identifies the hardware device.
ImplementationSpecificInfo()
IMPORT_C const
TDesC8
&
|
ImplementationSpecificInfo
|
(
|
)
|
const
|
Returns implementation-specific information about the decoder.
Manufacturer()
IMPORT_C const
TDesC
&
|
Manufacturer
|
(
|
)
|
const
|
Returns the codec device manufacturer.
MaxBitrate()
IMPORT_C
TUint
|
MaxBitrate
|
(
|
)
|
const
|
Returns the maximum bit-rate supported by the decoder.
Note that if the decoder reports that it supports a certain profile and level, then it shall support all bitstreams corresponding to that profile/level. This method can be used to specify capabilities that are beyond the standard levels (for example some MPEG-4 bitstreams are encoded with bit rates that are higher than those specified by the profile/level of the bitstream).
MaxPictureRates()
Returns the maximum picture size/rate combinations supported by the decoder.
Video decoders can have different maximum picture rate limitations depending on the picture size used. Note that if the decoder reports that it supports a certain profile and level, then it shall support all bitstreams corresponding to that profile/level. This method can be used to specify capabilities that are beyond the standard levels (for example some MPEG-4 bitstreams are encoded with picture rates that are beyond those specified by the profile/level of the bitstream).
MaxPictureSize()
IMPORT_C const
TSize
&
|
MaxPictureSize
|
(
|
)
|
const
|
Returns the maximum picture size the decoder supports.
Note that if the decoder reports that it supports a certain profile and level, then it shall support all bitstreams corresponding to that profile/level. This method can be used to specify capabilities that are beyond the standard levels (for example some MPEG-4 bitstreams are encoded with picture sizes that are larger than those specified by the profile/level of the bitstream).
NewL(TUid, const TDesC &, const TDesC &, TVersion, const TArray< CCompressedVideoFormat * > &, TBool, TBool, const TSize &, TUint, const TArray< TPictureRateAndSize > &, TBool, TBool, const TDesC8 &, const TDesC8 &)
IMPORT_C
CVideoDecoderInfo
*
|
NewL
|
(
|
TUid
|
aUid,
|
|
const
TDesC
&
|
aManufacturer,
|
|
const
TDesC
&
|
aIdentifier,
|
|
TVersion
|
aVersion,
|
|
const
TArray
<
CCompressedVideoFormat
* > &
|
aSupportedFormats,
|
|
TBool
|
aAccelerated,
|
|
TBool
|
aSupportsDirectDisplay,
|
|
const
TSize
&
|
aMaxPictureSize,
|
|
TUint
|
aMaxBitrate,
|
|
const
TArray
<
TPictureRateAndSize
> &
|
aMaxPictureRates,
|
|
TBool
|
aSupportsPictureLoss,
|
|
TBool
|
aSupportsSliceLoss,
|
|
const
TDesC8
&
|
aCodingStandardSpecificInfo =
KNullDesC8
,
|
|
const
TDesC8
&
|
aImplementationSpecificInfo =
KNullDesC8
|
|
)
|
[static]
|
Creates and returns a new
CVideoDecoderInfo
object.
-
leave
-
"This method may leave with one of the system-wide error codes."
Parameters
TUid
aUid
|
"The uid of the decoder."
|
const
TDesC
& aManufacturer
|
"The video decoder manufacturer."
|
const
TDesC
& aIdentifier
|
"The manufacturer-specific identifier for this video decoder."
|
TVersion
aVersion
|
"The version of this video decoder."
|
const
TArray
<
CCompressedVideoFormat
* > & aSupportedFormats
|
"An array of the formats supported by the decoder. A copy will be taken of the array and the referenced CCompressedVideoFormat objects"
@param "aAccelerated" "Whether this decoder is accelerated or not."
@param "aSupportsDirectDisplay" "Whether this decoder supports direct display or not."
@param "aMaxPictureSize" "The maximum picture size supported by the decoder."
@param "aMaxBitrate" "The maximum bit rate supported by the decoder. Use KMaxTUint32 if there are no bit-rate restrictions."
@param "aMaxPictureRates" "An array of the maximum picture size/rate combinations supported by the decoder."
@param "aSupportsPictureLoss" "Whether the decoder supports picture loss indications."
@param "aSupportsSliceLoss" "Whether the decoder supports slice loss indications."
@param "aCodingStandardSpecificInfo" "Coding-standard specific information about the decoder."
@param "aImplementationSpecificInfo" "Implementation-specific information about the decoder."
|
TBool
aAccelerated
|
|
TBool
aSupportsDirectDisplay
|
|
const
TSize
& aMaxPictureSize
|
|
TUint
aMaxBitrate
|
|
const
TArray
<
TPictureRateAndSize
> & aMaxPictureRates
|
|
TBool
aSupportsPictureLoss
|
|
TBool
aSupportsSliceLoss
|
|
const
TDesC8
& aCodingStandardSpecificInfo =
KNullDesC8
|
|
const
TDesC8
& aImplementationSpecificInfo =
KNullDesC8
|
|
SetSupportsContentProtected(const TBool)
IMPORT_C void
|
SetSupportsContentProtected
|
(
|
const
TBool
|
aSetting
|
)
|
|
Sets a flag indicating whether the Decoder supports per picture content protection. E.g. Where content protection within a video stream can alter.
Parameters
const
TBool
aSetting
|
"Set to TRUE to indicate decoder supports content protection. TVideoPicture::TVideoPictureOptions::EContentProtected TVideoInputBuffer::TVideoBufferOptions::EContentProtected
|
SupportedFormats()
Lists the video formats, including submodes, supported by the decoder.
SupportsContentProtected()
IMPORT_C
TBool
|
SupportsContentProtected
|
(
|
)
|
const
|
Returns whether the Decoder supports per picture content protection. E.g. Where content protection within a video stream can alter.
SupportsDirectDisplay()
IMPORT_C
TBool
|
SupportsDirectDisplay
|
(
|
)
|
const
|
Returns whether the hardware device supports output directly to the screen. Output to memory buffers is always supported.
SupportsFormat(const CCompressedVideoFormat &)
Checks if the decoder supports the given format.
Parameters
const
CCompressedVideoFormat
& aFormat
|
"The format to check. The reference is not used after the method returns."
|
SupportsPictureLoss()
IMPORT_C
TBool
|
SupportsPictureLoss
|
(
|
)
|
const
|
Returns whether the decoder supports picture loss indications. If true, the decoder indicates lost pictures by calling MdvpoPictureLoss().
SupportsSliceLoss()
IMPORT_C
TBool
|
SupportsSliceLoss
|
(
|
)
|
const
|
Returns whether the decoder supports slice loss indications. If true, the decoder indicates lost macroblocks by calling MdvpoSliceLoss().
Uid()
IMPORT_C
TUid
|
Uid
|
(
|
)
|
const
|
Version()
Returns the decoder version.
Member Data Documentation
TBool
iAccelerated
TBool
|
iAccelerated
|
[private]
|
HBufC8 * iCodingStandardSpecificInfo
HBufC8
*
|
iCodingStandardSpecificInfo
|
[private]
|
HBufC * iIdentifier
HBufC
*
|
iIdentifier
|
[private]
|
HBufC8 * iImplementationSpecificInfo
HBufC8
*
|
iImplementationSpecificInfo
|
[private]
|
HBufC * iManufacturer
HBufC
*
|
iManufacturer
|
[private]
|
TUint
iMaxBitrate
TUint
|
iMaxBitrate
|
[private]
|
RArray< TPictureRateAndSize > iMaxPictureRates
TSize
iMaxPictureSize
TSize
|
iMaxPictureSize
|
[private]
|
RPointerArray< CCompressedVideoFormat > iSupportedFormats
RArray< TInt > iSupportedScreens
TBool
iSupportsContentProtected
TBool
|
iSupportsContentProtected
|
[private]
|
TBool
iSupportsDirectDisplay
TBool
|
iSupportsDirectDisplay
|
[private]
|
TBool
iSupportsPictureLoss
TBool
|
iSupportsPictureLoss
|
[private]
|
TBool
iSupportsSliceLoss
TBool
|
iSupportsSliceLoss
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.