line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package UAV::Pilot::Video::H264Handler; |
2
|
1
|
|
|
1
|
|
3078
|
use v5.14; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
39
|
|
3
|
1
|
|
|
1
|
|
427
|
use Moose::Role; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
requires 'process_h264_frame'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
1; |
8
|
|
|
|
|
|
|
__END__ |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
UAV::Pilot::Video::H264Handler |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 DESCRIPTION |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Objects which do this role can be passed to objects that handle video frames, such as |
18
|
|
|
|
|
|
|
C<UAV::Pilot::ARDrone::Video>. They will handle an h264 video frame-by-frame. |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 REQUIRED METHODS |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 process_h264_frame |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
process_h264_frame( |
25
|
|
|
|
|
|
|
$frame, # Arrayref of bytes containing the h264 frame |
26
|
|
|
|
|
|
|
$width, |
27
|
|
|
|
|
|
|
$height, |
28
|
|
|
|
|
|
|
$encoded_width, |
29
|
|
|
|
|
|
|
$encoded_height, |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=cut |