aws-samples / amazon-kinesis-video-streams-media-interface
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 61 units with 969 lines of code in units (73.9% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (278 lines of code)
    • 6 medium size units (219 lines of code)
    • 17 small units (247 lines of code)
    • 34 very small units (225 lines of code)
0% | 28% | 22% | 25% | 23%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 28% | 22% | 25% | 23%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
source/T310% | 37% | 22% | 28% | 11%
source/V4L20% | 0% | 21% | 14% | 63%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
int videoCapturerSetFormat()
in source/T31/T31VideoCapturer.c
77 14 3
int audioPlayerSetFormat()
in source/T31/T31AudioPlayer.c
75 11 5
int audioCapturerSetFormat()
in source/T31/T31AudioCapturer.c
70 10 5
int videoCapturerGetFrame()
in source/T31/T31VideoCapturer.c
56 12 5
int videoCapturerSetFormat()
in source/V4L2/V4L2VideoCapturer.c
49 8 3
int audioCapturerGetFrame()
in source/T31/T31AudioCapturer.c
48 11 5
int audioPlayerWriteFrame()
in source/T31/T31AudioPlayer.c
40 7 3
int audioCapturerAcquireStream()
in source/T31/T31AudioCapturer.c
29 6 1
void videoCapturerDestory()
in source/T31/T31VideoCapturer.c
28 8 1
VideoCapturerHandle videoCapturerCreate()
in source/T31/T31VideoCapturer.c
25 5 1
VideoCapturerHandle videoCapturerCreate()
in source/V4L2/V4L2VideoCapturer.c
20 3 1
static int startRecvPic()
in source/T31/T31VideoCapturer.c
19 4 2
int audioPlayerAcquireStream()
in source/T31/T31AudioPlayer.c
18 4 1
static int stopRecvPic()
in source/T31/T31VideoCapturer.c
15 3 2
AudioPlayerHandle audioPlayerCreate()
in source/T31/T31AudioPlayer.c
15 2 1
void audioPlayerDestory()
in source/T31/T31AudioPlayer.c
15 4 1
AudioCapturerHandle audioCapturerCreate()
in source/T31/T31AudioCapturer.c
15 2 1
void audioCapturerDestory()
in source/T31/T31AudioCapturer.c
15 4 1
static int getPacket()
in source/T31/T31VideoCapturer.c
14 7 4
static int playFrame()
in source/T31/T31AudioPlayer.c
14 3 2