| 1 |
pcg |
1.1 |
#!/usr/bin/perl |
| 2 |
|
|
|
| 3 |
|
|
print <<EOF; |
| 4 |
|
|
|
| 5 |
|
|
# |
| 6 |
|
|
# This file was automatically generated by genacc, |
| 7 |
|
|
# modifications will be lost! |
| 8 |
|
|
# |
| 9 |
|
|
|
| 10 |
|
|
PROTOTYPES: DISABLE |
| 11 |
|
|
EOF |
| 12 |
|
|
|
| 13 |
|
|
while(<DATA>) { |
| 14 |
|
|
chomp; |
| 15 |
|
|
if (/::/) { |
| 16 |
|
|
$pkg = $_; |
| 17 |
|
|
print "\nMODULE = Video::Capture::V4l PACKAGE = $pkg\n\n"; |
| 18 |
|
|
} elsif (/^(.*?)(\w+\??)$/) { |
| 19 |
|
|
my ($type,$field) = ($1,$2); |
| 20 |
|
|
my $ro = $field =~ s/\?$//; |
| 21 |
|
|
|
| 22 |
|
|
my $get = "RETVAL = s->$field;"; |
| 23 |
|
|
my $set = "s->$field = $field;"; |
| 24 |
|
|
|
| 25 |
|
|
if ($type eq "char *") { |
| 26 |
|
|
$get = "RETVAL = s->$field;"; |
| 27 |
|
|
$set = "strcpy (s->$field, $field);"; |
| 28 |
|
|
} |
| 29 |
|
|
|
| 30 |
|
|
if ($ro) { |
| 31 |
|
|
$set = "croak (\"attribute '$field' is readonly\");"; |
| 32 |
|
|
} |
| 33 |
|
|
|
| 34 |
|
|
print <<EOF; |
| 35 |
|
|
|
| 36 |
|
|
$type |
| 37 |
|
|
$field(s,$field=0) |
| 38 |
|
|
$pkg s |
| 39 |
|
|
$type $field |
| 40 |
|
|
CODE: |
| 41 |
|
|
if (items==1) |
| 42 |
|
|
{ $get } |
| 43 |
|
|
else |
| 44 |
|
|
{ $set } |
| 45 |
|
|
OUTPUT: |
| 46 |
|
|
RETVAL |
| 47 |
|
|
EOF |
| 48 |
|
|
} |
| 49 |
|
|
} |
| 50 |
|
|
|
| 51 |
|
|
__END__ |
| 52 |
|
|
Video::Capture::V4l::Capability |
| 53 |
|
|
char *name? |
| 54 |
|
|
int type? |
| 55 |
|
|
int channels? |
| 56 |
|
|
int audios? |
| 57 |
|
|
int maxwidth? |
| 58 |
|
|
int maxheight? |
| 59 |
|
|
int minwidth? |
| 60 |
|
|
int minheight? |
| 61 |
|
|
|
| 62 |
|
|
Video::Capture::V4l::Channel |
| 63 |
|
|
int channel |
| 64 |
|
|
char *name? |
| 65 |
|
|
int tuners? |
| 66 |
|
|
U32 flags? |
| 67 |
|
|
U16 type? |
| 68 |
|
|
U16 norm |
| 69 |
|
|
|
| 70 |
|
|
Video::Capture::V4l::Audio |
| 71 |
|
|
int audio |
| 72 |
|
|
U16 volume |
| 73 |
|
|
U16 bass |
| 74 |
|
|
U16 treble |
| 75 |
|
|
U32 flags |
| 76 |
|
|
char *name? |
| 77 |
|
|
U16 mode |
| 78 |
|
|
U16 balance |
| 79 |
|
|
U16 step |
| 80 |
|
|
|
| 81 |
|
|
Video::Capture::V4l::Picture |
| 82 |
|
|
U16 brightness |
| 83 |
|
|
U16 hue |
| 84 |
|
|
U16 colour |
| 85 |
|
|
U16 contrast |
| 86 |
|
|
U16 whiteness |
| 87 |
|
|
U16 depth |
| 88 |
|
|
U16 palette |
| 89 |
|
|
|
| 90 |
|
|
Video::Capture::V4l::Tuner |
| 91 |
|
|
int tuner |
| 92 |
|
|
char *name? |
| 93 |
|
|
unsigned long rangelow? |
| 94 |
|
|
unsigned long rangehigh? |
| 95 |
|
|
U32 flags? |
| 96 |
|
|
U16 mode |
| 97 |
|
|
U16 signal? |
| 98 |
|
|
|