Definition at line 115 of file iccApplyToLink.cpp.
◆ CCubeWriter()
CCubeWriter::CCubeWriter |
( |
| ) |
|
|
inline |
◆ ~CCubeWriter()
virtual CCubeWriter::~CCubeWriter |
( |
| ) |
|
|
inlinevirtual |
◆ begin()
Implements ILinkWriter.
Definition at line 160 of file iccApplyToLink.cpp.
161 {
164
165 if (nSrcSamples != 3) {
166 printf("# of source Samples is not 3\n");
167 return false;
168 }
169
170 if (nDstSamples != 3) {
171 printf("# of destination samples is not 3\n");
172 return false;
173 }
174
177 printf(
"Unable to open '%s'\n",
m_filename.c_str());
178 return false;
179 }
180
181 fprintf(
m_f,
"TITLE \"%s\"\n\n",
m_title.c_str());
182
183 fprintf(
m_f,
"# cube file created by iccApplyToLink version " ICCPROFLIBVER "\n#\n");
185 fprintf(
m_f,
"# Profiles applied (by profile description):\n");
186 m_pCmm->IterateXforms(
this);
187 }
189
190 fprintf(
m_f,
"LUT_3D_SIZE %d\n",
m_grid);
191
193 char fmt[100];
196 }
197
199
200 return true;
201 }
icUInt32Number icGetSpaceSamples(icColorSpaceSignature sig)
bool icIsNear(icFloatNumber v1, icFloatNumber v2, icFloatNumber nearRange)
Name: icIsNear.
unsigned int icUInt32Number
icFloatNumber m_fMinInput
icFloatNumber m_fMaxInput
References ICCPROFLIBVER, icGetSpaceSamples(), icIsNear(), m_f, m_filename, m_fMaxInput, m_fMinInput, m_grid, m_pCmm, m_precision, and m_title.
◆ finish()
virtual bool CCubeWriter::finish |
( |
| ) |
|
|
inlinevirtual |
◆ iterate()
virtual void CCubeWriter::iterate |
( |
const CIccXform * | pXform | ) |
|
|
inlinevirtual |
Definition at line 203 of file iccApplyToLink.cpp.
204 {
205 if (pXform) {
206 const CIccProfile* pProfile = pXform->GetProfile();
207 if (pProfile) {
209 std::string text;
211 fprintf(
m_f,
"# - %s\n", text.c_str());
212 }
213
214 }
215 }
216 }
bool icGetTagText(const CIccTag *pTag, std::string &text)
References icGetTagText(), icSigProfileDescriptionTag, and m_f.
◆ setCmm()
virtual void CCubeWriter::setCmm |
( |
CIccCmm * | pCmm | ) |
|
|
inlinevirtual |
◆ setFile()
virtual bool CCubeWriter::setFile |
( |
const char * | szOutputFile | ) |
|
|
inlinevirtual |
◆ setInputRange()
◆ setLutSize()
◆ setNextNode()
◆ setOption()
virtual void CCubeWriter::setOption |
( |
int | nOptionValue | ) |
|
|
inlinevirtual |
◆ setTitle()
virtual void CCubeWriter::setTitle |
( |
const char * | szTitle | ) |
|
|
inlinevirtual |
◆ m_f
FILE* CCubeWriter::m_f = nullptr |
|
protected |
◆ m_filename
std::string CCubeWriter::m_filename |
|
protected |
◆ m_fMaxInput
◆ m_fMinInput
◆ m_grid
int CCubeWriter::m_grid = 0 |
|
protected |
◆ m_pCmm
CIccCmm* CCubeWriter::m_pCmm = nullptr |
|
protected |
◆ m_precision
int CCubeWriter::m_precision = 4 |
|
protected |
◆ m_title
std::string CCubeWriter::m_title |
|
protected |
The documentation for this class was generated from the following file: