App-PLab
view release on metacpan or search on metacpan
{
system "v4l2-ctl ".
"-s 3 ". # pal bg
"-i 1 ". # composite
"-v width=768,height=576,pixelformat=GREY ". # pixelformat
"";
unless (open VIDEO, '<', '/dev/video0') {
message("Error initializing video:$!");
exit;
}
binmode VIDEO;
local $/;
$image_buf = Prima::Image->new(
width => 768,
height => 576,
type => im::Byte,
);
$w->Video->image($image_buf);
}
( run in 0.640 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )