Class TAvifWriter
Unit
Declaration
type TAvifWriter = class(TObject)
Description
Writer for AVIF images or animations (not derived from TFPCustomImageWriter)
Hierarchy
- TObject
- TAvifWriter
Overview
Fields
![]() |
FAvifOutput: avifRWData; |
![]() |
FEncoder: PAvifEncoder; |
![]() |
FEncoderWrap: TObject; |
![]() |
FIgnoreAlpha: boolean; |
![]() |
FImagesCount: uint32; |
![]() |
FLossless: boolean; |
![]() |
FOnlyOneImage: boolean; |
![]() |
FPixelFormat: avifPixelFormat; |
![]() |
FQuality0to100: integer; |
![]() |
FQualityAlpha0to100: integer; |
Methods
![]() |
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; |
![]() |
destructor Destroy; override; |
![]() |
class function CreateEncoder: PAvifEncoder; |
![]() |
function GetOutputSize: NativeUInt; |
![]() |
function SaveToFile(AFileName: string): NativeUInt; |
![]() |
function SaveToMemory(AData: Pointer; ASize: NativeUInt): NativeUInt; |
![]() |
function SaveToStream(AStream: TStream): NativeUInt; |
![]() |
function GetEncoder: avifCodecChoice; |
![]() |
function GetLossless: boolean; |
![]() |
function GetMaxThreads: integer; |
![]() |
function GetSpeed: integer; |
![]() |
function GetTimescale: uint64; |
![]() |
procedure AddImage(ABitmap: TBGRACustomBitmap; ADurationMs: cardinal=0); |
![]() |
procedure Close; |
![]() |
class procedure DestroyEncoder(var AEncoder: PAvifEncoder); |
![]() |
procedure ApplyQuality; |
![]() |
procedure EncoderFinish; |
![]() |
procedure SetEncoder(ACodec: avifCodecChoice); |
![]() |
procedure SetIgnoreAlpha(AValue: boolean); |
![]() |
procedure SetLossless(AValue: boolean); |
![]() |
procedure SetMaxThreads(AMT: integer); |
![]() |
procedure SetQuality(AValue: integer); |
![]() |
procedure SetQualityAlpha(AValue: integer); |
![]() |
procedure SetSpeed(ASpeed: integer); |
![]() |
procedure SetTimescale(ATimescale: uint64); |
Properties
![]() |
property Encoder: avifCodecChoice read GetEncoder write SetEncoder; |
![]() |
property IgnoreAlpha: boolean read FIgnoreAlpha write SetIgnoreAlpha; |
![]() |
property Lossless: boolean read GetLossless write SetLossless; |
![]() |
property MaxThreads: integer read GetMaxThreads write SetMaxThreads; |
![]() |
property OnlyOneImage: boolean read FOnlyOneImage write FOnlyOneImage; |
![]() |
property PixelFormat: avifPixelFormat read FPixelFormat write FPixelFormat; |
![]() |
property Quality: integer read FQuality0to100 write SetQuality; |
![]() |
property QualityAlpha: integer read FQualityAlpha0to100 write SetQualityAlpha; |
![]() |
property Speed: integer read GetSpeed write SetSpeed; |
![]() |
property Timescale: uint64 read GetTimescale write SetTimescale; |
Description
Fields
![]() |
FAvifOutput: avifRWData; |
This item has no description. |
![]() |
FEncoder: PAvifEncoder; |
This item has no description. |
![]() |
FEncoderWrap: TObject; |
This item has no description. |
![]() |
FIgnoreAlpha: boolean; |
This item has no description. |
![]() |
FImagesCount: uint32; |
This item has no description. |
![]() |
FLossless: boolean; |
This item has no description. |
![]() |
FOnlyOneImage: boolean; |
This item has no description. |
![]() |
FPixelFormat: avifPixelFormat; |
This item has no description. |
![]() |
FQuality0to100: integer; |
TEncoderBase; |
![]() |
FQualityAlpha0to100: integer; |
This item has no description. |
Methods
![]() |
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. |
![]() |
destructor Destroy; override; |
This item has no description. |
![]() |
class function CreateEncoder: PAvifEncoder; |
This item has no description. |
![]() |
function GetOutputSize: NativeUInt; |
This item has no description. |
![]() |
function SaveToFile(AFileName: string): NativeUInt; |
This item has no description. |
![]() |
function SaveToMemory(AData: Pointer; ASize: NativeUInt): NativeUInt; |
This item has no description. |
![]() |
function SaveToStream(AStream: TStream): NativeUInt; |
This item has no description. |
![]() |
function GetEncoder: avifCodecChoice; |
This item has no description. |
![]() |
function GetLossless: boolean; |
This item has no description. |
![]() |
function GetMaxThreads: integer; |
This item has no description. |
![]() |
function GetSpeed: integer; |
This item has no description. |
![]() |
function GetTimescale: uint64; |
This item has no description. |
![]() |
procedure AddImage(ABitmap: TBGRACustomBitmap; ADurationMs: cardinal=0); |
This item has no description. |
![]() |
procedure Close; |
This item has no description. |
![]() |
class procedure DestroyEncoder(var AEncoder: PAvifEncoder); |
This item has no description. |
![]() |
procedure ApplyQuality; |
This item has no description. |
![]() |
procedure EncoderFinish; |
This item has no description. |
![]() |
procedure SetEncoder(ACodec: avifCodecChoice); |
This item has no description. |
![]() |
procedure SetIgnoreAlpha(AValue: boolean); |
This item has no description. |
![]() |
procedure SetLossless(AValue: boolean); |
This item has no description. |
![]() |
procedure SetMaxThreads(AMT: integer); |
This item has no description. |
![]() |
procedure SetQuality(AValue: integer); |
This item has no description. |
![]() |
procedure SetQualityAlpha(AValue: integer); |
This item has no description. |
![]() |
procedure SetSpeed(ASpeed: integer); |
This item has no description. |
![]() |
procedure SetTimescale(ATimescale: uint64); |
This item has no description. |
Properties
![]() |
property Encoder: avifCodecChoice read GetEncoder write SetEncoder; |
This item has no description. |
![]() |
property IgnoreAlpha: boolean read FIgnoreAlpha write SetIgnoreAlpha; |
frequency in Hertz |
![]() |
property Lossless: boolean read GetLossless write SetLossless; |
This item has no description. |
![]() |
property MaxThreads: integer read GetMaxThreads write SetMaxThreads; |
This item has no description. |
![]() |
property OnlyOneImage: boolean read FOnlyOneImage write FOnlyOneImage; |
This item has no description. |
![]() |
property PixelFormat: avifPixelFormat read FPixelFormat write FPixelFormat; |
This item has no description. |
![]() |
property Quality: integer read FQuality0to100 write SetQuality; |
This item has no description. |
![]() |
property QualityAlpha: integer read FQualityAlpha0to100 write SetQualityAlpha; |
This item has no description. |
![]() |
property Speed: integer read GetSpeed write SetSpeed; |
This item has no description. |
![]() |
property Timescale: uint64 read GetTimescale write SetTimescale; |
This item has no description. |