Timm Murray > UAV-Pilot-0.8 > UAV::Pilot::SDL::Video

Download:
UAV-Pilot-0.8.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  2
View/Report Bugs
Source  

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.

syntax highlighting: