Class TAvifWriter

Unit

Declaration

type TAvifWriter = class(TObject)

Description

Writer for AVIF images or animations (not derived from TFPCustomImageWriter)

Hierarchy

Overview

Fields

Protected FAvifOutput: avifRWData;
Protected FEncoder: PAvifEncoder;
Protected FEncoderWrap: TObject;
Protected FIgnoreAlpha: boolean;
Protected FImagesCount: uint32;
Protected FLossless: boolean;
Protected FOnlyOneImage: boolean;
Protected FPixelFormat: avifPixelFormat;
Protected FQuality0to100: integer;
Protected FQualityAlpha0to100: integer;

Methods

Public constructor Create( AQuality0to100: integer = AVIF_BGRA_DEFAULT_QUALITY; ASpeed0to10: integer = AVIF_BGRA_SPEED_DEFAULT; APixelFormat: avifPixelFormat = AVIF_BGRA_PIXEL_FORMAT_DEFAULT; AIgnoreAlpha: boolean = False); virtual; overload;
Public destructor Destroy; override;
Public class function CreateEncoder: PAvifEncoder;
Public function GetOutputSize: NativeUInt;
Public function SaveToFile(AFileName: string): NativeUInt;
Public function SaveToMemory(AData: Pointer; ASize: NativeUInt): NativeUInt;
Public function SaveToStream(AStream: TStream): NativeUInt;
Protected function GetEncoder: avifCodecChoice;
Protected function GetLossless: boolean;
Protected function GetMaxThreads: integer;
Protected function GetSpeed: integer;
Protected function GetTimescale: uint64;
Public procedure AddImage(ABitmap: TBGRACustomBitmap; ADurationMs: cardinal=0);
Public procedure Close;
Public class procedure DestroyEncoder(var AEncoder: PAvifEncoder);
Protected procedure ApplyQuality;
Protected procedure EncoderFinish;
Protected procedure SetEncoder(ACodec: avifCodecChoice);
Protected procedure SetIgnoreAlpha(AValue: boolean);
Protected procedure SetLossless(AValue: boolean);
Protected procedure SetMaxThreads(AMT: integer);
Protected procedure SetQuality(AValue: integer);
Protected procedure SetQualityAlpha(AValue: integer);
Protected procedure SetSpeed(ASpeed: integer);
Protected procedure SetTimescale(ATimescale: uint64);

Properties

Public property Encoder: avifCodecChoice read GetEncoder write SetEncoder;
Public property IgnoreAlpha: boolean read FIgnoreAlpha write SetIgnoreAlpha;
Public property Lossless: boolean read GetLossless write SetLossless;
Public property MaxThreads: integer read GetMaxThreads write SetMaxThreads;
Public property OnlyOneImage: boolean read FOnlyOneImage write FOnlyOneImage;
Public property PixelFormat: avifPixelFormat read FPixelFormat write FPixelFormat;
Public property Quality: integer read FQuality0to100 write SetQuality;
Public property QualityAlpha: integer read FQualityAlpha0to100 write SetQualityAlpha;
Public property Speed: integer read GetSpeed write SetSpeed;
Public property Timescale: uint64 read GetTimescale write SetTimescale;

Description

Fields

Protected FAvifOutput: avifRWData;

This item has no description.

Protected FEncoder: PAvifEncoder;

This item has no description.

Protected FEncoderWrap: TObject;

This item has no description.

Protected FIgnoreAlpha: boolean;

This item has no description.

Protected FImagesCount: uint32;

This item has no description.

Protected FLossless: boolean;

This item has no description.

Protected FOnlyOneImage: boolean;

This item has no description.

Protected FPixelFormat: avifPixelFormat;

This item has no description.

Protected FQuality0to100: integer;

TEncoderBase;

Protected FQualityAlpha0to100: integer;

This item has no description.

Methods

Public constructor Create( AQuality0to100: integer = AVIF_BGRA_DEFAULT_QUALITY; ASpeed0to10: integer = AVIF_BGRA_SPEED_DEFAULT; APixelFormat: avifPixelFormat = AVIF_BGRA_PIXEL_FORMAT_DEFAULT; AIgnoreAlpha: boolean = False); virtual; overload;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public class function CreateEncoder: PAvifEncoder;

This item has no description.

Public function GetOutputSize: NativeUInt;

This item has no description.

Public function SaveToFile(AFileName: string): NativeUInt;

This item has no description.

Public function SaveToMemory(AData: Pointer; ASize: NativeUInt): NativeUInt;

This item has no description.

Public function SaveToStream(AStream: TStream): NativeUInt;

This item has no description.

Protected function GetEncoder: avifCodecChoice;

This item has no description.

Protected function GetLossless: boolean;

This item has no description.

Protected function GetMaxThreads: integer;

This item has no description.

Protected function GetSpeed: integer;

This item has no description.

Protected function GetTimescale: uint64;

This item has no description.

Public procedure AddImage(ABitmap: TBGRACustomBitmap; ADurationMs: cardinal=0);

This item has no description.

Public procedure Close;

This item has no description.

Public class procedure DestroyEncoder(var AEncoder: PAvifEncoder);

This item has no description.

Protected procedure ApplyQuality;

This item has no description.

Protected procedure EncoderFinish;

This item has no description.

Protected procedure SetEncoder(ACodec: avifCodecChoice);

This item has no description.

Protected procedure SetIgnoreAlpha(AValue: boolean);

This item has no description.

Protected procedure SetLossless(AValue: boolean);

This item has no description.

Protected procedure SetMaxThreads(AMT: integer);

This item has no description.

Protected procedure SetQuality(AValue: integer);

This item has no description.

Protected procedure SetQualityAlpha(AValue: integer);

This item has no description.

Protected procedure SetSpeed(ASpeed: integer);

This item has no description.

Protected procedure SetTimescale(ATimescale: uint64);

This item has no description.

Properties

Public property Encoder: avifCodecChoice read GetEncoder write SetEncoder;

This item has no description.

Public property IgnoreAlpha: boolean read FIgnoreAlpha write SetIgnoreAlpha;

frequency in Hertz

Public property Lossless: boolean read GetLossless write SetLossless;

This item has no description.

Public property MaxThreads: integer read GetMaxThreads write SetMaxThreads;

This item has no description.

Public property OnlyOneImage: boolean read FOnlyOneImage write FOnlyOneImage;

This item has no description.

Public property PixelFormat: avifPixelFormat read FPixelFormat write FPixelFormat;

This item has no description.

Public property Quality: integer read FQuality0to100 write SetQuality;

This item has no description.

Public property QualityAlpha: integer read FQualityAlpha0to100 write SetQualityAlpha;

This item has no description.

Public property Speed: integer read GetSpeed write SetSpeed;

This item has no description.

Public property Timescale: uint64 read GetTimescale write SetTimescale;

This item has no description.