IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16010


Ignore:
Timestamp:
Jan 6, 2008, 1:41:02 PM (18 years ago)
Author:
eugene
Message:

adding channel and colormap commands

Location:
trunk/Ohana/src/libkapa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libkapa/include/kapa.h

    r15620 r16010  
    124124
    125125/* KiiPicture.c */
     126int KiiSetChannel (int fd, int channel);
     127int KiiSetColormap (int fd, char *colormap);
    126128int KiiNewPicture1D (int fd, KiiImage *image, KapaImageData *data, Coords *coords);
    127129int KiiNewPicture2D (int fd, KiiImage *image, KapaImageData *data, Coords *coords);
  • trunk/Ohana/src/libkapa/src/KiiPicture.c

    r14590 r16010  
    11# include <kapa_internal.h>
     2
     3int KiiSetChannel (int fd, int channel) {
     4
     5  KiiSendCommand (fd, 4, "CHAN"); /* tell kapa to look for the incoming image */
     6  KiiSendMessage (fd, "%1d", channel);
     7 
     8  KiiWaitAnswer (fd, "DONE");
     9  return (TRUE);
     10}
     11
     12int KiiSetColormap (int fd, char *colormap) {
     13
     14  KiiSendCommand (fd, 4, "CMAP"); /* tell kapa to look for the incoming image */
     15  KiiSendMessage (fd, "%s", colormap);
     16 
     17  KiiWaitAnswer (fd, "DONE");
     18  return (TRUE);
     19}
    220
    321int KiiNewPicture1D (int fd, KiiImage *image, KapaImageData *data, Coords *coords) {
Note: See TracChangeset for help on using the changeset viewer.