/demos/trunk/bttvdemo/bttv.c |
---|
139,6 → 139,14 |
int main(int argc, char **argv) |
{ |
int channel = 0; |
if (argc < 2) { |
channel = 0; |
} else { |
channel = atoi(argv[1]); |
} |
sys_atrunlevel(program_end,NULL, RUNLEVEL_BEFORE_EXIT); |
{ |
154,7 → 162,7 |
sleep(1); |
FG_init(FG_PERIOD, FG_WCET, FG_W, FG_H, color, 0); |
FG_init(FG_PERIOD, FG_WCET, FG_W, FG_H, color, channel); |
FG_set_hook(elaborate_image); |