Ignore:
Timestamp:
03/12/03 14:05:24 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/videodev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/videodev/Writer.cc

    r1804 r1816  
    1414                 struct timeval *date)
    1515{
    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;
    1725
    1826    //
    1927    // open file
    2028    //
    21     FILE *fd = fopen(fname, "w");
     29    FILE *fd = fopen(name, "w");
    2230    if (!fd)
    2331    {
     
    113121}
    114122
    115 void Writer::Ppm(const char *fname, const byte *img)
     123void Writer::Ppm(const char *fname, const byte *img, struct timeval *date)
    116124{
    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;
    118134
    119135    //
    120136    // open file for writing
    121137    //
    122     ofstream fout(fname);
     138    ofstream fout(name);
    123139    if (!fout)
    124140    {
  • trunk/MagicSoft/Cosy/videodev/Writer.h

    r1111 r1816  
    1717public:
    1818
    19     static void Ppm(const char *fname, const byte *img);
     19    static void Ppm(const char *fname, const byte *img, struct timeval *date);
    2020    static void Png(const char *fname, const byte *buf, struct timeval *date);
    2121
Note: See TracChangeset for help on using the changeset viewer.