FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
Atil.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2024 by Graebert GmbH.
5//
6// Permission to use, copy, modify, and distribute this software in
7// object code form for any purpose and without fee is hereby granted,
8// provided that the above copyright notice appears in all copies and
9// that both that copyright notice and the limited warranty and
10// restricted rights notice below appear in all supporting
11// documentation.
12//
13// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17// UNINTERRUPTED OR ERROR FREE.
18
19namespace Atil
20{
21
22typedef signed char Int8;
23typedef unsigned char UInt8;
24typedef signed short Int16;
25typedef unsigned short UInt16;
26typedef signed int Int32;
27typedef unsigned int UInt32;
28typedef signed __int64 Int64;
29typedef unsigned __int64 UInt64;
30
32{
33public:
35};
36
124
125typedef unsigned char Data8;
126typedef unsigned short Data16;
127typedef unsigned int Data32;
128typedef unsigned __int64 Data64;
129
141
142typedef wchar_t Byte;
143
174
176{
177public:
179 RgbModel( int );
182};
183
185{
186public:
191
192 union {
193 struct {
198 } rgba;
199
200 struct {
201 Data8 blue;
202 Data8 green;
203 Data8 red;
204 Data8 alpha;
205 } bgra;
207 };
208
209};
210
212{
213public:
214 RgbPaletteModel(int = 256);
216 RgbPaletteModel(int, int, RgbColor const *);
218
219 virtual void setEntries(int, int, const RgbColor*);
220};
221
223{
224public:
226 virtual ~RgbGrayModel(void);
227};
228
229
231{
232public:
233 ImagePixel(DataModelAttributes::PixelType = DataModelAttributes::kData1);
235 bool operator!=(const ImagePixel&) const;
236 bool operator==(const ImagePixel&) const;
238};
239
241{
242public:
243 Size( int width, int height );
244};
245
247{
248public:
249 Offset( int , int );
250};
251
259
263
265{
266public:
267 Image(void);
268 Image(const Image &);
269 Image(const Atil::Size&, const Atil::DataModel*, Atil::ImagePixel, DataModel::TileSize = DataModel::kUnspecified);
270 Image(void*, int, int, const Atil::Size&, const Atil::DataModel*);
271 Image(RowProviderInterface*, DataModel::TileSize = DataModel::kUnspecified);
273 Image(FileReadDescriptor&, DataModel::TileSize = DataModel::kUnspecified);
275 bool isValid();
279
280};
281
283{
284public:
286};
287
288class StringBufferImpl;
290{
291public:
300
305 virtual ~StringBuffer();
306 virtual CharacterType type() const;
307 virtual int numDataBytes() const;
308 virtual const Byte* data() const;
309 virtual StringBuffer& set(const StringBuffer& string);
310 virtual StringBuffer& set(int, const Byte*, CharacterType = StringBuffer::kASCII);
311
312private:
313 StringBufferImpl* m_pImpl;
314};
315
328
330{
331public:
333 {
334 kCompression
335 };
336
338 virtual bool isRequired();
339};
340
349
359
374
376{
377public:
378 virtual ~ATILException();
380};
381
382}
383
384//==============================================================================
385
387{
388public:
390};
391
397
399{
400public:
402};
403
409
411{
412public:
414 {
415 kHigh
416 };
417};
418
424
426{
427public:
434};
435
@ kNone
Definition AddEnum.h:94
const Atil::StringBuffer * getMessage()
virtual ~ATILException()
virtual DataModelAttributes::DataType dataType() const
virtual ~DataModel()
virtual bool isCompatibleTileSize(DataModel::TileSize) const
virtual DataModelAttributes::DataModelType dataModelType() const
virtual DataModelAttributes::PixelType pixelType() const
virtual DataModelAttributes::BitFields bitFields() const
virtual bool operator==(const DataModel &dm) const
virtual DataModel::TileSize defaultTileSize() const
virtual DataModelAttributes::ChannelOrder channelOrder() const
DataModel(DataModelAttributes::DataType, DataModelAttributes::BitsPerPixel, int)
virtual bool operator!=(const DataModel &dm) const
static int bytesPerRow(Int32, DataModelAttributes::BitsPerPixel)
virtual DataModel * clone() const
virtual DataModelAttributes::BitsPerPixel bitsPerPixel() const
virtual bool isCompatibleDataSize(DataModelAttributes::BitsPerPixel dataSize) const
virtual int bitsUsedPerPixel() const
FileSpecifier(Atil::StringBuffer, Atil::FileSpecifier::Type)
static bool isCompatibleFormatCodec(Atil::ImageFormatCodec *, Atil::DataModel *, Atil::Size)
virtual ~FileSpecifier()
bool setFileSpecifier(Atil::FileSpecifier)
int writeImageFrame(Atil::RowProviderInterface *)
Atil::FormatCodecPropertyInterface * getProperty(Atil::FormatCodecPropertyInterface::PropertyIdentifier)
void setProperty(Atil::FormatCodecPropertyInterface *)
static bool isCompatibleFormatCodec(Atil::ImageFormatCodec *, Atil::DataModel *, Atil::Size)
Atil::FormatCodecPropertySetIterator * newPropertySetIterator()
void createImageFrame(Atil::DataModel, Atil::Size)
FileWriteDescriptor(Atil::ImageFormatCodec *)
void getPropertyLimits(int &min, int &max)
Atil::FormatCodecPropertyInterface * openProperty()
Atil::RowProviderInterface * read(const Atil::Size &, const Atil::Offset &, Atil::Orientation) const
Image(const Atil::Size &, const Atil::DataModel *, Atil::ImagePixel, DataModel::TileSize=DataModel::kUnspecified)
Atil::Size size()
Image(RowProviderInterface *, DataModel::TileSize=DataModel::kUnspecified)
bool isValid()
Image(FileReadDescriptor &, DataModel::TileSize=DataModel::kUnspecified)
Image(const Image &)
Image(void *, int, int, const Atil::Size &, const Atil::DataModel *)
Image(RowProviderInterface *, Atil::Orientation, DataModel::TileSize=DataModel::kUnspecified)
Atil::RowProviderInterface * read(const Atil::Size &, const Atil::Offset &) const
DataModelAttributes::PixelType type
Definition Atil.h:237
ImagePixel(DataModelAttributes::PixelType=DataModelAttributes::kData1)
bool operator==(const ImagePixel &) const
const ImagePixel & setToZero()
bool operator!=(const ImagePixel &) const
Offset(int, int)
RgbColor(Data32)
RgbColor(Data8, Data8, Data8, Data8)
Data8 alpha
Definition Atil.h:197
Data32 packed
Definition Atil.h:206
Data8 blue
Definition Atil.h:196
Data8 red
Definition Atil.h:194
RgbColor(Data8, Data8, Data8)
Data8 green
Definition Atil.h:195
virtual ~RgbGrayModel(void)
RgbPaletteModel(int, int, RgbColor const *)
virtual ~RgbPaletteModel()
virtual void setEntries(int, int, const RgbColor *)
RgbPaletteModel(int, RgbColor const *)
Atil::DataModel dataModel()
Size(int width, int height)
StringBuffer(const StringBuffer &)
virtual const Byte * data() const
StringBuffer(int, const Atil::Byte *, Atil::StringBuffer::CharacterType=Atil::StringBuffer::kASCII)
virtual CharacterType type() const
virtual StringBuffer & set(int, const Byte *, CharacterType=StringBuffer::kASCII)
virtual ~StringBuffer()
StringBuffer(int, Atil::StringBuffer::CharacterType=Atil::StringBuffer::kASCII)
virtual StringBuffer & set(const StringBuffer &string)
virtual int numDataBytes() const
void selectCompression(PngCompressionType::Compression)
bool selectCompression(TiffCompressionType::Compression)
Definition Atil.h:20
Orientation
Definition Atil.h:131
@ kLeftRightTopDown
Definition Atil.h:136
@ kLeftRightBottomUp
Definition Atil.h:138
@ kTopDownRightLeft
Definition Atil.h:133
@ kBottomUpRightLeft
Definition Atil.h:135
@ kRightLeftTopDown
Definition Atil.h:137
@ kRightLeftBottomUp
Definition Atil.h:139
@ kTopDownLeftRight
Definition Atil.h:132
@ kBottomUpLeftRight
Definition Atil.h:134
unsigned int Data32
Definition Atil.h:127
signed char Int8
Definition Atil.h:22
unsigned short Data16
Definition Atil.h:126
signed int Int32
Definition Atil.h:26
unsigned __int64 UInt64
Definition Atil.h:29
unsigned short UInt16
Definition Atil.h:25
wchar_t Byte
Definition Atil.h:142
signed __int64 Int64
Definition Atil.h:28
unsigned __int64 Data64
Definition Atil.h:128
unsigned char Data8
Definition Atil.h:125
signed short Int16
Definition Atil.h:24
unsigned int UInt32
Definition Atil.h:27
unsigned char UInt8
Definition Atil.h:23