Lines Matching refs:outputStream
142 ofstream outputStream(filename, ios::trunc); in main() local
143 if (outputStream.good()) { in main()
147 outputStream << "// generated with lutgen " << filename.c_str() << endl; in main()
148 outputStream << "// 3D LUT stored as an RGB16F texture, in GL order" << endl; in main()
149 outputStream << "// Size is " << gSize << "x" << gSize << "x" << gSize << endl; in main()
158 … outputStream << "const size_t LUT_" << src << "_TO_" << dst << "_SIZE = " << gSize << endl; in main()
159 outputStream << "const uint16_t LUT_" << src << "_TO_" << dst << "[] = {"; in main()
161 outputStream << "// From " << src << " to " << dst << endl; in main()
167 if (x % 4 == 0) outputStream << endl << " "; in main()
175 outputStream << "0x" << setfill('0') << setw(4) << hex << r << ", "; in main()
176 outputStream << "0x" << setfill('0') << setw(4) << hex << g << ", "; in main()
177 outputStream << "0x" << setfill('0') << setw(4) << hex << b << ", "; in main()
183 outputStream << endl << "}; // end LUT" << endl; in main()
186 outputStream << endl; in main()
187 outputStream.flush(); in main()
188 outputStream.close(); in main()