ImageEn, unit iemmf

TIEMediaFoundationVideoSampleDecoder

TIEMediaFoundationVideoSampleDecoder

Declaration

type TIEMediaFoundationVideoSampleDecoder = class
  public
    function GetSubType(): WideString; virtual; abstract;
    function Decode(width: DWord; height: DWord; stride: Integer; buffer: Pointer; bufferLen: DWord; destBitmap: TIEBitmap): Boolean; virtual; abstract;
end;

Description

Applications can add new decoders by using IEMediaFoundationGetVideoSampleDecoders and implementing this abstract class.

Example

// Set media foundation video sample decoder
Result := mediaFoundationVideoSampleDecoder.GetSubType();

See Also

IEMediaFoundationGetVideoSampleDecoders