TImageConvStreamedEncode Class Reference
#include
<icl/imageconversionextension.h>
class TImageConvStreamedEncode |
Public Member Functions |
---|
IMPORT_C void | AddBlocks(TRequestStatus &, const CImageFrame &, const TInt &) |
IMPORT_C void | AppendBlocks(TRequestStatus &, const CImageFrame &, TInt) |
IMPORT_C void | Complete(TRequestStatus &) |
IMPORT_C void | GetCapabilities(TUid, TEncodeStreamCaps &) |
IMPORT_C void | GetSupportedFormatsL(RArray< TUid > &, TUid &) |
IMPORT_C void | InitFrameL(TUid, TInt, const TSize &, const TSize &, TEncodeStreamCaps::TNavigation, const CFrameImageData *) |
Member Function Documentation
AddBlocks ( TRequestStatus &, const CImageFrame &, const TInt & )
Add blocks to the stream at a random position.
Parameter | Description | aStatus | request status |
aBlocks | wraps a memory buffer containing the pixel data to be added to the stream |
aSeqPosition | position of block in stream starting at 0 |
AppendBlocks ( TRequestStatus &, const CImageFrame &, TInt )
Append blocks to the stream.
Parameter | Description | aStatus | request status |
aBlocks | wraps a memory buffer containing the pixel data to be added to the stream |
aNumBlocksToAdd | number of blocks of size TEncodeStreamCaps::MinBlockSizeInPixels to add to the stream |
Complete ( TRequestStatus & )
Signal completion of writing the stream
Parameter | Description | aStatus | request status |
GetCapabilities ( TUid, TEncodeStreamCaps & )
Returns the capabilities of the codec plugin for a specific format.
Parameter | Description | aFormat | The format. |
aCaps | The capabilities for the format given. |
GetSupportedFormatsL ( RArray< TUid > &, TUid & )
IMPORT_C void | GetSupportedFormatsL | ( | RArray< TUid > & | aFormats, |
| TUid & | aOptimalFormat |
| ) | const |
Returns a list of supported formats and the optimal format to be used.
See also: imageframeconst.h for a list of format uids.
Parameter | Description | aFormats | Returns an array of format uids |
aOptimalFormat | The 'best' uid to use. |
InitFrameL ( TUid, TInt, const TSize &, const TSize &, TEncodeStreamCaps::TNavigation, const CFrameImageData * )
Initialise the stream.
See also: TJpegImageData
-
leave
- System wide error if for example the format is not supported.
Note:
must call InitFrameL before AppendBlocks or AddBlocks. Failure to do so completes request with KErrNotReady
can either specify format through aFormat or aImageFrameData. Conflicts cause a leave with KErrArgument.
Parameter | Description | aFormat | the format to use |
aFrameNumber | frame to stream |
aFrameSizeInPixels | Size of this frame in pixels |
aBlockSizeInPixels | Size of block to be added / appended. |
aNavigation | indication to stream of the way that the stream will be navigated. Allows codec to optimise it's behaviour. |
aFrameImageData | The frame image data (optional pass NULL if not required). There are format-specific image data variants that are used by encoders to obtain image specific data. This behaviour is invoked by specifying aFrameImageData. Otherwise, encoder specific defaults are invoked. |