#include "devvideoplay.h"
class CMMFDevVideoPlay : public CBase |
CMMFDevVideoPlay is the main client API for DevVideoPlay.
IMPORT_C void | AbortDirectScreenAccess | ( | ) |
IMPORT_C void | CancelTimedSnapshot | ( | ) |
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.
See also: SetPostProcessTypesL SetInputCropOptionsL SetYuvToRgbOptionsL SetRotateOptionsL SetScaleOptionsL SetOutputCropOptionsL SetPostProcSpecificOptionsL
IMPORT_C void | ConfigureDecoderL | ( | const TVideoPictureHeader & | aVideoPictureHeader | ) |
Parameter | Description |
---|---|
aVideoPictureHeader | "Header information to configure the decoder with" |
IMPORT_C TAny * | CustomInterface | ( | THwDeviceId | aHwDevice, |
TUid | aInterface | |||
) |
Retrieves a custom interface to the specified hardware device.
Parameter | Description |
---|---|
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." |
IMPORT_C TTimeIntervalMicroSeconds | DecodingPosition | ( | ) |
Returns: "Current decoding position."
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.
Parameter | Description |
---|---|
aFormats1 | "The first format list." |
aFormats2 | "The second format list." |
aCommonFormat | "The target variable where the common format found (if any) is stored." |
Returns: "True if a common format was found, false if not. If no common format was found, aCommonFormat is not modified."
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().
Parameter | Description |
---|---|
aMimeType | "The video type that will be decoded." |
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." |
Parameter | Description |
---|---|
aPostProcType | "The post-processing types that the hardware device has to support, a binary OR of TPrePostProcessType values." |
aPostProcessors | "An array for the result post-processor UIDs. The array must be created and destroyed by the caller." |
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.
Parameter | Description |
---|---|
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 | ) |
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
aBufferSize | "Required buffer size, in bytes. The resulting buffer can be larger than this, but not smaller" |
Returns: "A new input data buffer. The buffer is at least as large as requested, but it may be larger. If no free buffers are available, the return value is NULL."
IMPORT_C void | GetBufferOptions | ( | TBufferOptions & | aOptions | ) |
Parameter | Description |
---|---|
aOptions | "Buffering options structure to fill." |
IMPORT_C void | GetComplexityLevelInfo | ( | THwDeviceId | aHwDevice, |
TUint | aLevel, | |||
TComplexityLevelInfo & | aInfo | |||
) |
Parameter | Description |
---|---|
aHwDevice | "The hw device to query. The value is returned from SelectDecoderL()or SelectPostProcessorL() when the device is selected." |
aLevel | "The computational complexity level to query. The level numbers range from zero (the most complex) to NumComplexityLevels()-1." |
aInfo | "The information structure to fill." |
Parameter | Description |
---|---|
aDecoders | "An array for the result decoder UIDs. The array must be created and destroyed by the caller." |
IMPORT_C TVideoPictureHeader * | GetHeaderInformationL | ( | TVideoDataUnitType | aDataUnitType, |
TVideoDataUnitEncapsulation | aDataUnitEncapsulation, | |||
TVideoInputBuffer * | aDataUnit | |||
) |
Parameter | Description |
---|---|
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." |
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.
Parameter | Description |
---|---|
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()." |
IMPORT_C void | GetOutputFormatListL | ( | THwDeviceId | aHwDevice, |
RArray< TUncompressedVideoFormat > & | aFormats | |||
) |
Parameter | Description |
---|---|
aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
aFormats | "An array for the result format list. The array must be created and destroyed by the caller." |
IMPORT_C void | GetPictureCounters | ( | TPictureCounters & | aCounters | ) |
Parameter | Description |
---|---|
aCounters | "The counter structure to fill." |
Retrieves a list of available video post-processors in the system.
Parameter | Description |
---|---|
aPostProcessors | An array for the result post-processor UIDs. The array must be created and destroyed by the caller. |
IMPORT_C TBool | GetSnapshotL | ( | TPictureData & | aPictureData, |
const TUncompressedVideoFormat & | aFormat | |||
) |
Parameter | Description |
---|---|
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." |
IMPORT_C void | GetSupportedSnapshotFormatsL | ( | RArray< TUncompressedVideoFormat > & | aFormats | ) |
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
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" |
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.
Parameter | Description |
---|---|
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." |
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 | ( | ) |
Returns: "ETrue if video is still being played (even if not necessarily displayed)."
IMPORT_C CMMFDevVideoPlay * | NewL | ( | MMMFDevVideoPlayObserver & | aObserver | ) | [static] |
Constructs a new MSL video client instance. Each client instance supports a single video bitstream.
Parameter | Description |
---|---|
aObserver | The observer object to use. |
Returns: A pointer to a new CMMFDevVideoPlay object.
IMPORT_C TVideoPicture * | NextPictureL | ( | ) |
Returns: "The next new decoded picture. The pointer and the related data is valid until the picture is returned using ReturnPicture(), or the API is shut down. If no new picture is available, the method returns NULL."
IMPORT_C TUint | NumComplexityLevels | ( | THwDeviceId | aHwDevice | ) |
Gets the number of complexity levels available.
Parameter | Description |
---|---|
aHwDevice | "The plug-in to query. The value is returned from SelectDecoderL()or SelectPostProcessorL() when the device is selected." |
Returns: "The number of complexity control levels available, or zero if the information is not available yet. The information may not be available if the number of levels depends on the input data, and enough input data has not been read yet. In that case, using level zero is safe." @pre "This method can only be called after the API has been initialized with Initialize()."
IMPORT_C TUint | NumFreeBuffers | ( | ) |
Returns: "Number of free input buffers the decoder has available."
IMPORT_C void | Pause | ( | ) |
IMPORT_C TUint | PictureBufferBytes | ( | ) |
Returns: "Total number of bytes of memory allocated for uncompressed pictures."
IMPORT_C TTimeIntervalMicroSeconds | PlaybackPosition | ( | ) |
Returns: "Current playback position."
IMPORT_C CPostProcessorInfo * | PostProcessorInfoLC | ( | TUid | aPostProcessor | ) |
Parameter | Description |
---|---|
aPostProcessor | "The post-processor to query." |
Returns: "Post-processor information as a CPostProcessorInfo object. The object is pushed to the cleanup stack, and must be deallocated by the caller."
IMPORT_C TUint | PreDecoderBufferBytes | ( | ) |
Returns: "The number of bytes of data in the pre-decoder buffer."
IMPORT_C void | Redraw | ( | ) |
IMPORT_C void | ReleaseFreeze | ( | const TTimeIntervalMicroSeconds & | aPlaybackPosition | ) |
Releases a picture frozen with FreezePicture().
Parameter | Description |
---|---|
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 | ) |
Parameter | Description |
---|---|
aHeader | "The header to return." |
IMPORT_C void | ReturnPicture | ( | TVideoPicture * | aPicture | ) |
Parameter | Description |
---|---|
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.
See also: SetPostProcessTypesL SetInputCropOptionsL SetYuvToRgbOptionsL SetRotateOptionsL SetScaleOptionsL SetOutputCropOptionsL SetPostProcSpecificOptionsL
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.
Parameter | Description |
---|---|
aDecoder | "The video decoder to use." |
Returns: "Hardware device ID, used in other methods for configuring the decoder."
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.
Parameter | Description |
---|---|
aPostProcessor | "The post-processor to use." |
Returns: "Hardware device ID, used in other methods for configuring the post-processor."
IMPORT_C void | SetBufferOptionsL | ( | const TBufferOptions & | aOptions | ) |
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
aHwDevice | "The plug-in to control. The value is returned from SelectDecoderL()or SelectPostProcessorL() when the device is selected." |
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.
Parameter | Description |
---|---|
aHrdVbvSpec | "The HRD/VBV specification fulfilled, see the definition of THrdVbvSpecification for details." |
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 | |||
) |
Parameter | Description |
---|---|
aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
aRect | "The cropping rectangle to use." |
IMPORT_C void | SetInputFormatL | ( | THwDeviceId | aHwDevice, |
const TUncompressedVideoFormat & | aFormat | |||
) |
Parameter | Description |
---|---|
aHwDevice | "The hardware device to configure. The value is returned from SelectPostProcessorL() when the device is selected." |
aFormat | "The input format to use." |
IMPORT_C void | SetInputFormatL | ( | THwDeviceId | aHwDevice, |
const CCompressedVideoFormat & | aFormat, | |||
TVideoDataUnitType | aDataUnitType, | |||
TVideoDataUnitEncapsulation | aEncapsulation, | |||
TBool | aDataInOrder | |||
) |
Parameter | Description |
---|---|
aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() when the device is selected." |
aFormat | "The input format to use." |
aDataUnitType | "The data unit type for input data." |
aEncapsulation | "The encapsulation type used for the coded data." |
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 | |||
) |
Parameter | Description |
---|---|
aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() # SelectPostProcessorL() when the device is selected." |
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.
Parameter | Description |
---|---|
aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
aFormat | "The format to use." |
IMPORT_C void | SetPauseOnClipFail | ( | TBool | aPause | ) |
Parameter | Description |
---|---|
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 | ) |
Parameter | Description |
---|---|
aPlaybackPosition | "The new playback position in the video stream." |
IMPORT_C void | SetPostProcSpecificOptionsL | ( | THwDeviceId | aHwDevice, |
const TDesC8 & | aOptions | |||
) |
Parameter | Description |
---|---|
aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
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.
Parameter | Description |
---|---|
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." |
IMPORT_C void | SetRotateOptionsL | ( | THwDeviceId | aHwDevice, |
TRotationType | aRotationType | |||
) |
Parameter | Description |
---|---|
aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
aRotationType | "The rotation to perform." |
IMPORT_C void | SetScaleOptionsL | ( | THwDeviceId | aHwDevice, |
const TSize & | aTargetSize, | |||
TBool | aAntiAliasFiltering | |||
) |
Parameter | Description |
---|---|
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." |
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.
Parameter | Description |
---|---|
aRegion | "The new clipping region. After the method returns, no video will be drawn outside the region." |
IMPORT_C void | SetVideoDestScreenL | ( | TBool | aScreen | ) |
Parameter | Description |
---|---|
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 | |||
) |
Parameter | Description |
---|---|
aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
aOptions | "The conversion options to use." |
aYuvFormat | "Conversion source YUV format." |
aRgbFormat | "Conversion target RGB format." |
IMPORT_C void | SetYuvToRgbOptionsL | ( | THwDeviceId | aHwDevice, |
const TYuvToRgbOptions & | aOptions | |||
) |
Parameter | Description |
---|---|
aHwDevice | "The hardware device to configure. The value is returned from SelectDecoderL() or SelectPostProcessorL() when the device is selected." |
aOptions | "The conversion options to use." |
IMPORT_C void | Start | ( | ) |
IMPORT_C void | StartDirectScreenAccessL | ( | const TRect & | aVideoRect, |
CFbsScreenDevice & | aScreenDevice, | |||
const TRegion & | aClipRegion | |||
) |
Parameter | Description |
---|---|
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." |
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.
Parameter | Description |
---|---|
aSynchronize | "True if decoding should be synchronized to a clock source." |
IMPORT_C CVideoDecoderInfo * | VideoDecoderInfoLC | ( | TUid | aVideoDecoder | ) |
Parameter | Description |
---|---|
aVideoDecoder | "The video decoder to query." |
Returns: "Decoder information as a CVideoDecoderInfo object. The object is pushed to the cleanup stack, and must be deallocated by the caller."
IMPORT_C void | WriteCodedDataL | ( | TVideoInputBuffer * | aBuffer | ) |
Parameter | Description |
---|---|
aBuffer | "The coded data unit to write." |
IMPORT_C void | WritePictureL | ( | TVideoPicture * | aPicture | ) |
Parameter | Description |
---|---|
aPicture | "The picture to write." |