Video-Capture-V4l
view release on metacpan or search on metacpan
125126127128129130131132133134135136137138139140141142143144145sub
freq($;$) {
_freq (
shift
->{fd},
@_
);
}
package
Video::Capture::V4l::Capability;
sub
capture ($){
shift
->type &
&Video::Capture::V4l::TYPE_CAPTURE
}
sub
tuner ($){
shift
->type &
&Video::Capture::V4l::TYPE_TUNER
}
sub
teletext ($){
shift
->type &
&Video::Capture::V4l::TYPE_TELETEXT
}
sub
overlay ($){
shift
->type &
&Video::Capture::V4l::TYPE_OVERLAY
}
sub
chromakey ($){
shift
->type &
&Video::Capture::V4l::TYPE_CHROMAKEY
}
sub
clipping ($){
shift
->type &
&Video::Capture::V4l::TYPE_CLIPPING
}
sub
frameram ($){
shift
->type &
&Video::Capture::V4l::TYPE_FRAMERAM
}
sub
scales ($){
shift
->type &
&Video::Capture::V4l::TYPE_SCALES
}
sub
monochrome($){
shift
->type &
&Video::Capture::V4l::TYPE_MONOCHROME
}
sub
subcapture($){
shift
->type &
&Video::Capture::V4l::TYPE_SUBCAPTURE
}
package
Video::Capture::V4l::Channel;
sub
tuner ($){
shift
->flags &
&Video::Capture::V4l::VC_TUNER
}
examples/grab view on Meta::CPAN
1234567891011121314151617181920#!/usr/bin/perl
use
Video::Capture::V4l;
sub
print_capability {
my
$c
=
shift
;
"Device: "
;
"name "
,
$c
->name;
", type"
;
for
(
qw(capture tuner teletext overlay chromakey clipping frameram scales monochrome subcapture)
) {
" $_"
if
eval
"\$c->$_"
;
}
", channels "
,
$c
->channels;
", audios "
,
$c
->audios;
", sizes "
,
$c
->minwidth,
"x"
,
$c
->minheight,
"-"
,
$c
->maxwidth,
"x"
,
$c
->maxheight;
"\n"
;
}
sub
print_channel {
my
$c
=
shift
;
examples/record view on Meta::CPAN
1234567891011121314151617181920#!/usr/bin/perl
use
Video::Capture::V4l;
sub
print_capability {
my
$c
=
shift
;
"Device: "
;
"name "
,
$c
->name;
", type"
;
for
(
qw(capture tuner teletext overlay chromakey clipping frameram scales monochrome subcapture)
) {
" $_"
if
eval
"\$c->$_"
;
}
", channels "
,
$c
->channels;
", audios "
,
$c
->audios;
", sizes "
,
$c
->minwidth,
"x"
,
$c
->minheight,
"-"
,
$c
->maxwidth,
"x"
,
$c
->maxheight;
"\n"
;
}
sub
print_channel {
my
$c
=
shift
;
examples/settv view on Meta::CPAN
1234567891011121314151617181920#!/usr/bin/perl
use
Video::Capture::V4l;
sub
print_capability {
my
$c
=
shift
;
"Device: "
;
"name "
,
$c
->name;
", type"
;
for
(
qw(capture tuner teletext overlay chromakey clipping frameram scales monochrome subcapture)
) {
" $_"
if
eval
"\$c->$_"
;
}
", channels "
,
$c
->channels;
", audios "
,
$c
->audios;
", sizes "
,
$c
->minwidth,
"x"
,
$c
->minheight,
"-"
,
$c
->maxwidth,
"x"
,
$c
->maxheight;
"\n"
;
}
sub
print_channel {
my
$c
=
shift
;
( run in 0.394 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )