Description | Hierarchy | Fields | Methods | Properties |
type TAdMediaDecoder = class(TAdPersistent)
Abstract video decoder class that can be implemented to provide a new video decoder class. Call the "RegisterVideoDecoder" procedure to register your new video decoder class.
![]() |
constructor Create(AReadProc: TAdMediaReadproc); virtual; |
![]() |
destructor Destroy; override; |
![]() |
function Decode: TAdMediaDecoderState; virtual; abstract; |
![]() |
procedure GetPacket(var Packet: TAdMediaPacket); virtual; abstract; |
![]() |
procedure OpenDecoder; virtual; abstract; |
![]() |
procedure CloseDecoder; virtual; abstract; |
![]() |
property MediaStreams: TAdMediaStreamList read FStreams; |
![]() |
property ReadProc: TAdMediaReadproc read FReadProc; |
![]() |
constructor Create(AReadProc: TAdMediaReadproc); virtual; |
Creates an instance of TAdVideoDecoder. |
![]() |
destructor Destroy; override; |
Destorys the instance of TAdVideoDecoder. |
![]() |
function Decode: TAdMediaDecoderState; virtual; abstract; |
Tells the decoder to go on decoding. When data is needed, the specified callback should be called. ReturnsThe current decoder state See also
|
![]() |
procedure GetPacket(var Packet: TAdMediaPacket); virtual; abstract; |
If Decoder returned "vdHasFrame", this method will fill information about the decoded buffer and a pointer to this buffer in the packet structure. |
![]() |
procedure OpenDecoder; virtual; abstract; |
Initializes the decoder and stores all streams, that were found in the "MediaStreams" property. |
![]() |
procedure CloseDecoder; virtual; abstract; |
Closes the decoder. |
![]() |
property MediaStreams: TAdMediaStreamList read FStreams; |
A list that gives an overview over all media streams that have been found in the media file. |
![]() |
property ReadProc: TAdMediaReadproc read FReadProc; |
Pointer to the read callback procedure |