UAV::Pilot::SDL::Video
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 );
Process raw video frames and displays them to an SDL surface. This does the roles UAV::Pilot::Video::RawHandler and UAV::Pilot::EventHandler.
UAV::Pilot::Video::RawHandler
UAV::Pilot::EventHandler
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.
UAV::Pilot::SDL::VideoOverlay
Not to be confused with SDL::Overlay.
SDL::Overlay
To install UAV::Pilot::SDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UAV::Pilot::SDL
CPAN shell
perl -MCPAN -e shell install UAV::Pilot::SDL
For more information on module installation, please visit the detailed CPAN module installation guide.