// displays a picture on the OSD of a CVDV DVD decoder card
// (c) Christian Wolff for convergence integrated media 1999/03/03
//
#include "cvdvutil.h"
int main (int argc, char* argv[]) {
int outfile,infile,i,verbose;
i=1;
outfile=0;
infile=0;
verbose=0;
if (argc<2){
printf("\
Usage: %s <device> <GIF-file>\n\
",argv[0]);
exit(0);
}
while (i<argc) {
if (argv[i][0]=='-') { // option
if (argv[i][1]=='v') {
verbose=1; // verbose on
} else { // unknown option
printf("\
Usage: %s <device> <GIF-file>\n\
",argv[0]);
}
} else if (!outfile) outfile=i;
else if (!infile) infile=i;
i++;
}
if (outfile && infile) {
printf("Just a second\n");
cvdvutil_open_device(argv[outfile]);
cvdvutil_gif_show(261,136,-1,argv[infile]);
printf("\n\nPress <Return> to continue...\n");
getc(stdin);
cvdvutil_close_device();
}
return 0;
}
LinuxTV legacy CVS <linuxtv.org/cvs>