Copyright © 2005-2019 MultiMedia Soft

VideoPlayer.ImageAdjustEnable method

Previous pageReturn to chapter overviewNext page

Remarks

 

Enables/disables image adjustment of video frames.

 

For further details about the use of the embedded video player see the VideoPlayer class section.

For details about video clips rendering refer to the How to play video files through DirectShow tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function ImageAdjustEnable (

nPlayerIndex as Int16,

bEnable as Boolean

) as enumErrorCodes


 

[C#]

public enumErrorCodes ImageAdjustEnable (

Int16 nPlayerIndex,

bool bEnable

);


 

[C++]

public: enumErrorCodes ImageAdjustEnable (

Int16 nPlayerIndex,

bool bEnable

);


 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the player that will use the video player.

bEnable

Boolean value that determines if the custom transform filter for video adjustment must be inserted when building the filter graph.

Supported values are the following:

Mnemonic constant

Meaning

false (default)

Disable image adjustment

true

Enable image adjustment. In this situation a custom transform filter is inserted inside the filter graph in order to allow processing of video frames: this setting is effective only when a new video clip is loaded.

 

IMPORTANT: The transform filter can be inserted inside the video stream, downstream to the decoder, only if the decoder supports the YUY2 color space. If the YUY2 color space should not be supported, the filter graph would be in any case built without the transform filter. After loading the video clip, you can verify the availability of the transform filter through the VideoPlayer.VideoTransformIsAvailable method.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.