Class DecoderParameters
Defines configuration parameters for media decoder creation and initialization.
public class DecoderParameters
- Inheritance
-
DecoderParameters
- Inherited Members
Constructors
DecoderParameters()
public DecoderParameters()
Properties
AllowHardwareAcceleration
Gets or sets whether hardware acceleration will be allowed for decoder. By default DefaultAllowHardwareAcceleration is used.
public bool AllowHardwareAcceleration { get; set; }
Property Value
DefaultAllowHardwareAcceleration
Gets or sets whether hardware acceleration will be allowed for decoder by default. By default hardware acceleration is enabled.
public static bool DefaultAllowHardwareAcceleration { get; set; }
Property Value
DefaultPreferredAudioFramework
Gets or sets default preferred audio framework for decoder creation. By default platform built-in framework is used. If Unknown is chosen as a value then every available framework will be tried.
public static MediaFramework? DefaultPreferredAudioFramework { get; set; }
Property Value
DefaultPreferredMediaFramework
Gets or sets default preferred media framework for decoder creation. By default platform built-in framework is used. If Unknown is chosen as a value then every available framework will be tried.
public static MediaFramework DefaultPreferredMediaFramework { get; set; }
Property Value
DefaultPreferredVideoFramework
Gets or sets default preferred video framework for decoder creation. By default platform built-in framework is used. If Unknown is chosen as a value then every available framework will be tried.
public static MediaFramework? DefaultPreferredVideoFramework { get; set; }
Property Value
DeviceIndex
Gets or sets device index to use for decoding if there are more than one device in the system. Only supported for Nvidia GPUs at the moment. If not specified then random device will be chosen.
public int DeviceIndex { get; set; }
Property Value
PreferredMediaFramework
Gets or sets preferred media framework for decoder creation. By default DefaultPreferredMediaFramework framework is used. If Unknown is chosen as a value then every available framework will be tried.
public MediaFramework PreferredMediaFramework { get; set; }
Property Value
ProcessingErrorHandling
Gets or sets how the decoder should handle errors that occur during media processing.
public DecoderProcessingErrorHandling ProcessingErrorHandling { get; set; }
Property Value
Remarks
The property is currently supported by AndroidDecoder only and is ignored by other decoders!
The available options are:
Methods
Clone()
Creates a deep copy of this instance.
public DecoderParameters Clone()
Returns
- DecoderParameters
A new DecoderParameters instance with copied values.