282 int force_background = -1;
284 int magnification = 1;
285 int originx = 0, originy = 0;
286 float gamma_value =
GAMMA;
298 if (!cx_open(
"/dev/dr0" )) {
299 fprintf( stderr,
"getcx3d: wait your turn\n" );
303 cx_init_disp( DISP_BM1 );
307 while (*++argv)
if (*argv[0] ==
'-')
switch (argv[0][1]) {
308 case 'O': force_background = 1;
break;
309 case 'B': force_background = 2;
break;
310 case 'd': magnification = 2;
break;
311 case 't': magnification = 3;
break;
312 case 'p': originx = atoi( *++argv ); originy = atoi( *++argv );
break;
313 case 'l': gamma_value = 1.0;
break;
314 case '\0':
getcx3d( (
char *) 0, force_background, magnification,
315 originx, originy, gamma_value );
318 force_background = -1;
320 originx = originy = 0;
323 default:
usage( );
goto out;
325 getcx3d( argv[0], force_background, magnification,
326 originx, originy, gamma_value );
329 force_background = -1;
331 originx = originy = 0;
335 if (!doneone)
getcx3d( (
char *) 0, force_background, magnification,
336 originx, originy, gamma_value );
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
getcx3d(char *f, int force_background, int magnification, int originx, int originy, float gamma_value)
char * cmd_name(char **argv)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)