File:  [DVB] / margi2 / testsuite / showpicmovie.c
Revision 1.2: download - view: text, annotated - select for diffs
Tue May 15 12:40:21 2001 UTC (23 years, 1 month ago) by mocm
Branches: MAIN
CVS tags: HEAD
-update for latest dvbapi
-some fixes in driver
-fixed playfile

// 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,moviefile,i,verbose,trans;

  i=1;
  outfile=0;
  infile=0;
  moviefile=0;
  verbose=0;
  trans=-1;
  if (argc<2){
        printf("\
Usage: %s <device> <GIF-file> <MPEG-Movie> [<transparency>]\n\
",argv[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> <MPEG-Movie> [<transparency>]\n\
",argv[0]);
      }
    } else if (!outfile) outfile=i;
    else if (!infile) infile=i;
    else if (!moviefile) moviefile=i;
    else if (trans<0) trans=atoi(argv[i]);
    i++;
  }

  if (outfile && infile && moviefile) {
    cvdvutil_open_device(argv[outfile]);
printf("Pic %s\n",argv[infile]);
    cvdvutil_gif_show(261,136,trans,argv[infile]);
    //printf("\n\nPress <Return> to continue...\n");
    //getc(stdin);
    
printf("Movie %s\n",argv[moviefile]);
    while (1) {
      cvdvutil_send_file(argv[moviefile],0);
      //cvdvutil_gif_show(0,0,trans,argv[infile]);
    }
  }
  return 0;
}

LinuxTV legacy CVS <linuxtv.org/cvs>