IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 27, 2005, 5:06:32 AM (21 years ago)
Author:
eugene
Message:

converting to use libkapa commands instead of raw graph commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/jpeg.c

    r3693 r5846  
    4646    if (!filename[0]) strcpy (filename, "Ximage.jpg");
    4747    strcpy (type, "JPEG");
     48    KiiJpeg (Source, filename);
    4849  } else {
    4950    if (!GetGraph (NULL, &Source, &Nsource)) return (FALSE);
    5051    if (!filename[0]) strcpy (filename, "Xgraph.png");
     52    SendGraphCommand (Source, 4, type);
     53    SendGraphCommand (Source, 16, "LEN: %11d", strlen(filename));
     54    write (Source, filename, strlen(filename));
     55    read (Source, buffer, 4);
    5156  }
    52 
    53   SendGraphCommand (Source, 4, type);
    54   SendGraphCommand (Source, 16, "LEN: %11d", strlen(filename));
    55   write (Source, filename, strlen(filename));
    56   read (Source, buffer, 4);
    57 
    5857  return (TRUE);
    5958}
Note: See TracChangeset for help on using the changeset viewer.