IccMAX 2.1.27
Color Profile Tools
Loading...
Searching...
No Matches
CIccPixelBuf Class Reference

#include <IccUtil.h>

Public Member Functions

 CIccPixelBuf (int nChan=icDefaultPixelBufSize)
 
 ~CIccPixelBuf ()
 
icFloatNumberget ()
 
 operator icFloatNumber * ()
 
 operator void * ()
 
icFloatNumberoperator[] (int nPos)
 

Protected Attributes

icFloatNumber m_buf [icDefaultPixelBufSize]
 
icFloatNumberm_pixel
 

Detailed Description

Constructor & Destructor Documentation

◆ CIccPixelBuf()

CIccPixelBuf::CIccPixelBuf ( int  nChan = icDefaultPixelBufSize)
2596 : m_buf{}
2597{
2598 if (nChan>icDefaultPixelBufSize) {
2599 m_pixel = new icFloatNumber[nChan];
2600 }
2601 else {
2602 m_pixel = m_buf;
2603 }
2604}
float icFloatNumber
Definition IccDefs.h:101
#define icDefaultPixelBufSize
Definition IccUtil.h:373
icFloatNumber m_buf[icDefaultPixelBufSize]
Definition IccUtil.h:386
icFloatNumber * m_pixel
Definition IccUtil.h:387

References m_buf.

Referenced by CIccCfgColorData::fromLegacy(), main(), and main().

+ Here is the caller graph for this function:

◆ ~CIccPixelBuf()

CIccPixelBuf::~CIccPixelBuf ( )
2607{
2608 if (m_pixel && m_pixel!=m_buf)
2609 delete [] m_pixel;
2610}

References m_buf, and m_pixel.

Member Function Documentation

◆ get()

icFloatNumber * CIccPixelBuf::get ( )
inline
380{ return m_pixel;}

References m_pixel.

Referenced by main().

+ Here is the caller graph for this function:

◆ operator icFloatNumber *()

CIccPixelBuf::operator icFloatNumber * ( )
inline
382{ return m_pixel; }

References m_pixel.

◆ operator void *()

CIccPixelBuf::operator void * ( )
inline
383{ return m_pixel; }

References m_pixel.

◆ operator[]()

icFloatNumber & CIccPixelBuf::operator[] ( int  nPos)
inline
379{ return m_pixel[nPos]; }

References m_pixel.

Referenced by CIccCfgColorData::fromLegacy(), and main().

+ Here is the caller graph for this function:

Field Documentation

◆ m_buf

icFloatNumber CIccPixelBuf::m_buf[icDefaultPixelBufSize]
protected

Referenced by CIccPixelBuf(), and ~CIccPixelBuf().

◆ m_pixel

icFloatNumber* CIccPixelBuf::m_pixel
protected

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