int
i, n, chunk, length;
sprintf(str, “rcp -f %d”, frame);
write(sd, str, strlen(str)+1);
write(sd, “”, 1);
/* send a null */
n = read(sd, tmp_str, 30); /* get the file
info */
#ifdef DEBUG
printf(“read %d\n”, n);
#endif
write(sd, “”, 1); /* send a null to start
transfer */
i = 0;
length = LINES*PIXELS*CHANNELS; /* should
really get
length from file info */
while(i<length) {
if((length - i) <PIXELS*CHANNELS)
chunk = read(sd, line, (length - i));
/* last chunklet */
else chunk = read(sd, line, PIXELS*CHANNELS);
/*
..otherwise read a line */
fwrite(line, chunk, 1 piccy);
i += chunk;
}
n = read(sd, tmp_str, 20);/* read the null */
Diskus Technical Guide
File Formats
9100-0217-02 - SEP 95
Appendix
12-31
Summary of Contents for Diskus
Page 1: ...Diskus Digital Disk Recorder Manual ...
Page 477: ...NOTES Diskus Operations Index 9100 0217 02 SEP 95 Index xvii ...
Page 478: ...NOTES Index Diskus Operations xviii Index 9100 0217 02 SEP 95 ...
Page 479: ...NOTES Diskus Operations Index 9100 0217 02 SEP 95 Index xix ...
Page 480: ...NOTES Index Diskus Operations xx Index 9100 0217 02 SEP 95 ...