EHS
ehs::Img Class Reference

#include <Img.h>

Inheritance diagram for ehs::Img:
ehs::BaseObj

Public Member Functions

 ~Img () override
 
 Img ()
 
 Img (const Str_8 &filePath)
 
 Img (Str_8 id, UInt_8 byteDepth, UInt_8 channels, const Vec2_u64 &resolution, const Byte *data)
 
 Img (Str_8 id, UInt_8 byteDepth, UInt_8 channels, const Vec2_u64 &resolution)
 
 Img (Img &&img) noexcept
 
 Img (const Img &img)
 
Imgoperator= (Img &&img) noexcept
 
Imgoperator= (const Img &img)
 
 operator const Byte * () const
 
 operator Byte * ()
 
void Release ()
 
UInt_64 GetHashId () const
 
void SetId (Str_8 newId)
 
Str_8 GetId () const
 
UInt_8 GetByteDepth () const
 
UInt_8 GetBitDepth () const
 
UInt_8 GetChannels () const
 
Vec2_u64 GetResolution () const
 
UInt_64 GetSize () const
 
void SetPixel (UInt_64 index, const Byte *pixel)
 
void GetPixel (UInt_64 index, Byte *pixel) const
 
void SetPixel (UInt_64 x, UInt_64 y, const Byte *pixel)
 
void GetPixel (UInt_64 x, UInt_64 y, Byte *pixel) const
 
void Resize (Resampling method, const Vec2_u64 &newResolution)
 
Img GetResized (Resampling method, const Vec2_u64 &newResolution) const
 
void ToRGBA ()
 
Img GetAsRGBA () const
 
void ToRGB ()
 
Img GetAsRGB () const
 
void ToMonoA ()
 
Img GetAsMonoA () const
 
void ToMono ()
 
Img GetAsMono () const
 
void To32 ()
 
Img GetAs32 () const
 
void To24 ()
 
Img GetAs24 () const
 
void To16 ()
 
Img GetAs16 () const
 
void To8 ()
 
Img GetAs8 () const
 
bool IsValid () const
 
bool Export (const Str_8 &filePath) const
 
- Public Member Functions inherited from ehs::BaseObj
virtual ~BaseObj ()
 
 BaseObj ()
 
 BaseObj (BaseObj &&base) noexcept
 
 BaseObj (const BaseObj &base)
 
BaseObjoperator= (BaseObj &&base) noexcept
 
BaseObjoperator= (const BaseObj &base)
 
bool operator== (const BaseObj &base) const
 
bool operator!= (const BaseObj &base) const
 
const TypeGetHierarchy () const
 
UInt_64 GetHierarchySize () const
 
bool HasType (UInt_64 typeHashId) const
 
bool HasType (const Char_8 *typeId) const
 
Type GetType () const
 
UInt_64 GetTypeIdSize () const
 
const Char_8GetTypeId () const
 
UInt_64 GetTypeHashId () const
 
virtual BaseObjClone () const
 

Static Public Member Functions

static bool HasCodec (UInt_64 hashExt)
 
static bool HasCodec (const Str_8 &ext)
 
static bool AddCodec (ImgCodec codec)
 
static const ImgCodecGetCodec (UInt_64 hashExt)
 
static const ImgCodecGetCodec (const Str_8 &ext)
 

Protected Attributes

UInt_64 hashId
 
Str_8 id
 
UInt_8 byteDepth
 
UInt_8 channels
 
Vec2_u64 resolution
 
UInt_64 size
 
Bytedata
 

Additional Inherited Members

- Protected Member Functions inherited from ehs::BaseObj
void AddType (const Char_8 *id)
 

Constructor & Destructor Documentation

◆ ~Img()

ehs::Img::~Img ( )
override

◆ Img() [1/6]

ehs::Img::Img ( )

◆ Img() [2/6]

ehs::Img::Img ( const Str_8 filePath)

◆ Img() [3/6]

ehs::Img::Img ( Str_8  id,
UInt_8  byteDepth,
UInt_8  channels,
const Vec2_u64 resolution,
const Byte data 
)

◆ Img() [4/6]

ehs::Img::Img ( Str_8  id,
UInt_8  byteDepth,
UInt_8  channels,
const Vec2_u64 resolution 
)

◆ Img() [5/6]

ehs::Img::Img ( Img &&  img)
noexcept

◆ Img() [6/6]

ehs::Img::Img ( const Img img)

Member Function Documentation

◆ AddCodec()

bool ehs::Img::AddCodec ( ImgCodec  codec)
static

◆ Export()

bool ehs::Img::Export ( const Str_8 filePath) const

◆ GetAs16()

Img ehs::Img::GetAs16 ( ) const

◆ GetAs24()

Img ehs::Img::GetAs24 ( ) const

◆ GetAs32()

Img ehs::Img::GetAs32 ( ) const

◆ GetAs8()

Img ehs::Img::GetAs8 ( ) const

◆ GetAsMono()

Img ehs::Img::GetAsMono ( ) const

◆ GetAsMonoA()

Img ehs::Img::GetAsMonoA ( ) const

◆ GetAsRGB()

Img ehs::Img::GetAsRGB ( ) const

◆ GetAsRGBA()

Img ehs::Img::GetAsRGBA ( ) const

◆ GetBitDepth()

UInt_8 ehs::Img::GetBitDepth ( ) const

◆ GetByteDepth()

UInt_8 ehs::Img::GetByteDepth ( ) const

◆ GetChannels()

UInt_8 ehs::Img::GetChannels ( ) const

◆ GetCodec() [1/2]

const ImgCodec * ehs::Img::GetCodec ( const Str_8 ext)
static

◆ GetCodec() [2/2]

const ImgCodec * ehs::Img::GetCodec ( UInt_64  hashExt)
static

◆ GetHashId()

UInt_64 ehs::Img::GetHashId ( ) const

◆ GetId()

Str_8 ehs::Img::GetId ( ) const

◆ GetPixel() [1/2]

void ehs::Img::GetPixel ( UInt_64  index,
Byte pixel 
) const

◆ GetPixel() [2/2]

void ehs::Img::GetPixel ( UInt_64  x,
UInt_64  y,
Byte pixel 
) const

◆ GetResized()

Img ehs::Img::GetResized ( Resampling  method,
const Vec2_u64 newResolution 
) const

◆ GetResolution()

Vec2_u64 ehs::Img::GetResolution ( ) const

◆ GetSize()

UInt_64 ehs::Img::GetSize ( ) const

◆ HasCodec() [1/2]

bool ehs::Img::HasCodec ( const Str_8 ext)
static

◆ HasCodec() [2/2]

bool ehs::Img::HasCodec ( UInt_64  hashExt)
static

◆ IsValid()

bool ehs::Img::IsValid ( ) const

◆ operator Byte *()

ehs::Img::operator Byte * ( )

◆ operator const Byte *()

ehs::Img::operator const Byte * ( ) const

◆ operator=() [1/2]

Img & ehs::Img::operator= ( const Img img)

◆ operator=() [2/2]

Img & ehs::Img::operator= ( Img &&  img)
noexcept

◆ Release()

void ehs::Img::Release ( )

◆ Resize()

void ehs::Img::Resize ( Resampling  method,
const Vec2_u64 newResolution 
)

◆ SetId()

void ehs::Img::SetId ( Str_8  newId)

◆ SetPixel() [1/2]

void ehs::Img::SetPixel ( UInt_64  index,
const Byte pixel 
)

◆ SetPixel() [2/2]

void ehs::Img::SetPixel ( UInt_64  x,
UInt_64  y,
const Byte pixel 
)

◆ To16()

void ehs::Img::To16 ( )

◆ To24()

void ehs::Img::To24 ( )

◆ To32()

void ehs::Img::To32 ( )

◆ To8()

void ehs::Img::To8 ( )

◆ ToMono()

void ehs::Img::ToMono ( )

◆ ToMonoA()

void ehs::Img::ToMonoA ( )

◆ ToRGB()

void ehs::Img::ToRGB ( )

◆ ToRGBA()

void ehs::Img::ToRGBA ( )

Member Data Documentation

◆ byteDepth

UInt_8 ehs::Img::byteDepth
protected

◆ channels

UInt_8 ehs::Img::channels
protected

◆ data

Byte* ehs::Img::data
protected

◆ hashId

UInt_64 ehs::Img::hashId
protected

◆ id

Str_8 ehs::Img::id
protected

◆ resolution

Vec2_u64 ehs::Img::resolution
protected

◆ size

UInt_64 ehs::Img::size
protected

The documentation for this class was generated from the following files: