Changeset 1804 for trunk/MagicSoft/Cosy/videodev
- Timestamp:
- 03/02/03 17:08:13 (22 years ago)
- Location:
- trunk/MagicSoft/Cosy/videodev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/videodev/PngReader.cc
r1803 r1804 94 94 // Write bitmap data 95 95 // 96 static int first = 0;97 96 for (unsigned int y=0; y<576; y++) 98 97 for (unsigned int x=0; x<768; x++) -
trunk/MagicSoft/Cosy/videodev/Writer.cc
r1111 r1804 21 21 FILE *fd = fopen(fname, "w"); 22 22 if (!fd) 23 { 24 cout << "Warning: Cannot open file for writing." << endl; 23 25 return; 26 } 24 27 25 28 // … … 78 81 // Write Time Chunks 79 82 // 83 /* 80 84 if (date) 81 85 { … … 87 91 sprintf(text,"*** %s %s %.1f %i ***", tzname[0], tzname[1], 1.0/3600*timezone, daylight); 88 92 png_write_chunk(fPng, (png_byte*)"ZONE", (png_byte*)text, strlen(text)); 89 } 93 } 94 */ 90 95 91 96 // … … 117 122 ofstream fout(fname); 118 123 if (!fout) 124 { 125 cout << "Warning: Cannot open file for writing." << endl; 119 126 return; 127 } 120 128 121 129 //
Note:
See TracChangeset
for help on using the changeset viewer.