NAME

UAV::Pilot::SDL::Video

SYNOPSIS

my $cv = AnyEvent->condvar;
my $events = UAV::Pilot::Events->new({
    condvar => $cv,
});

my $window = UAV::Pilot::SDL::Window->new;
my $display = UAV::Pilot::SDL::Video->new({
    window => $window,
});

my $video   = UAV::Pilot::Video::H264Decoder->new({
    display => $display,
});

$events->register( $display );

DESCRIPTION

Process raw video frames and displays them to an SDL surface. This does the roles UAV::Pilot::Video::RawHandler and UAV::Pilot::EventHandler.

METHODS

register_video_overlay

register_video_overlay( $overlay )

Adds an object that does the UAV::Pilot::SDL::VideoOverlay role. This allows an object to draw things on top of the video, like telemetry information.

Not to be confused with SDL::Overlay.