Changeset 40780
- Timestamp:
- Jun 6, 2019, 10:59:30 AM (7 years ago)
- Location:
- branches/eam_branches/ohana.20190329/src
- Files:
-
- 2 added
- 10 edited
-
kapa2/Makefile (modified) (1 diff)
-
kapa2/include/prototypes.h (modified) (1 diff)
-
kapa2/src/CheckPipe.c (modified) (1 diff)
-
kapa2/src/MemoryDump.c (added)
-
kapa2/src/args.c (modified) (1 diff)
-
kapa2/src/bDrawIt.c (modified) (1 diff)
-
kapa2/src/kapa.c (modified) (1 diff)
-
libkapa/include/kapa.h (modified) (1 diff)
-
libkapa/src/KapaWindow.c (modified) (1 diff)
-
opihi/cmd.data/Makefile (modified) (1 diff)
-
opihi/cmd.data/init.c (modified) (2 diffs)
-
opihi/cmd.data/kapamemory.c (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20190329/src/kapa2/Makefile
r39401 r40780 42 42 $(SRC)/bDrawObjects.$(ARCH).o $(SRC)/bDrawFrame.$(ARCH).o \ 43 43 $(SRC)/bDrawLabels.$(ARCH).o $(SRC)/bDrawIt.$(ARCH).o \ 44 $(SRC)/bDrawImage.$(ARCH).o \44 $(SRC)/bDrawImage.$(ARCH).o $(SRC)/MemoryDump.$(ARCH).o \ 45 45 $(SRC)/PNGit.$(ARCH).o $(SRC)/PPMit.$(ARCH).o \ 46 46 $(SRC)/PSit.$(ARCH).o $(SRC)/CrossHairs.$(ARCH).o \ -
branches/eam_branches/ohana.20190329/src/kapa2/include/prototypes.h
r40731 r40780 6 6 int EventLoop PROTO((void)); 7 7 void CloseDisplay PROTO((void)); 8 int MemoryDump PROTO((int sock)); 9 int MemoryDumpLines PROTO((int sock)); 10 int MemoryDumpOnExit PROTO((int sock)); 11 int MemoryDumpSetOnExit PROTO((int state)); 12 int MemoryDumpAndExit PROTO((void)); 8 13 9 14 /* SetUpGraphic */ -
branches/eam_branches/ohana.20190329/src/kapa2/src/CheckPipe.c
r40731 r40780 358 358 } 359 359 360 if (!strcmp (word, "MEMD")) { 361 MemoryDump (sock); 362 KiiSendCommand (sock, 4, "DONE"); 363 FINISHED (TRUE); 364 } 365 366 if (!strcmp (word, "MEML")) { 367 MemoryDumpLines (sock); 368 KiiSendCommand (sock, 4, "DONE"); 369 FINISHED (TRUE); 370 } 371 372 if (!strcmp (word, "MEMX")) { 373 MemoryDumpOnExit (sock); 374 KiiSendCommand (sock, 4, "DONE"); 375 FINISHED (TRUE); 376 } 377 360 378 fprintf (stderr, "unknown signal %s\n", word); 361 379 KiiSendCommand (sock, 4, "DONE"); -
branches/eam_branches/ohana.20190329/src/kapa2/src/args.c
r39225 r40780 23 23 NAME_WINDOW = strcreate (argv[N]); 24 24 remove_argument(N, argc, argv); 25 } 26 27 if ((N = get_argument (*argc, argv, "-memdump"))) { 28 remove_argument(N, argc, argv); 29 MemoryDumpSetOnExit (TRUE); 25 30 } 26 31 -
branches/eam_branches/ohana.20190329/src/kapa2/src/bDrawIt.c
r40731 r40780 36 36 // apply anti-aliasing only to the graph 37 37 if (graphic->smooth_sigma > 0.0) { 38 // XXX getting a strange value 39 graphic->smooth_sigma = MAX (graphic->smooth_sigma, 5.0); 38 40 bDrawSmooth (graph, graphic->smooth_sigma); 39 41 } -
branches/eam_branches/ohana.20190329/src/kapa2/src/kapa.c
r13479 r40780 11 11 12 12 CloseDisplay (); 13 exit (0);13 MemoryDumpAndExit (); 14 14 } -
branches/eam_branches/ohana.20190329/src/libkapa/include/kapa.h
r40730 r40780 259 259 int KapaSetToolbox (int fd, int location); 260 260 int KapaSetSmoothSigma (int fd, float sigma); 261 int KapaMemoryDump (int fd); 262 int KapaMemoryDumpLines (int fd, int Nlines); 263 int KapaMemoryDumpOnExit (int fd, int state); 261 264 262 265 /* KapaColors */ -
branches/eam_branches/ohana.20190329/src/libkapa/src/KapaWindow.c
r40730 r40780 462 462 return (TRUE); 463 463 } 464 465 int KapaMemoryDump (int fd) { 466 467 KiiSendCommand (fd, 4, "MEMD"); 468 KiiWaitAnswer (fd, "DONE"); 469 return (TRUE); 470 } 471 472 int KapaMemoryDumpLines (int fd, int Nlines) { 473 474 KiiSendCommand (fd, 4, "MEML"); 475 KiiSendMessage (fd, "%d ", Nlines); 476 KiiWaitAnswer (fd, "DONE"); 477 return (TRUE); 478 } 479 480 int KapaMemoryDumpOnExit (int fd, int state) { 481 482 KiiSendCommand (fd, 4, "MEMX"); 483 KiiSendMessage (fd, "%d ", state); 484 KiiWaitAnswer (fd, "DONE"); 485 return (TRUE); 486 } 487 -
branches/eam_branches/ohana.20190329/src/opihi/cmd.data/Makefile
r40758 r40780 79 79 $(SRC)/join.$(ARCH).o \ 80 80 $(SRC)/jpeg.$(ARCH).o \ 81 $(SRC)/kapamemory.$(ARCH).o \ 81 82 $(SRC)/kern.$(ARCH).o \ 82 83 $(SRC)/keyword.$(ARCH).o \ -
branches/eam_branches/ohana.20190329/src/opihi/cmd.data/init.c
r40758 r40780 68 68 int join PROTO((int, char **)); 69 69 int jpeg PROTO((int, char **)); 70 int kapamemory PROTO((int, char **)); 70 71 int kern PROTO((int, char **)); 71 72 int keyword PROTO((int, char **)); … … 264 265 {1, "join", join, "find the join of two ID vectors"}, 265 266 {1, "jpeg", jpeg, "convert display image to JPEG"}, 267 {1, "kapamemory", kapamemory, "manage kapa memory dump options"}, 266 268 {1, "kern", kern, "convolve with 3x3 kernel"}, 267 269 {1, "keyword", keyword, "extract a FITS keyword from image header"},
Note:
See TracChangeset
for help on using the changeset viewer.
