Class TAvifReader

Unit

Declaration

type TAvifReader = class(TObject)

Description

Reader for AVIF images or animations (not derived from TFPCustomImageReader)

Hierarchy

Overview

Fields

Protected FDecoder: PavifDecoder;
Protected FDecoderWrap: TObject;
Protected FHeight: uint32;
Protected FImageDurationSeconds: double;
Protected FImageDurationTimescales: UInt64;
Protected FStream: TStream;
Protected FStreamOwned: boolean;
Protected FWidth: uint32;

Methods

Public constructor Create(AFileName: string); virtual; overload;
Public constructor Create(AStream: TStream; AStreamOwned: boolean = false); virtual; overload;
Public destructor Destroy; override;
Public class function CreateDecoder: PavifDecoder;
Public function GetNextImage(AOutBitmap: TBGRACustomBitmap): boolean;
Public function GetNthImage(AOutBitmap: TBGRACustomBitmap; AImageIndex: uint32): boolean;
Protected function GetDecoder: avifCodecChoice;
Public class procedure DestroyDecoder(var ADecoder: PavifDecoder);
Protected procedure Close;
Protected procedure Init(AStream: TStream; AStreamOwned: boolean);
Protected procedure SetDecoder(ACodec: avifCodecChoice);

Properties

Public property Decoder: avifCodecChoice read GetDecoder write SetDecoder;
Public property Height: uint32 read FHeight;
Public property ImageCount: uint32 read GetImageCount;
Public property ImageDurationSeconds: double read FImageDurationSeconds;
Public property ImageDurationTimescales: uint64 read FImageDurationTimescales;
Public property ImageIndex: integer read GetImageIndex;
Public property RepetitionCount: integer read GetRepetitionCount;
Public property SequenceDuration: double read GetSequenceDuration;
Public property Timescale: uint64 read GetTimescale;
Public property Width: uint32 read FWidth;

Description

Fields

Protected FDecoder: PavifDecoder;

This item has no description.

Protected FDecoderWrap: TObject;

This item has no description.

Protected FHeight: uint32;

This item has no description.

Protected FImageDurationSeconds: double;

This item has no description.

Protected FImageDurationTimescales: UInt64;

This item has no description.

Protected FStream: TStream;

TDecoderBase;

Protected FStreamOwned: boolean;

This item has no description.

Protected FWidth: uint32;

This item has no description.

Methods

Public constructor Create(AFileName: string); virtual; overload;

call before unloading libavif

Public constructor Create(AStream: TStream; AStreamOwned: boolean = false); virtual; overload;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public class function CreateDecoder: PavifDecoder;

This item has no description.

Public function GetNextImage(AOutBitmap: TBGRACustomBitmap): boolean;

This item has no description.

Public function GetNthImage(AOutBitmap: TBGRACustomBitmap; AImageIndex: uint32): boolean;

This item has no description.

Protected function GetDecoder: avifCodecChoice;

This item has no description.

Public class procedure DestroyDecoder(var ADecoder: PavifDecoder);

This item has no description.

Protected procedure Close;

This item has no description.

Protected procedure Init(AStream: TStream; AStreamOwned: boolean);

This item has no description.

Protected procedure SetDecoder(ACodec: avifCodecChoice);

This item has no description.

Properties

Public property Decoder: avifCodecChoice read GetDecoder write SetDecoder;

This item has no description.

Public property Height: uint32 read FHeight;

This item has no description.

Public property ImageCount: uint32 read GetImageCount;

This item has no description.

Public property ImageDurationSeconds: double read FImageDurationSeconds;

This item has no description.

Public property ImageDurationTimescales: uint64 read FImageDurationTimescales;

This item has no description.

Public property ImageIndex: integer read GetImageIndex;

This item has no description.

Public property RepetitionCount: integer read GetRepetitionCount;

This item has no description.

Public property SequenceDuration: double read GetSequenceDuration;

This item has no description.

Public property Timescale: uint64 read GetTimescale;

This item has no description.

Public property Width: uint32 read FWidth;

This item has no description.