CTNEVideoClipInfo Class Reference

class CTNEVideoClipInfo : public CBase

Utility class for getting information about video clip.

Inherits from

Member Functions Documentation

CancelThumb()

voidCancelThumb()[pure virtual]

Cancels frame generation. If no frame is currently being generated, the function does nothing.

FileName()

TPtrC FileName()const [pure virtual]

Returns the file name of the clip. Panics if there is no file associated with this clip or info is not yet ready for reading.

GetThumbL(MTNEVideoClipThumbObserver &, TInt, TSize *const, TDisplayMode, TBool, TInt)

voidGetThumbL(MTNEVideoClipThumbObserver &aObserver,
TIntaIndex = KBestThumbIndex,
TSize *const aResolution = 0,
TDisplayModeaDisplayMode = ENone,
TBoolaEnhance = EFalse,
TIntaPriority = CActive::EPriorityIdle
)[pure virtual]

Generates a bitmap of the given frame from video clip. The frame bitmap is scaled to the specified resolution and converted to the specified display mode. This method is asynchronous. The frame is generated in background and the observer is notified when the frame is complete. This method panics if info is not yet ready for reading or the resolution is illegal.

Possible leave codes:
  • KErrNoMemory if memory allocation fails

  • KErrNotSupported, if the specified combination of parameters is not supported

Parameters

MTNEVideoClipThumbObserver & aObserverobserver to be notified when the frame is completed
TInt aIndex = KBestThumbIndexindex of frame, or KFrameIndexBestThumb to look for most suitable thumbnail frame.
TSize *const aResolution = 0resolution of the desired frame bitmap, or NULL if the frame should be in the original resolution
TDisplayMode aDisplayMode = ENonedesired display mode; or ENone if any display mode is acceptable
TBool aEnhance = EFalseapply image enhancement algorithms to improve frame quality; note that this may considerably increase the processing time needed to prepare the frame
TInt aPriority = CActive::EPriorityIdlepriority of the frame generation

NewL(const TDesC &, MTNEVideoClipInfoObserver &)

IMPORT_C CTNEVideoClipInfo *NewL(const TDesC &aFileName,
MTNEVideoClipInfoObserver &aObserver
)[static]

Constructs a new CTNEVideoClipInfo object to get information about the specified video clip file. The specified observer is notified when info is ready for reading. This method may leave if no resources are available to construct a new object. The file will be opened in EFileShareReadersOnly mode by default, and the same mode should be used by the client too if it need to open the file at the same time.

Possible leave codes:
  • KErrNoMemory if memory allocation fails

Parameters

const TDesC & aFileNamename of video clip file
MTNEVideoClipInfoObserver & aObserverobserver to notify when info is ready for reading

NewL(const RFile &, MTNEVideoClipInfoObserver &)

IMPORT_C CTNEVideoClipInfo *NewL(const RFile &aFileName,
MTNEVideoClipInfoObserver &aObserver
)[static]

Parameters

const RFile & aFileName
MTNEVideoClipInfoObserver & aObserver

NewLC(const TDesC &, MTNEVideoClipInfoObserver &)

IMPORT_C CTNEVideoClipInfo *NewLC(const TDesC &aFileName,
MTNEVideoClipInfoObserver &aObserver
)[static]

Constructs a new CTNEVideoClipInfo object to get information about the specified video clip file. The constructed object is left in the cleanup stack. The specified observer is notified when info is ready for reading. This method may leave if no resources are available to construct a new object. The file will be opened in EFileShareReadersOnly mode by default, and the same mode should be used by the client too if it need to open the file at the same time.

Possible leave codes:
  • KErrNoMemory if memory allocation fails

Parameters

const TDesC & aFileNamename of video clip file
MTNEVideoClipInfoObserver & aObserverobserver to notify when info is ready for reading

NewLC(const RFile &, MTNEVideoClipInfoObserver &)

IMPORT_C CTNEVideoClipInfo *NewLC(const RFile &aFileName,
MTNEVideoClipInfoObserver &aObserver
)[static]

Parameters

const RFile & aFileName
MTNEVideoClipInfoObserver & aObserver

VideoFrameCount()

TInt VideoFrameCount()const [pure virtual]

Returns the number of video frames in this clip. Panics if info is not yet ready for reading.