Changeset 1816 for trunk/MagicSoft/Cosy/videodev
- Timestamp:
- 03/12/03 14:05:24 (22 years ago)
- Location:
- trunk/MagicSoft/Cosy/videodev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/videodev/Writer.cc
r1804 r1816 14 14 struct timeval *date) 15 15 { 16 cout << "Writing PNG '" << fname << "'" << endl; 16 TString name = fname; 17 18 Timer t(date); 19 20 name += "_"; 21 name += t.GetMjd()-52000; 22 name += ".png"; 23 24 cout << "Writing PNG '" << name << "'" << endl; 17 25 18 26 // 19 27 // open file 20 28 // 21 FILE *fd = fopen( fname, "w");29 FILE *fd = fopen(name, "w"); 22 30 if (!fd) 23 31 { … … 113 121 } 114 122 115 void Writer::Ppm(const char *fname, const byte *img )123 void Writer::Ppm(const char *fname, const byte *img, struct timeval *date) 116 124 { 117 cout << "Writing PPM '" << fname << "'" << endl; 125 TString name = fname; 126 127 Timer t(date); 128 129 name += "_"; 130 name += t.GetMjd()-52000; 131 name += ".ppm"; 132 133 cout << "Writing PPM '" << name << "'" << endl; 118 134 119 135 // 120 136 // open file for writing 121 137 // 122 ofstream fout( fname);138 ofstream fout(name); 123 139 if (!fout) 124 140 { -
trunk/MagicSoft/Cosy/videodev/Writer.h
r1111 r1816 17 17 public: 18 18 19 static void Ppm(const char *fname, const byte *img );19 static void Ppm(const char *fname, const byte *img, struct timeval *date); 20 20 static void Png(const char *fname, const byte *buf, struct timeval *date); 21 21
Note:
See TracChangeset
for help on using the changeset viewer.