aws-samples / amazon-kinesis-video-streams-producer-embedded-c
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 54 files with 9,074 lines of code.
    • 2 very long files (2,450 lines of code)
    • 3 long files (1,938 lines of code)
    • 7 medium size files (2,292 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,245 lines of code)
    • 33 very small files (1,149 lines of code)
27% | 21% | 25% | 13% | 12%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
c32% | 17% | 30% | 13% | 5%
h0% | 48% | 0% | 8% | 42%
cmake0% | 0% | 0% | 31% | 68%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/source/app100% | 0% | 0% | 0% | 0%
src/source/restful72% | 0% | 17% | 9% | <1%
libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c0% | 46% | 23% | 19% | 9%
src/source/mkv0% | 100% | 0% | 0% | 0%
app/frame-ring-buffer/source0% | 0% | 100% | 0% | 0%
src/source/stream0% | 0% | 100% | 0% | 0%
src/source/net0% | 0% | 57% | 34% | 8%
src/source/codec0% | 0% | 64% | 34% | <1%
CMake0% | 0% | 0% | 41% | 58%
src/source/os0% | 0% | 0% | 53% | 46%
src/include/kvs0% | 0% | 0% | 0% | 100%
src/port0% | 0% | 0% | 0% | 100%
src/source/misc0% | 0% | 0% | 0% | 100%
app/frame-ring-buffer/include0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
kvsapp.c
in src/source/app
1276 31
restapi_kvs.c
in src/source/restful/kvs
1174 26
mkv_generator.c
in src/source/mkv
784 11
Include.h
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/include/com/amazonaws/kinesis/video/webrtcclient
598 -
Rtp.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/PeerConnection
556 13
frame_ring_buffer.c
in app/frame-ring-buffer/source
386 21
stream.c
in src/source/stream
382 12
RtpH264Payloader.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtp/Codecs
371 6
netio.c
in src/source/net
329 13
nalu.c
in src/source/codec
323 7
aws_signer_v4.c
in src/source/restful
282 9
Retransmitter.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/PeerConnection
219 4
http_helper.c
in src/source/net
198 5
sps_decode.c
in src/source/codec
171 5
RtpRollingBuffer.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtcp
156 7
iot_credential_provider.c
in src/source/restful/iot
155 2
SrtpSession.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Srtp
121 6
cmake
libmbedtls.cmake
in CMake
118 -
pool_allocator.c
in src/source/os
118 5
RtpPacket.h
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtp
106 -
RtpVP8Payloader.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtp/Codecs
102 2
cmake
Utilities.cmake
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/CMake
84 -
mkv_generator.h
in src/include/kvs
80 -
RtpG711Payloader.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtp/Codecs
79 2
cmake
libwebrtc.cmake
in CMake
66 -
restapi.h
in src/include/kvs
63 -
json_helper.c
in src/source/misc
62 1
endian.h
in src/source/os
61 -
RtpOpusPayloader.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtp/Codecs
60 2
port_linux.c
in src/port
53 5
kvsapp.h
in src/include/kvs
47 -
port_amebapro.c
in src/port
45 5
port_esp32.c
in src/port
43 5
frame_ring_buffer.h
in app/frame-ring-buffer/include/frame_ring_buffer
42 -
allocator.c
in src/source/os
35 2
cmake
libaziotsharedutil.cmake
in CMake
33 -
http_helper.h
in src/source/net
32 -
stream.h
in src/include/kvs
27 -
kvsapp_options.h
in src/include/kvs
25 -
RtpRollingBuffer.h
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtcp
23 -
cmake
libllhttp.cmake
in CMake
21 -
nalu.h
in src/include/kvs
21 -
iot_credential_provider.h
in src/include/kvs
20 -
pool_allocator.h
in src/include/kvs
20 -
cmake
libparson.cmake
in CMake
17 -
cmake
libtlsf.cmake
in CMake
16 -
cmake
libv4l2capturer.cmake
in CMake
15 -
netio.h
in src/source/net
15 -
aws_signer_v4.h
in src/source/restful
10 -
port.h
in src/include/kvs
10 -
Files With Most Units (Top 20)
File# lines# units
kvsapp.c
in src/source/app
1276 31
restapi_kvs.c
in src/source/restful/kvs
1174 26
frame_ring_buffer.c
in app/frame-ring-buffer/source
386 21
netio.c
in src/source/net
329 13
Rtp.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/PeerConnection
556 13
stream.c
in src/source/stream
382 12
mkv_generator.c
in src/source/mkv
784 11
aws_signer_v4.c
in src/source/restful
282 9
nalu.c
in src/source/codec
323 7
RtpRollingBuffer.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtcp
156 7
SrtpSession.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Srtp
121 6
RtpH264Payloader.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtp/Codecs
371 6
port_esp32.c
in src/port
43 5
port_linux.c
in src/port
53 5
port_amebapro.c
in src/port
45 5
sps_decode.c
in src/source/codec
171 5
pool_allocator.c
in src/source/os
118 5
http_helper.c
in src/source/net
198 5
Retransmitter.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/PeerConnection
219 4
iot_credential_provider.c
in src/source/restful/iot
155 2
Files With Long Lines (Top 20)

There are 31 files with lines longer than 120 characters. In total, there are 283 long lines.

File# lines# units# long lines
restapi_kvs.c
in src/source/restful/kvs
1174 26 72
mkv_generator.c
in src/source/mkv
784 11 26
kvsapp.c
in src/source/app
1276 31 24
Retransmitter.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/PeerConnection
219 4 23
Rtp.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/PeerConnection
556 13 22
aws_signer_v4.c
in src/source/restful
282 9 14
iot_credential_provider.c
in src/source/restful/iot
155 2 10
SrtpSession.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Srtp
121 6 10
RtpH264Payloader.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtp/Codecs
371 6 9
nalu.c
in src/source/codec
323 7 7
http_helper.c
in src/source/net
198 5 7
mkv_generator.h
in src/include/kvs
80 - 7
frame_ring_buffer.c
in app/frame-ring-buffer/source
386 21 7
restapi.h
in src/include/kvs
63 - 6
kvsapp.h
in src/include/kvs
47 - 5
netio.c
in src/source/net
329 13 4
RtpPacket.h
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtp
106 - 4
stream.c
in src/source/stream
382 12 3
nalu.h
in src/include/kvs
21 - 3
RtpG711Payloader.c
in libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/patch/src/source/Rtp/Codecs
79 2 3