notaz.gp2x.de
/
teensytas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
72ef318
)
make readinc mode default and vsync an option
author
notaz
<notasas@gmail.com>
Sun, 19 Oct 2014 22:24:15 +0000
(
01:24
+0300)
committer
notaz
<notasas@gmail.com>
Wed, 22 Oct 2014 20:39:11 +0000
(23:39 +0300)
host/main.c
patch
|
blob
|
blame
|
history
diff --git
a/host/main.c
b/host/main.c
index
a21e419
..
2f13059
100644
(file)
--- a/
host/main.c
+++ b/
host/main.c
@@
-637,7
+637,7
@@
int main(int argc, char *argv[])
const char *tasfn = NULL;
const char *outfn = NULL;
uint8_t *tas_data = NULL;
const char *tasfn = NULL;
const char *outfn = NULL;
uint8_t *tas_data = NULL;
- int use_
readinc = 0; // frame increment on read
+ int use_
vsync = 0; // frame increment on vsync
int tas_skip = 0;
int enable_sent = 0;
int abort_sent = 0;
int tas_skip = 0;
int enable_sent = 0;
int abort_sent = 0;
@@
-673,8
+673,8
@@
int main(int argc, char *argv[])
missing_arg(i);
tas_skip = atoi(argv[i]);
continue;
missing_arg(i);
tas_skip = atoi(argv[i]);
continue;
- case '
r
':
- use_
readi
nc = 1;
+ case '
v
':
+ use_
vsy
nc = 1;
continue;
default:
fprintf(stderr, "bad arg: %s\n", argv[i]);
continue;
default:
fprintf(stderr, "bad arg: %s\n", argv[i]);
@@
-980,7
+980,7
@@
int main(int argc, char *argv[])
pkt_out.type = PKT_STREAM_ENABLE;
pkt_out.enable.stream_to = (tas_data != NULL);
pkt_out.enable.stream_from = (outf != NULL);
pkt_out.type = PKT_STREAM_ENABLE;
pkt_out.enable.stream_to = (tas_data != NULL);
pkt_out.enable.stream_from = (outf != NULL);
- pkt_out.enable.use_readinc =
use_readi
nc;
+ pkt_out.enable.use_readinc =
!use_vsy
nc;
ret = submit_urb(dev.fd, &urb[URB_DATA_OUT], dev.ifaces[0].ep_out,
&pkt_out, sizeof(pkt_out));
ret = submit_urb(dev.fd, &urb[URB_DATA_OUT], dev.ifaces[0].ep_out,
&pkt_out, sizeof(pkt_out));