Changeset 3693 for trunk/Ohana/src/opihi/cmd.data/tvcontour.c
- Timestamp:
- Apr 11, 2005, 10:37:51 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/tvcontour.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/tvcontour.c
r2843 r3693 45 45 Nline ++; \ 46 46 if (Nline == 512) { \ 47 sprintf (line, "NLINES %7d ", Nline); \ 48 write (Ximage, line, 16); \ 47 SendGraphCommand (Ximage, 16, "NLINES %7d ", Nline); \ 49 48 write (Ximage, buffer, Nline*128); \ 50 49 bzero (buffer, 65536); \ … … 57 56 Nline ++; \ 58 57 if (Nline == 512) { \ 59 sprintf (line, "NLINES %7d ", Nline); \ 60 write (Ximage, line, 16); \ 58 SendGraphCommand (Ximage, 16, "NLINES %7d ", Nline); \ 61 59 write (Ximage, buffer, Nline*128); \ 62 60 bzero (buffer, 65536); \ … … 123 121 } 124 122 125 write (Ximage, "LOAD", 4); /* force Ximage to look for the incoming image */ 126 sprintf (line, "OVERLAY %7d ", n); 127 write (Ximage, line, 16); 123 SendGraphCommand (Ximage, 4, "LOAD"); /* force Ximage to look for the incoming image */ 124 SendGraphCommand (Ximage, 16, "OVERLAY %7d ", n); 128 125 ALLOCATE (buffer, char, 65536); /* space for 512 lines of 128 bytes */ 129 126 bzero (buffer, 65536); … … 282 279 283 280 if (Nline > 0) { 284 sprintf (line, "NLINES %7d ", Nline); 285 write (Ximage, line, 16); 281 SendGraphCommand (Ximage, 16, "NLINES %7d ", Nline); 286 282 write (Ximage, buffer, Nline*128); 287 283 } 288 284 289 285 free (buffer); 290 sprintf (line, "DONE "); 291 write (Ximage, line, 16); 292 if (Npix != 1) { 293 free (matrix); 294 } 286 SendGraphCommand (Ximage, 16, "DONE"); 287 288 if (Npix != 1) free (matrix); 295 289 fprintf (stderr, "\n"); 296 290 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
