Class TAdVideoHandler

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdVideoHandler = class(TAdMediaHandler)

Description

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.

Hierarchy

Overview

Methods

Public constructor Create(ABufferSize: Integer; AStreamIndex: Integer);
Public destructor Destroy; override;
Public procedure FeedPackage(var APckt: TAdMediaPacket); override;
Public procedure Notify(AState: TAdMediaDecoderState); override;
Public procedure FlushBuffer; override;
Public function NeedsData: boolean; override;
Public function Overflow: Boolean; override;
Public function GetNextFrame: TAdVideoMemory;

Properties

Public property CriticalSection: TCriticalSection read FCriticalSection;
Public property StreamIndex: Integer read FStreamIndex write FStreamIndex;

Description

Methods

Public constructor Create(ABufferSize: Integer; AStreamIndex: Integer);

Creates an instance of TAdVideoHandler.

Parameters
ABufferSize
specifies the number of frames that should at least be buffered
AStreamIndex
specifies the index of the media stream the video handler should take care of. The stream index can be changed over the "StreamIndex" property. TAdVideoHandler doesn't activate the stream, you have to do this yourself.
Public destructor Destroy; override;

Destroys the instance of TAdVideoHandler.

Public 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.

Public 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).

Public procedure FlushBuffer; override;

Flushs the video frame buffer.

Public function NeedsData: boolean; override;

Returns true, when the video handler experiences a buffer underrun.

Public function Overflow: Boolean; override;

Returns true, when the video handler experiences a buffer overflow.

Public 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.

Properties

Public property CriticalSection: TCriticalSection read FCriticalSection;

Critical section that is used to synchronize access on the decoded texture data.

Public property StreamIndex: Integer read FStreamIndex write FStreamIndex;

The index of the video stream.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:32:00