class CMMFDevVideoPlay : public CBase |
CMMFDevVideoPlay is the main client API for DevVideoPlay.
Private Member Enumerations | |
---|---|
enum | TInitializationState { ENotInitialized = 0x01, EInitializing = 0x02, EInitialized = 0x04, EInitializationFailed = 0x08 } |
CMMFDevVideoPlay | ( | MMMFDevVideoPlayObserver & | aObserver | ) | [private] |
MMMFDevVideoPlayObserver & aObserver |
IMPORT_C void | AbortDirectScreenAccess | ( | ) |
IMPORT_C void | CancelTimedSnapshot | ( | ) |
void | CheckInitializationState | ( | TUint | aExpected | ) | [private] |
TUint aExpected |
IMPORT_C void | CommitL | ( | ) |
Commit all configuration changes since the last CommitL(), Revert() or Initialize(). This only applies to methods that can be called both before AND after DevVideoPlay has been initialized. See the following methods for details.
IMPORT_C void | ConfigureDecoderL | ( | const TVideoPictureHeader & | aVideoPictureHeader | ) |
const TVideoPictureHeader & aVideoPictureHeader | "Header information to configure the decoder with" |
CMMFVideoDecodeHwDevice * | CreateDecoderL | ( | TUid | aVideoDecoder | ) | [private] |
TUid aVideoDecoder |
IMPORT_C TAny * | CustomInterface | ( | THwDeviceId | aHwDevice, |
TUid | aInterface | |||
) |
Retrieves a custom interface to the specified hardware device.
THwDeviceId aHwDevice | "The hardware device from which the custom interface shall be requested. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." @param "aInterface" "Interface UID, defined with the custom interface." @return "Pointer to the interface implementation, or NULL if the device does not implement the interface requested. The return value must be cast to the correct type by the user." |
TUid aInterface |
IMPORT_C TTimeIntervalMicroSeconds | DecodingPosition | ( | ) |
IMPORT_C TBool | FindCommonFormat | ( | const TArray< TUncompressedVideoFormat > & | aFormats1, |
const TArray< TUncompressedVideoFormat > & | aFormats2, | |||
TUncompressedVideoFormat & | aCommonFormat | |||
) | [static] |
Finds a common format from two lists of uncompressed video formats. Used typically to find a suitable intermediate format between a video decoder and a post-processor. If multiple common formats are available, the lowest-cost format is selected, assuming that the cost of each format is equal to its position in the input array.
const TArray< TUncompressedVideoFormat > & aFormats1 | "The first format list." |
const TArray< TUncompressedVideoFormat > & aFormats2 | "The second format list." |
TUncompressedVideoFormat & aCommonFormat | "The target variable where the common format found (if any) is stored." |
IMPORT_C void | FindDecodersL | ( | const TDesC8 & | aMimeType, |
TUint32 | aPostProcType, | |||
RArray< TUid > & | aDecoders, | |||
TBool | aExactMatch = ETrue | |||
) |
Finds all available decoders for a given video type with support for certain post-processing operations. The video type is specified using its MIME type, which may include parameters specifying the supported level, version, and other information. Decoder HW devices can use wildcards when listing the supported video types in the ECom registration information, so it is possible that all the decoders returned do not support the specified submode, e.g. profile and level, unless aExactMatch is set. The decoder capabilities can be checked with VideoCodecInfoLC().
const TDesC8 & aMimeType | "The video type that will be decoded." |
TUint32 aPostProcType | "The post-processing types that the decoder has to support, a binary OR of TPrePostProcessType values. If no post-processing support is needed, set this value to zero." @param "aDecoders" "An array for the result decoder UIDs. The array must be created and destroyed by the caller." @param "aExactMatch" "True if exact matching should be used. In this only decoders that support exactly the MIME-type given will be returned. Since verifying this may require loading the decoders into memory, this can be a fairly expensive operation, and if the user needs to verify their capabilities further in any case this parameter should be set to EFalse." |
RArray< TUid > & aDecoders | |
TBool aExactMatch = ETrue |
IMPORT_C void | FindPostProcessorsL | ( | TUint32 | aPostProcType, |
RArray< TUid > & | aPostProcessors | |||
) |
IMPORT_C void | FreezePicture | ( | const TTimeIntervalMicroSeconds & | aPlaybackPosition | ) |
Freezes a picture on the screen. After the picture has been frozen, no picture is displayed until the freeze is released with ReleaseFreeze(). If the video output is being written to memory buffers, not the screen, decoded pictures will not be delivered to the client when a freeze is active, but are simply discarded.
const TTimeIntervalMicroSeconds & aPlaybackPosition | "The presentation timestamp of the picture to freeze. The frozen picture will be the first picture with a timestamp greater than or equal to this parameter." @pre "This method can only be called after the API has been initialized with Initialize()." |
IMPORT_C void | GetBitstreamCounters | ( | TBitstreamCounters & | aCounters | ) |
TBitstreamCounters & aCounters | "The counter structure to fill." |
IMPORT_C TVideoInputBuffer * | GetBufferL | ( | TUint | aBufferSize | ) |
Retrieves an empty video input buffer from the decoder. After input data has been written to the buffer, it can be written to the decoder using WriteCodedDataL(). The maximum number of buffers the client can retrieve before returning any to the decoder is determined by the TBufferOptions.iMinNumInputBuffers value set with SetBufferOptionsL().
If a buffer is not immediately available, the client can wait for a MdvpoNewBuffers() callback before trying again, or poll for new buffer availability after a delay. Note that video decoding may be performed in the same thread, in a separate active object, so the client must not block the active scheduler while waiting for buffers to become available, otherwise the system can deadlock. Assuming that the client does not keep too many buffers retrieved and playback is in progress, new buffers will be available after some time.
The decoder maintains ownership of the buffers even while they have been retrieved by the client, and will take care of deallocating them. The client must not destroy the buffer objects, even if it has retrieved buffers and it is being shut down. The buffers will be destroyed by the decoder, and will not be valid after the decoder has been shut down.
TUint aBufferSize | "Required buffer size, in bytes. The resulting buffer can be larger than this, but not smaller" |
IMPORT_C void | GetBufferOptions | ( | TBufferOptions & | aOptions | ) |
TBufferOptions & aOptions | "Buffering options structure to fill." |
IMPORT_C void | GetComplexityLevelInfo | ( | THwDeviceId | aHwDevice, |
TUint | aLevel, | |||
TComplexityLevelInfo & | aInfo | |||
) |
THwDeviceId aHwDevice | "The hw device to query. The value is returned from SelectDecoderL()or SelectPostProcessorL() when the device is selected." |
TUint aLevel | "The computational complexity level to query. The level numbers range from zero (the most complex) to NumComplexityLevels()-1." |
TComplexityLevelInfo & aInfo | "The information structure to fill." |
IMPORT_C void | GetDecoderListL | ( | RArray< TUid > & | aDecoders | ) |
IMPORT_C TVideoPictureHeader * | GetHeaderInformationL | ( | TVideoDataUnitType | aDataUnitType, |
TVideoDataUnitEncapsulation | aDataUnitEncapsulation, | |||
TVideoInputBuffer * | aDataUnit | |||
) |
TVideoDataUnitType aDataUnitType | "The type of coded data unit that is contained in aDataUnit. If the data is a simple piece of bitstream, use EDuArbitraryStreamSection." @param "aDataUnitEncapsulation" "The encapsulation type used for the coded data. If the data is a simple piece of bitstream, use EDuElementaryStream." @param "aDataUnit" "The coded data unit, contained in a TVideoInputBuffer." @return "Header information for the data unit, or NULL if the coded data unit did not contain enough data to parse the header. The header data must be returned to the API using ReturnHeader() before the API is shut down or the decoder is changed. The data remains valid until it is returned." |
TVideoDataUnitEncapsulation aDataUnitEncapsulation | |
TVideoInputBuffer * aDataUnit |
IMPORT_C void | GetNewPictureInfo | ( | TUint & | aNumPictures, |
TTimeIntervalMicroSeconds & | aEarliestTimestamp, | |||
TTimeIntervalMicroSeconds & | aLatestTimestamp | |||
) |
Gets information about new decoded pictures. "New decoded pictures" are pictures that have not been returned to the caller using NextPicture(). This method can only be called if video destination is memory buffers, i.e. Direct Screen Access is not used.
TUint & aNumPictures | "Target for the number of new decoded pictures. If no pictures are available, the value written is zero, and the timestamps are not valid." @param "aEarliestTimestamp" "Timestamp for the earliest available new decoded picture. If the number of new decoded pictures (aNumPictures) is zero, the timestamp is not valid." @param "aLatestTimestamp" "Timestamp for the latest available new decoded picture. If the number of new decoded pictures (aNumPictures) is zero, the timestamp is not valid." @pre "This method can only be called after the API has been initialized with Initialize()." |
TTimeIntervalMicroSeconds & aEarliestTimestamp | |
TTimeIntervalMicroSeconds & aLatestTimestamp |
IMPORT_C void | GetOutputFormatListL | ( | THwDeviceId | aHwDevice, |
RArray< TUncompressedVideoFormat > & | aFormats | |||
) |
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
RArray< TUncompressedVideoFormat > & aFormats | "An array for the result format list. The array must be created and destroyed by the caller." |
IMPORT_C void | GetPictureCounters | ( | TPictureCounters & | aCounters | ) |
TPictureCounters & aCounters | "The counter structure to fill." |
IMPORT_C void | GetPostProcessorListL | ( | RArray< TUid > & | aPostProcessors | ) |
Retrieves a list of available video post-processors in the system.
IMPORT_C TBool | GetSnapshotL | ( | TPictureData & | aPictureData, |
const TUncompressedVideoFormat & | aFormat | |||
) |
TPictureData & aPictureData | "Target picture. The memory for the picture must be allocated by the caller, and initialized properly. The data formats must match the snapshot format requested." @param "aFormat" "The picture format to use for the snapshot." @return "ETrue if the snapshot was taken, EFalse if a picture is not available. The picture may not be available if decoding has not progressed far enough yet." |
const TUncompressedVideoFormat & aFormat |
IMPORT_C void | GetSupportedSnapshotFormatsL | ( | RArray< TUncompressedVideoFormat > & | aFormats | ) |
RArray< TUncompressedVideoFormat > & aFormats | "An array for the result format list. The array must be created and destroyed by the caller." |
IMPORT_C void | GetTimedSnapshotL | ( | TPictureData * | aPictureData, |
const TUncompressedVideoFormat & | aFormat, | |||
const TTimeIntervalMicroSeconds & | aPresentationTimestamp | |||
) |
Gets a copy of a specified picture. Timed snapshots are required for implementing the video telephony use-case. Simply using the latest picture may not work, since the latest picture is typically not the one whose supplemental information is being processed.
The picture is specified using its presentation timestamp. The timestamp must match the timestamp in the picture exactly, otherwise no snapshot will be taken. The timestamp must refer to the currently displayed picture or a future picture. Typically the timestamp is received with supplemental information (with the MdvpoSupplementalInformation() callback) indicating a snapshot picture.
When the snapshot is available, it will be returned to the client using the MdvpoTimedSnapshotComplete() callback. To cancel a timed snapshot request, use CancelTimedSnapshot(). Only one timed snapshot request can be active at a time.
TPictureData * aPictureData | "Target picture. The memory for the picture must be allocated by the caller, and initialized properly. The data formats must match the snapshot format requested. The picture must remain valid until the snapshot has been taken or until the request has been cancelled with CancelTimedSnapshot()." @param "aFormat" "The picture format to use for the snapshot." @param "aPresentationTimestamp" "Presentation timestamp for the picture to copy. The timestamp must match the timestamp in the picture exactly" |
const TUncompressedVideoFormat & aFormat | |
const TTimeIntervalMicroSeconds & aPresentationTimestamp |
IMPORT_C void | GetTimedSnapshotL | ( | TPictureData * | aPictureData, |
const TUncompressedVideoFormat & | aFormat, | |||
const TPictureId & | aPictureId | |||
) |
Gets a copy of a specified picture. Timed snapshots are required for implementing the video telephony use-case. Simply using the latest picture may not work, since the latest picture is typically not the one whose supplemental information is being processed.
The picture is specified using either its picture identifier. The id must refer to the currently displayed picture or a future picture. Typically the picture ID is received with supplemental information (with the MdvpoSupplementalInformation() callback) indicating a snapshot picture.
When the snapshot is available, it will be returned to the client using the MdvpoTimedSnapshotComplete() callback. To cancel a timed snapshot request, use CancelTimedSnapshot(). Only one timed snapshot request can be active at a time.
TPictureData * aPictureData | "Target picture. The memory for the picture must be allocated by the caller, and initialized properly. The data formats must match the snapshot format requested. The picture must remain valid until the snapshot has been taken or until the request has been cancelled with CancelTimedSnapshot()." @param "aFormat" "The picture format to use for the snapshot." @param "aPictureId" "Picture identifier for the picture to copy." |
const TUncompressedVideoFormat & aFormat | |
const TPictureId & aPictureId |
void | HandleDecodeInitializeComplete | ( | TInt | aError | ) | [private] |
TInt aError |
void | HandlePostProcInitializeComplete | ( | TInt | aError | ) | [private] |
TInt aError |
IMPORT_C void | Initialize | ( | ) |
Initializes the video device. This method is asynchronous, DevVideoPlay will call MMMFDevVideoPlayObserver::MdvpoInitializeComplete() after initialization has completed. No DevVideoPlay method may be called while initialization is in progress, the initialization process can only be cancelled by destroying the DevVideoPlay object. After this initialization has been successfully completed, further configuration changes are not possible except where separately noted.
If initialization fails for any reason, the DevVideoPlay object must be destroyed and set up from scratch.
IMPORT_C void | InputEnd | ( | ) |
Notifies the system that the end of input data has been reached.
The decoder and post-processor can use this signal to ensure that the remaining data gets processed, without waiting for new data. For example when the data type is not EDuCodedPicture, calling this method is necessary otherwise a decoder implementation might be waiting for the start code for the next picture to ensure it has a complete picture before starting to decode the previous one.
After the remaining data has been processed (and displayed, if applicable), the client gets notified with the MdvpoStreamEnd() callback. The client must then call Stop() on the interface.
DevVideo clients are encouraged to call this method, but its use is not mandatory for synchronized processing. For synchronized playback, all video pictures are processed or discarded according to their timestamps, and so the client can easily infer when processing is complete. However, it should be noted that the last picture might not be displayed if this method is not called and the input data type is not EDuCodedPicture.
For non-synchronized playback (e.g. file conversion), a client must call this method otherwise it will never find out when the hardware device has finished processing the data.
IMPORT_C TBool | IsPlaying | ( | ) |
void | MdvppFatalError | ( | CMMFVideoHwDevice * | aDevice, |
TInt | aError | |||
) | [private, virtual] |
CMMFVideoHwDevice * aDevice | |
TInt aError |
void | MdvppInitializeComplete | ( | CMMFVideoHwDevice * | aDevice, |
TInt | aError | |||
) | [private, virtual] |
CMMFVideoHwDevice * aDevice | |
TInt aError |
void | MdvppNewPicture | ( | TVideoPicture * | aPicture | ) | [private, virtual] |
TVideoPicture * aPicture |
void | MdvppPictureLoss | ( | const TArray< TPictureId > & | aPictures | ) | [private, virtual] |
const TArray< TPictureId > & aPictures |
void | MdvppReferencePictureSelection | ( | const TDesC8 & | aSelectionData | ) | [private, virtual] |
const TDesC8 & aSelectionData |
void | MdvppReturnPicture | ( | TVideoPicture * | aPicture | ) | [private, virtual] |
TVideoPicture * aPicture |
void | MdvppSliceLoss | ( | TUint | aFirstMacroblock, |
TUint | aNumMacroblocks, | |||
const TPictureId & | aPicture | |||
) | [private, virtual] |
TUint aFirstMacroblock | |
TUint aNumMacroblocks | |
const TPictureId & aPicture |
void | MdvppSupplementalInformation | ( | const TDesC8 & | aData, |
const TTimeIntervalMicroSeconds & | aTimestamp, | |||
const TPictureId & | aPictureId | |||
) | [private, virtual] |
const TDesC8 & aData | |
const TTimeIntervalMicroSeconds & aTimestamp | |
const TPictureId & aPictureId |
void | MdvppTimedSnapshotComplete | ( | TInt | aError, |
TPictureData * | aPictureData, | |||
const TTimeIntervalMicroSeconds & | aPresentationTimestamp, | |||
const TPictureId & | aPictureId | |||
) | [private, virtual] |
TInt aError | |
TPictureData * aPictureData | |
const TTimeIntervalMicroSeconds & aPresentationTimestamp | |
const TPictureId & aPictureId |
IMPORT_C CMMFDevVideoPlay * | NewL | ( | MMMFDevVideoPlayObserver & | aObserver | ) | [static] |
Constructs a new MSL video client instance. Each client instance supports a single video bitstream.
MMMFDevVideoPlayObserver & aObserver | The observer object to use. |
IMPORT_C TVideoPicture * | NextPictureL | ( | ) |
IMPORT_C TUint | NumComplexityLevels | ( | THwDeviceId | aHwDevice | ) |
Gets the number of complexity levels available.
THwDeviceId aHwDevice | "The plug-in to query. The value is returned from SelectDecoderL()or SelectPostProcessorL() when the device is selected." |
IMPORT_C TUint | NumFreeBuffers | ( | ) |
IMPORT_C void | Pause | ( | ) |
IMPORT_C TUint | PictureBufferBytes | ( | ) |
IMPORT_C TTimeIntervalMicroSeconds | PlaybackPosition | ( | ) |
IMPORT_C CPostProcessorInfo * | PostProcessorInfoLC | ( | TUid | aPostProcessor | ) |
TUid aPostProcessor | "The post-processor to query." |
IMPORT_C TUint | PreDecoderBufferBytes | ( | ) |
IMPORT_C void | Redraw | ( | ) |
IMPORT_C void | ReleaseFreeze | ( | const TTimeIntervalMicroSeconds & | aPlaybackPosition | ) |
Releases a picture frozen with FreezePicture().
const TTimeIntervalMicroSeconds & aPlaybackPosition | "The presentation timestamp of the picture to release. The first picture displayed after the release will be the first picture with a timestamp greater than or equal to this parameter. To release the freeze immediately, set the timestamp to zero." @pre "This method can only be called after the API has been initialized with Initialize()." |
IMPORT_C void | Resume | ( | ) |
IMPORT_C void | ReturnHeader | ( | TVideoPictureHeader * | aHeader | ) |
TVideoPictureHeader * aHeader | "The header to return." |
IMPORT_C void | ReturnPicture | ( | TVideoPicture * | aPicture | ) |
TVideoPicture * aPicture | "The picture to return. After this method returns, the pointer is no longer valid and the picture data cannot be used." |
IMPORT_C void | Revert | ( | ) |
Revert any configuration changes that have not yet been committed using CommitL(). This only applies to methods that can be called both before AND after DevVideoPlay has been initialized. See the following methods for details.
IMPORT_C THwDeviceId | SelectDecoderL | ( | TUid | aDecoder | ) |
Selects the video decoder to be used. This method must be called before any other video decoder related methods are used. The decoder to use can be changed by calling this method again before the API has been initialized with Initialize(). All video decoder settings are reset to their default values, which are up to the implementation to decide if not specified in any of the MSL specifications. By default no post-processing is performed.
TUid aDecoder | "The video decoder to use." |
IMPORT_C THwDeviceId | SelectPostProcessorL | ( | TUid | aPostProcessor | ) |
Selects the video post-processor to be used. This method must be called before any other post-processor related methods are used. The post-processor to use can be changed by calling this method again before the API has been initialized with Initialize(). All post-processor settings are reset to their default values, which are up to the implementation to decide if not specified in any of the MSL specifications.
TUid aPostProcessor | "The post-processor to use." |
IMPORT_C void | SetBufferOptionsL | ( | const TBufferOptions & | aOptions | ) |
const TBufferOptions & aOptions | "Buffering options." |
IMPORT_C void | SetClockSource | ( | MMMFClockSource * | aClock | ) |
Sets the clock source to use for video timing. When video playback is synchronized with audio, the clock source is implemented by the audio playback subsystem, otherwise the clock source should get the time from the system clock. If no clock source is set, video playback will not be synchronized, but will proceed as fast as possible, depending on input data and output buffer availability. This method can be called after all hardware devices have been selected, but before calling Initialize().
All decoders must support synchronization with an external clock source, as well as unsynchronized non-realtime operation. When a clock source is set, the decoder can skip pictures to maintain synchronization. When non-realtime operation is used and no clock source has been set, pictures may not be skipped unless a lower complexity level is used that requires this.
MMMFClockSource * aClock | "The clock source to use" |
IMPORT_C void | SetComplexityLevel | ( | THwDeviceId | aHwDevice, |
TUint | aLevel | |||
) |
Sets the computational complexity level to use. The level can be set separately for each hardware device in use. If separate complexity levels are not available, the method call is ignored. If the level specified is not available, the results are undefined. Typically the device will either ignore the request or use the nearest suitable level.
The complexity level can be changed at any point during playback.
THwDeviceId aHwDevice | "The plug-in to control. The value is returned from SelectDecoderL()or SelectPostProcessorL() when the device is selected." |
TUint aLevel | "The computational complexity level to use. Level zero (0) is the most complex one, with the highest quality. Higher level numbers require less processing and may have lower quality." @pre "This method can only be called after the API has been initialized with Initialize()." |
IMPORT_C void | SetHrdVbvSpec | ( | THrdVbvSpecification | aHrdVbvSpec, |
const TDesC8 & | aHrdVbvParams | |||
) |
Indicates which HRD/VBV specification is fulfilled in the input stream and any related parameters.
THrdVbvSpecification aHrdVbvSpec | "The HRD/VBV specification fulfilled, see the definition of THrdVbvSpecification for details." |
const TDesC8 & aHrdVbvParams | "HRD/VBV parameters. The data format depends on the parameters chosen. For 3GPP TS 26.234 parameters (aHrdVbvSpec=EHrdVbv3GPP), the data in the descriptor is a package of type TPckC<T3gppHrdVbvParams> (see T3gppHrdVbvParams). If no HRD/VBV parameters are used, the descriptor is empty." @pre "This method can only be called before the API has been initialized with Initialize()." |
IMPORT_C void | SetInputCropOptionsL | ( | THwDeviceId | aHwDevice, |
const TRect & | aRect | |||
) |
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
const TRect & aRect | "The cropping rectangle to use." |
IMPORT_C void | SetInputFormatL | ( | THwDeviceId | aHwDevice, |
const TUncompressedVideoFormat & | aFormat | |||
) |
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectPostProcessorL() when the device is selected." |
const TUncompressedVideoFormat & aFormat | "The input format to use." |
IMPORT_C void | SetInputFormatL | ( | THwDeviceId | aHwDevice, |
const CCompressedVideoFormat & | aFormat, | |||
TVideoDataUnitType | aDataUnitType, | |||
TVideoDataUnitEncapsulation | aEncapsulation, | |||
TBool | aDataInOrder | |||
) |
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() when the device is selected." |
const CCompressedVideoFormat & aFormat | "The input format to use." |
TVideoDataUnitType aDataUnitType | "The data unit type for input data." |
TVideoDataUnitEncapsulation aEncapsulation | "The encapsulation type used for the coded data." |
TBool aDataInOrder | "True if the input data is written in correct decoding order, false if the input data may be written in arbitrary order." |
IMPORT_C void | SetOutputCropOptionsL | ( | THwDeviceId | aHwDevice, |
const TRect & | aRect | |||
) |
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() # SelectPostProcessorL() when the device is selected." |
const TRect & aRect | "Output cropping area." |
IMPORT_C void | SetOutputFormatL | ( | THwDeviceId | aHwDevice, |
const TUncompressedVideoFormat & | aFormat | |||
) |
Sets the output format for a hardware device. If a decoder and a post-processor are used, the decoder output format must match the post-processor source format.
If direct screen access is being used, then it is not necessary to call this method on the hwdevice performing the direct screen access.
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
const TUncompressedVideoFormat & aFormat | "The format to use." |
IMPORT_C void | SetPauseOnClipFail | ( | TBool | aPause | ) |
TBool aPause | "True if playback should be paused when clipping fails, false if not. If playback is not paused, it will be continued without video display." |
IMPORT_C void | SetPosition | ( | const TTimeIntervalMicroSeconds & | aPlaybackPosition | ) |
const TTimeIntervalMicroSeconds & aPlaybackPosition | "The new playback position in the video stream." |
IMPORT_C void | SetPostProcSpecificOptionsL | ( | THwDeviceId | aHwDevice, |
const TDesC8 & | aOptions | |||
) |
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
const TDesC8 & aOptions | "The options. The format is plug-in specific." |
IMPORT_C void | SetPostProcessTypesL | ( | THwDeviceId | aHwDevice, |
TUint32 | aPostProcCombination | |||
) |
Sets the post-processing types to be used. This method, like all post-processing configuration methods, must be called before Initialize().
Post-processing operations are carried out in the following order: 1. Input cropping 2. Mirroring 3. Rotating 4. Scaling 5. Output cropping Color space conversion can be performed at any point in the post-processing flow.
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." @param "aPostProcCombination" "The post-processing steps to perform, a bitwise OR of values from TPrePostProcessType." |
TUint32 aPostProcCombination |
IMPORT_C void | SetRotateOptionsL | ( | THwDeviceId | aHwDevice, |
TRotationType | aRotationType | |||
) |
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
TRotationType aRotationType | "The rotation to perform." |
IMPORT_C void | SetScaleOptionsL | ( | THwDeviceId | aHwDevice, |
const TSize & | aTargetSize, | |||
TBool | aAntiAliasFiltering | |||
) |
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." @param "aTargetSize" "Scaling target size. If a fixed scale factor size is used, the new dimensions must be set to width=floor(factor*width), height=floor(factor*height). For example, scaling a QCIF (176x144) picture up by a factor of 4/3 yields a size of 234x192." @param "aAntiAliasFiltering" "True if anti-aliasing filtering should be used. If the post-processor does not support anti-aliased scaling, or supports anti-aliased scaling only, this argument is ignored." |
const TSize & aTargetSize | |
TBool aAntiAliasFiltering |
IMPORT_C void | SetScreenClipRegion | ( | const TRegion & | aRegion | ) |
Sets a new clipping region for Direct Screen Access. After the method returns, no video will be drawn outside of the region. (Note that in Symbian OS clipping regions are "positive" - that is, they define the legal area inside which an application may draw.)
If clipping is not supported, or the clipping region is too complex, either playback will pause or will resume without video display, depending on the current setting of SetPauseOnClipFail(), and the result can be verified with IsPlaying(). Clipping can be disabled by setting a new clipping region that includes the whole video window.
const TRegion & aRegion | "The new clipping region. After the method returns, no video will be drawn outside the region." |
IMPORT_C void | SetVideoDestScreenL | ( | TBool | aScreen | ) |
TBool aScreen | "True if video output destination is the screen, false if memory buffers." |
IMPORT_C void | SetYuvToRgbOptionsL | ( | THwDeviceId | aHwDevice, |
const TYuvToRgbOptions & | aOptions, | |||
const TYuvFormat & | aYuvFormat, | |||
TRgbFormat | aRgbFormat | |||
) |
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
const TYuvToRgbOptions & aOptions | "The conversion options to use." |
const TYuvFormat & aYuvFormat | "Conversion source YUV format." |
TRgbFormat aRgbFormat | "Conversion target RGB format." |
IMPORT_C void | SetYuvToRgbOptionsL | ( | THwDeviceId | aHwDevice, |
const TYuvToRgbOptions & | aOptions | |||
) |
THwDeviceId aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
const TYuvToRgbOptions & aOptions | "The conversion options to use." |
IMPORT_C void | Start | ( | ) |
IMPORT_C void | StartDirectScreenAccessL | ( | const TRect & | aVideoRect, |
CFbsScreenDevice & | aScreenDevice, | |||
const TRegion & | aClipRegion | |||
) |
const TRect & aVideoRect | "The video output rectangle on screen. The rectangle size should be the same as the output video size, otherwise results are undefined. Some decoders may set limitations to the position and alignment of the rectangle. The rectangle must be aligned to a 32-bit boundary on screen (even X-coordinate on 12-bpp and 16-bpp displays) and must fit completely on the screen." @param "aScreenDevice" "The screen device to use. The screen device will supply frame buffer information, and is used to update the frame buffer to screen. The screen device object must be valid in the current thread." @param "aClipRegion" "Initial clipping region to use." |
CFbsScreenDevice & aScreenDevice | |
const TRegion & aClipRegion |
IMPORT_C void | Stop | ( | ) |
IMPORT_C void | SynchronizeDecoding | ( | TBool | aSynchronize | ) |
Sets whether the decoder should synchronize decoding to the current clock source, if any, or should decode all pictures as soon as possible. If decoding is synchronized, decoding timestamps are used if available, presentation timestamps are used if not. When decoding is not synchronized, pictures are decoded as soon as source data is available for them and the decoder has a free output buffer. If a clock source is not available, decoding will not be synchronized.
TBool aSynchronize | "True if decoding should be synchronized to a clock source." |
CMMFVideoDecodeHwDevice & | VideoDecodeHwDevice | ( | THwDeviceId | aHwDevice | ) | const [private] |
THwDeviceId aHwDevice |
IMPORT_C CVideoDecoderInfo * | VideoDecoderInfoLC | ( | TUid | aVideoDecoder | ) |
TUid aVideoDecoder | "The video decoder to query." |
CMMFVideoHwDevice & | VideoHwDevice | ( | THwDeviceId | aHwDevice | ) | const [private] |
THwDeviceId aHwDevice |
CMMFVideoPlayHwDevice & | VideoPlayHwDevice | ( | THwDeviceId | aHwDevice | ) | const [private] |
THwDeviceId aHwDevice |
CMMFVideoPostProcHwDevice & | VideoPostProcHwDevice | ( | THwDeviceId | aHwDevice | ) | const [private] |
THwDeviceId aHwDevice |
IMPORT_C void | WriteCodedDataL | ( | TVideoInputBuffer * | aBuffer | ) |
TVideoInputBuffer * aBuffer | "The coded data unit to write." |
IMPORT_C void | WritePictureL | ( | TVideoPicture * | aPicture | ) |
TVideoPicture * aPicture | "The picture to write." |
ENotInitialized = 0x01 | |
EInitializing = 0x02 | |
EInitialized = 0x04 | |
EInitializationFailed = 0x08 |
CMMFVideoDecodeHwDevice * | iVideoDecodeHwDevice | [private] |
TDblQueIter< TVideoPicture > | iVideoPictureQueIter | [private] |
CMMFVideoPostProcHwDevice * | iVideoPostProcHwDevice | [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.