98 {
100 return false;
101
107
108 bool bAddBlankLine = false;
110 long pos = ftell(
m_f);
112
113 if (line[0] == '-' || line[0] == '.' || (line[0] >= '0' && line[0] <= '9')) {
114
115 fseek(
m_f, pos, SEEK_SET);
116 break;
117 }
118
119 if (!line.size()) {
121 bAddBlankLine = true;
122 }
123 }
124 else if (line.substr(0, 6) == "TITLE ") {
127 }
129 }
130 else if (line[0] == '#') {
131 if (bAddBlankLine) {
133 }
134 if (line[1]==' ')
136 else
139
140 bAddBlankLine = false;
141 }
142 else if (line.substr(0, 12) == "LUT_1D_SiZE ") {
143 printf("1DLUTs are not supported\n");
144 return false;
145 }
146 else if (line.substr(0, 12) == "LUT_3D_SIZE ") {
148 }
149 else if (line.substr(0, 19) == "LUT_3D_INPUT_RANGE ") {
151 const char* next =
getNext(line.c_str() + 19);
152 if (next) {
154 }
155 }
156 else if (line.substr(0, 11) == "DOMAIN_MIN ") {
158 const char* next =
getNext(line.c_str());
159 if (next) {
162 if (next) {
164 }
165 else
167 }
168 else {
170 }
171 }
172 else if (line.substr(0, 11) == "DOMAIN_MAX ") {
174 const char* next =
getNext(line.c_str());
175 if (next) {
178 if (next) {
180 }
181 else
183 }
184 else {
186 }
187 }
188 else if (line.substr(0, 18) == "LUT_IN_VIDEO_RANGE")
190 else if (line.substr(0, 19) == "LUT_OUT_VIDEO_RANGE")
192 else {
193 printf("Unknown keyword '%s'\n", line.c_str());
194 return false;
195 }
196 }
197
199 }
bool open()
Definition iccFromCube.cpp:253
std::string getTitle(const char *str)
Definition iccFromCube.cpp:264
bool m_bLutInVideoRange
Definition iccFromCube.cpp:329
bool m_bLutOutVideoRange
Definition iccFromCube.cpp:330