CImageDisplayFramework Class Reference
class CImageDisplayFramework : public CBase |
Private Member Functions |
---|
| CImageDisplayFramework(CImageDisplay &, MIclImageDisplayObserver &, RFs &) |
| ~CImageDisplayFramework() |
void | CallbackImageReady(const CFbsBitmap *, TUint, const TRect &, TInt) |
void | ClearFlag(TInt) |
CImageDisplayPlugin * | DataNewL(const TDesC8 &, const TUid, const TUid, const TUid) |
void | DeletePlugin() |
const TSize & | DestinationSizeInPixels() |
TDisplayMode
| DisplayMode() |
TInt
| ExtensionInterface(TUid, TAny *&) |
CImageDisplayPlugin * | FileHandleNewImplL(RFile &, const TUid, const TUid, const TUid) |
CImageDisplayPlugin * | FileNewImplL(const TDesC &, const TUid, const TUid, const TUid) |
CImageDisplayPlugin * | FindDisplayerNewL(const RImplInfoPtrArray &) |
TBool
| FlagSet(TInt) |
void | GetBitmap(const CFbsBitmap *&, const CFbsBitmap *&) |
TUint
| ImageStatus() |
void | ImageTypeGetDisplayerListL(RImplInfoPtrArray &, const TDesC8 &, const TUid, const TUid, const TUid) |
TBool
| MaintainAspectRatio() |
void | MimeTypeGetDisplayerListL(RImplInfoPtrArray &, const TDesC8 &) |
CImageDisplayPlugin * | NewImplL(const TDesC8 &) |
CImageDisplayFramework * | NewL(CImageDisplay &, MIclImageDisplayObserver &, RFs &) |
TInt
| NumFrames(TInt &) |
TUint
| Options() |
void | Pause() |
void | Play() |
const CImageDisplay::RImageSizeArray & | RecommendedImageSizes() |
void | Reset() |
void | ResetSourceRect() |
void | SetDisplayMode(TDisplayMode) |
void | SetFlag(TInt) |
TInt
| SetImageSource(const TMMSource &) |
TInt
| SetOptions(TUint) |
void | SetPluginUid(TUid) |
void | SetSizeInPixels(const TSize &, TBool) |
void | SetSourceImageType(TUid, TUid) |
void | SetSourceMimeType(const TDesC8 &) |
void | SetSourceRect(const TRect &) |
void | SetupL() |
const TDesC8 & | SourceData() |
const TDesC & | SourceDataId() |
ContentAccess::TIntent
| SourceDataIntent() |
RFile & | SourceFileHandle() |
const TDesC & | SourceFilename() |
const TUid | SourceImageSubType() |
const TUid | SourceImageType() |
const TDesC8 & | SourceMimeType() |
TBool
| SourceRect(TRect &) |
CImageDisplayPlugin::TImageSourceType
| SourceType() |
void | StopPlay() |
void | SuffixTypeGetDisplayerListL(RImplInfoPtrArray &, const TDesC &) |
TBool
| ValidBitmap() |
Constructor & Destructor Documentation
CImageDisplayFramework(CImageDisplay &, MIclImageDisplayObserver &, RFs &)
~CImageDisplayFramework()
~CImageDisplayFramework | ( | ) | [private] |
Member Functions Documentation
CallbackImageReady(const CFbsBitmap *, TUint, const TRect &, TInt)
ClearFlag(TInt)
void | ClearFlag | ( | TInt | aFlag | ) | [private, inline] |
DataNewL(const TDesC8 &, const TUid, const TUid, const TUid)
Creates a displayer for the image in the source buffer.
If the client supplies an image type (and sub-type, if applicable) or displayer UID, these will be used to try and select an appropriate plugin displayer. If not, then the selection will be done by matching the image header from the buffer. If it finds a displayer, it is created and then used to scan the beginning of the image buffer.
-
leave
- KErrUnderflow Not enough data in descriptor to identify which plugin displayer to use.
-
leave
- KEComErrNoInterfaceIdentified No plugin displayers were found.
-
panic
- EIllegalImageSubType No base type given for sub-type.
Parameters
const TDesC8 & aSourceData | The buffer containing the image to be displayed. |
const TUid aImageType | The image type of the image in the file (optional, defaults to KNullUid). |
const TUid aImageSubType | The image sub-type of the image in the file (optional, defaults to KNullUid). |
const TUid aPluginUid | The implementation UID for a specific codec (optional, defaults to KNullUid). If this option is selected the image type and image sub type for the displayer must be supplied. |
DeletePlugin()
void | DeletePlugin | ( | ) | [private, inline] |
DestinationSizeInPixels()
const TSize & | DestinationSizeInPixels | ( | ) | const [private] |
ExtensionInterface(TUid, TAny *&)
TInt
| ExtensionInterface | ( | TUid | aIFaceUid, |
| TAny *& | aIFacePtr |
| ) | [private] |
Gets a pointer to a plugin extension
-
panic
- EIllegalCallSequence No plugin loaded.
FileHandleNewImplL(RFile &, const TUid, const TUid, const TUid)
Create a displayer for the image using the given file handle. If the client supplies an image type (and sub-type, if applicable) or displayer uid, these will be used to try and select an appropriate plugin displayer. If not, then the selection will be done by matching the image header in the file. If it finds a displayer it creates it and then goes on to use that displayer to scan the beginning of the image file.
- leave
- KErrUnderflow Not enough data in file to identify which plugin displayer to use.
- leave
- KEComErrNoInterfaceIdentified No plugin displayers were found.
- panic
- EIllegalImageSubType No base type given for sub-type.
- panic
- EIllegalImageType No base type given for displayer implementation.
Parameters
RFile & aFileHandle | A reference to a file handle that contains an image data |
const TUid aImageType | The image type of the image in the file (optional, defaults to KNullUid). |
const TUid aImageSubType | The image sub-type of the image in the file (optional, defaults to KNullUid). |
const TUid aPluginUid | The implementation uid for a specific codec (optional, defaults to KNullUid). If this option is selected the image type and image sub type for the displayer must be supplied. |
FileNewImplL(const TDesC &, const TUid, const TUid, const TUid)
Create a displayer for the image in the named file. If the client supplies an image type (and sub-type, if applicable) or displayer uid, these will be used to try and select an appropriate plugin displayer. If not, then the selection will be done by matching the image header in the file. If it finds a displayer it creates it and then goes on to use that displayer to scan the beginning of the image file.
- leave
- KErrUnderflow Not enough data in file to identify which plugin displayer to use.
- leave
- KEComErrNoInterfaceIdentified No plugin displayers were found.
- panic
- EIllegalImageSubType No base type given for sub-type.
- panic
- EIllegalImageType No base type given for displayer implementation.
Parameters
const TDesC & aSourceFilename | The name of the file to be converted. |
const TUid aImageType | The image type of the image in the file (optional, defaults to KNullUid). |
const TUid aImageSubType | The image sub-type of the image in the file (optional, defaults to KNullUid). |
const TUid aPluginUid | The implementation uid for a specific codec (optional, defaults to KNullUid). If this option is selected the image type and image sub type for the displayer must be supplied. |
FindDisplayerNewL(const RImplInfoPtrArray &)
Scan a sorted list of displayers for the first one that can convert the image.
Parameters
const RImplInfoPtrArray & aDisplayerList | A list of displayers that support the image format. |
FlagSet(TInt)
TBool
| FlagSet | ( | TInt | aFlag | ) | const [private, inline] |
GetBitmap(const CFbsBitmap *&, const CFbsBitmap *&)
ImageStatus()
TUint
| ImageStatus | ( | ) | const [private] |
ImageTypeGetDisplayerListL(RImplInfoPtrArray &, const TDesC8 &, const TUid, const TUid, const TUid)
Create a list of displayers that support the specified image type.
Parameters
RImplInfoPtrArray & aDisplayerList | A list of displayers that support the specified image type. |
const TDesC8 & aImageHeader | The header of the image file. |
const TUid aImageType | The image base type. |
const TUid aImageSubType | The image sub type. |
const TUid aPluginUid | A specific displayer to convert the image. |
MaintainAspectRatio()
TBool
| MaintainAspectRatio | ( | ) | const [private] |
MimeTypeGetDisplayerListL(RImplInfoPtrArray &, const TDesC8 &)
Create a list of converts that support the specified MIME type.
Parameters
RImplInfoPtrArray & aDisplayerList | Create a list of converts that support the given MIME type. |
const TDesC8 & aMIMEType | The MIME type to convert. |
NewImplL(const TDesC8 &)
Create a display plugin for the image in the named file. The client supplies a MIME type which will be used to try and select an appropriate plugin Displayer. If it finds a Displayer it creates it and then goes on to use that displayer to scan the beginning of the image file.
- leave
- KEComErrNoInterfaceIdentified No plugin displayers were found.
Parameters
const TDesC8 & aMIMEType | The MIME type of the image in the file. |
NewL(CImageDisplay &, MIclImageDisplayObserver &, RFs &)
NumFrames(TInt &)
TInt
| NumFrames | ( | TInt & | aNumFrames | ) | const [private] |
Options()
TUint
| Options | ( | ) | const [private] |
ResetSourceRect()
void | ResetSourceRect | ( | ) | [private] |
SetDisplayMode(TDisplayMode)
SetFlag(TInt)
void | SetFlag | ( | TInt | aFlag | ) | [private, inline] |
SetImageSource(const TMMSource &)
SetPluginUid(TUid)
void | SetPluginUid | ( | TUid | aPluginUid | ) | [private] |
SetSizeInPixels(const TSize &, TBool)
void | SetSizeInPixels | ( | const TSize & | aDestinationSize, |
| TBool | aMaintainAspectRatio |
| ) | [private] |
Parameters
const TSize & aDestinationSize | |
TBool aMaintainAspectRatio | |
SetSourceImageType(TUid, TUid)
void | SetSourceImageType | ( | TUid | aImageType, |
| TUid | aImageSubType |
| ) | [private] |
SetSourceMimeType(const TDesC8 &)
void | SetSourceMimeType | ( | const TDesC8 & | aMIMEType | ) | [private] |
SetSourceRect(const TRect &)
void | SetSourceRect | ( | const TRect & | aRect | ) | [private] |
SourceData()
const TDesC8 & | SourceData | ( | ) | const [private] |
SourceDataId()
const TDesC & | SourceDataId | ( | ) | const [private, inline] |
SourceFileHandle()
RFile & | SourceFileHandle | ( | ) | const [private] |
SourceFilename()
const TDesC & | SourceFilename | ( | ) | const [private] |
SourceImageSubType()
const TUid | SourceImageSubType | ( | ) | const [private] |
SourceImageType()
const TUid | SourceImageType | ( | ) | const [private] |
SourceMimeType()
const TDesC8 & | SourceMimeType | ( | ) | const [private] |
SuffixTypeGetDisplayerListL(RImplInfoPtrArray &, const TDesC &)
Create a list of displayers that support the specified file extension.
Parameters
RImplInfoPtrArray & aDisplayerList | Create a list of displayers that support the given file extension. |
const TDesC & aFileName | The file name from which the file extension will be taken. |
ValidBitmap()
TBool
| ValidBitmap | ( | ) | const [private] |
Member Enumerations Documentation
Enum TFrameworkState
Enumerators
EStateOpened = 0 | |
EStateConfigured | |
EStatePluginLoaded | |
EStateProcessing | |
EStatePaused | |
Enum TImageDisplayInternalFlags
Enumerators
EFlagMaintainAspectRatio = 0x00000001 | |
EFlagSourceRectSet = 0x00000002 | |
Member Data Documentation
MIclImageDisplayObserver & iCallback
TSize
iDestinationSize
TSize
| iDestinationSize | [private] |
TDisplayMode
iDisplayMode
CImageDisplayPlugin * iPlugin
TImageParameterData
iSourceImage
TRect
iSourceRect
TRect
| iSourceRect | [private] |
enum CImageDisplayFramework::TFrameworkState iState
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.