Description | Hierarchy | Fields | Methods | Properties |
type TAdVideoHandler = class(TAdMediaHandler)
TAdVideoHandler is the standard media handler for video frames. It is used within TAdVideoTexture. TAdVideoHandler contains a list of video frames that may be accessed by the "GetNextFrame" function.
![]() |
constructor Create(ABufferSize: Integer; AStreamIndex: Integer); |
![]() |
destructor Destroy; override; |
![]() |
procedure FeedPackage(var APckt: TAdMediaPacket); override; |
![]() |
procedure Notify(AState: TAdMediaDecoderState); override; |
![]() |
procedure FlushBuffer; override; |
![]() |
function NeedsData: boolean; override; |
![]() |
function Overflow: Boolean; override; |
![]() |
function GetNextFrame: TAdVideoMemory; |
![]() |
property CriticalSection: TCriticalSection read FCriticalSection; |
![]() |
property StreamIndex: Integer read FStreamIndex write FStreamIndex; |
![]() |
destructor Destroy; override; |
Destroys the instance of TAdVideoHandler. |
![]() |
procedure FeedPackage(var APckt: TAdMediaPacket); override; |
This function is called, when a media packet was decoded by the media decoder. The video handler checks the type of the package and stores the data in an internal buffer and passes it to the graphics engine. |
![]() |
procedure Notify(AState: TAdMediaDecoderState); override; |
This method is called when the video handler should be notified by the media decoder about a special state change (e.g. the end of the stream). |
![]() |
procedure FlushBuffer; override; |
Flushs the video frame buffer. |
![]() |
function NeedsData: boolean; override; |
Returns true, when the video handler experiences a buffer underrun. |
![]() |
function Overflow: Boolean; override; |
Returns true, when the video handler experiences a buffer overflow. |
![]() |
function GetNextFrame: TAdVideoMemory; |
Returns the next frame in the video memory queue that can be processed by the graphic engine. Returns nil if no frame is available. |
![]() |
property CriticalSection: TCriticalSection read FCriticalSection; |
Critical section that is used to synchronize access on the decoded texture data. |
![]() |
property StreamIndex: Integer read FStreamIndex write FStreamIndex; |
The index of the video stream. |