Unit AdVideoTexture

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Contains a simple class for rendering videos in a texture.

Overview

Classes, Interfaces, Objects and Records

Name Description
record TAdVideoInfo Infos about the current video frame that are exchanged between the video plugin and the player.
record TAdAudioInfo Contains information about an audio stream.
record TAdVideoPosition Specifies the current position of the video.
record TAdMediaPacket Represents an decoded media package that is recived from the decoder.
Class TAdMediaStream Contains information about all media streams in a media file and gives the possibility to activate or deactivate specific streams.
Class TAdMediaStreamList Contains a list of media streams that have been found in the media file.
Class TAdMediaDecoder Abstract video decoder class that can be implemented to provide a new video decoder class.
Class TAdVideoMemory This class represents an element in the video decoder thread buffer.
Class TAdMediaHandler TAdMediaHandler is an abstract class that cares about handling the decoded media packets that come from the media decoder.
Class TAdMediaDecoderThread TAdMediaDecoder thread cares about decoding the video data and passing it to the registered media handlers.
Class TAdVideoHandler TAdVideoHandler is the standard media handler for video frames.
Class TAdCustomVideoTexture A simple object, that is capable of rendering video to a texture.
Class TAdVideoTexture TAdVideoPlayer is extends TAdCustomVideoTexture by the capability of actually playing the video with the right speed.

Functions and Procedures

procedure RegisterVideoDecoder(AVideoDecoder: TAdVideoDecoderClass);
procedure FillTimeInfo(var ATimeInfo: TAdVideoPosition);

Types

PAdVideoInfo = ˆTAdVideoInfo;
PAdAudioInfo = ˆTAdAudioInfo;
TAdMediaDecoderState = (...);
TAdMediaStreamType = (...);
TAdMediaReadproc = function(const Dest: Pointer; const Size:Cardinal): integer of object;
TAdVideoDecoderClass = class of TAdMediaDecoder;
TAdDecodeMediaPacketEvent = procedure(Sender: TObject; APckt: TAdMediaPacket) of object;
TAdVideoPlayerState = (...);

Variables

RegisteredVideoDecoders: TStringList;

Description

Functions and Procedures

procedure RegisterVideoDecoder(AVideoDecoder: TAdVideoDecoderClass);

Registeres a new video decoder class. This should normally be done in the initialization section of the corresponding unit.

procedure FillTimeInfo(var ATimeInfo: TAdVideoPosition);

Calculates the hour, minute and the seconds value from the timecode value.

Types

PAdVideoInfo = ˆTAdVideoInfo;

Pointer on TAdVideoInfo.

PAdAudioInfo = ˆTAdAudioInfo;

Pointer on TAdAudioInfo.

TAdMediaDecoderState = (...);

Current video decoding state of the video decoder plugin.

Values
  • vdIncomplete: The frame data was incomplete, we have to transfer more data to the video decoder.
  • vdHasFrame: The video decoder found a frame in the data we provided. It can be received by calling the "GetPacket" method.
  • vdEnd: There was a fatal error in the video stream or it indicated that the video has come to an end.
TAdMediaStreamType = (...);

Represents the type of an media stream that is opened using the Andorra Video Player interface.

Values
  • amVideo: This stream is an video stream and contains video data.
  • amAudio: This stream is an audio stream and contains audio data.
  • amData: This stream is an stream that may contain any data (e.g. subtitles).
TAdMediaReadproc = function(const Dest: Pointer; const Size:Cardinal): integer of object;

Procedure that is used by the video decder thread to copy undecoded video data from file/stream etc. to the video decoder.

TAdVideoDecoderClass = class of TAdMediaDecoder;

Class decleration for video decorders

TAdDecodeMediaPacketEvent = procedure(Sender: TObject; APckt: TAdMediaPacket) of object;

Event class trigerred when a non-video media packet is decoded by the video decoder thread.

TAdVideoPlayerState = (...);

Represents the state of a video player.

Values
  • vpStopped: The player is currently stopped
  • vpPaused: The player is paused, what means that it alread has data and simply doesn't go on displaying it.
  • vpPlaying: The player is currently playing the video data.

Variables

RegisteredVideoDecoders: TStringList;

Contains all registered video decoder classes.

SourceForge.net Logo


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