microsoft / Azure-Kinect-Sensor-SDK
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 284 files with 45,775 lines of code.
    • 7 very long files (9,460 lines of code)
    • 15 long files (10,727 lines of code)
    • 37 medium size files (11,960 lines of codeclsfd_ftr_w_mp_ins)
    • 39 small files (6,007 lines of code)
    • 186 very small files (7,621 lines of code)
20% | 23% | 26% | 13% | 16%
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
cpp31% | 19% | 25% | 18% | 6%
c20% | 28% | 40% | 5% | 3%
in93% | 0% | 0% | 0% | 6%
cmake41% | 27% | 0% | 11% | 20%
py0% | 52% | 31% | 6% | 9%
hpp0% | 64% | 22% | 12% | 0%
yml0% | 100% | 0% | 0% | 0%
cs0% | 13% | 52% | 3% | 29%
h0% | 7% | 10% | 27% | 54%
css0% | 0% | 0% | 100% | 0%
ps10% | 0% | 0% | 0% | 100%
vcxproj0% | 0% | 0% | 0% | 100%
csh0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
props0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/color82% | 0% | 8% | 4% | 5%
src/record49% | 47% | 0% | 0% | 3%
doxygen88% | 0% | 0% | 7% | 4%
cmake/FindPython100% | 0% | 0% | 0% | 0%
src/transformation44% | 32% | 12% | 8% | 1%
src/sdk96% | 0% | 0% | 0% | 3%
src/python0% | 53% | 31% | 6% | 8%
tools/k4aviewer0% | 14% | 22% | 30% | 32%
tools/updater0% | 100% | 0% | 0% | 0%
include/k4a0% | 65% | 20% | 12% | <1%
cmake0% | 46% | 0% | 18% | 35%
src/usbcommand0% | 68% | 24% | 0% | 7%
ROOT0% | 88% | 0% | 0% | 11%
src/calibration0% | 100% | 0% | 0% | 0%
scripts0% | 75% | 0% | 0% | 24%
src/csharp0% | 0% | 60% | 4% | 34%
tools/k4arecorder0% | 0% | 71% | 15% | 12%
src/dewrapper0% | 0% | 100% | 0% | 0%
src/capturesync0% | 0% | 100% | 0% | 0%
src/image0% | 0% | 100% | 0% | 0%
src/firmware0% | 0% | 100% | 0% | 0%
src/imu0% | 0% | 100% | 0% | 0%
src/depth_mcu0% | 0% | 78% | 0% | 21%
src/allocator0% | 0% | 100% | 0% | 0%
src/depth0% | 0% | 100% | 0% | 0%
tools/k4afastcapture_streaming0% | 0% | 60% | 29% | 9%
src/tewrapper0% | 0% | 100% | 0% | 0%
include/k4arecord0% | 0% | 46% | 26% | 26%
include/k4ainternal0% | 0% | 12% | 40% | 46%
src/logging0% | 0% | 100% | 0% | 0%
src/queue0% | 0% | 100% | 0% | 0%
src/deloader0% | 0% | 100% | 0% | 0%
src/dynlib0% | 0% | 0% | 100% | 0%
src/color_mcu0% | 0% | 0% | 91% | 8%
tools/k4afastcapture_trigger0% | 0% | 0% | 100% | 0%
cmake/toolchains0% | 0% | 0% | 0% | 100%
src/rwlock0% | 0% | 0% | 0% | 100%
src/math0% | 0% | 0% | 0% | 100%
tools/deversion0% | 0% | 0% | 0% | 100%
src/global0% | 0% | 0% | 0% | 100%
cmake/FetchContent0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
matroska_read.cpp
in src/record/internal
1936 27
in
Doxyfile.in
in doxygen
1691 -
mfcamerareader.cpp
in src/color
1321 21
uvc_camerareader.cpp
in src/color
1179 12
cmake
Support.cmake
in cmake/FindPython
1142 -
rgbz.c
in src/transformation
1101 29
k4a.c
in src/sdk
1090 67
k4atypes.py
in src/python/k4a/src/k4a/_bindings
1000 22
k4adevicedockcontrol.cpp
in tools/k4aviewer
911 24
main.c
in tools/updater
878 20
k4a.hpp
in include/k4a
850 72
transformation.c
in src/transformation
803 15
record.cpp
in src/record/sdk
764 12
cmake
FetchContent.cmake
in cmake
752 -
usbcommand.c
in src/usbcommand
720 18
azure-pipelines.yml
in root
686 -
calibration.c
in src/calibration
658 14
playback.cpp
in src/record/sdk
587 25
image.py
in src/python/k4a/src/k4a/_bindings
578 42
HmdKit.cs
in scripts
535 24
matroska_write.cpp
in src/record/internal
503 10
linmath.h
in tools/k4aviewer
502 41
device.py
in src/python/k4a/src/k4a/_bindings
493 21
Image.cs
in src/csharp/SDK
491 13
dewrapper.c
in src/dewrapper
481 11
NativeMethods.cs
in src/csharp/SDK/Native
457 14
transformation.py
in src/python/k4a/src/k4a/_bindings
453 15
capturesync.c
in src/capturesync
450 8
image.c
in src/image
442 24
firmware.c
in src/firmware
422 11
main.cpp
in tools/k4arecorder
408 3
k4atypeoperators.cpp
in tools/k4aviewer
397 -
imu.c
in src/imu
371 8
depth_mcu.c
in src/depth_mcu
365 14
allocator.c
in src/allocator
359 20
k4arecordingdockcontrol.cpp
in tools/k4aviewer
356 5
depth.c
in src/depth
343 10
k4afastcapture.cpp
in tools/k4afastcapture_streaming
332 6
Device.cs
in src/csharp/SDK
322 18
intrinsic_transformation.c
in src/transformation
316 6
Transformation.cs
in src/csharp/SDK
315 14
k4aviewersettingsmanager.cpp
in tools/k4aviewer
308 4
tewrapper.c
in src/tewrapper
306 6
playback.hpp
in include/k4arecord
300 23
k4atypes.h
in include/k4a
271 -
usbstreaming.c
in src/usbcommand
258 5
matroska_read.h
in include/k4ainternal
255 3
color.cpp
in src/color
255 9
Allocator.cs
in src/csharp/SDK
244 9
logging.cpp
in src/logging
242 5
Files With Most Units (Top 20)
File# lines# units
k4a.hpp
in include/k4a
850 72
k4a.c
in src/sdk
1090 67
image.py
in src/python/k4a/src/k4a/_bindings
578 42
linmath.h
in tools/k4aviewer
502 41
rgbz.c
in src/transformation
1101 29
matroska_read.cpp
in src/record/internal
1936 27
playback.cpp
in src/record/sdk
587 25
HmdKit.cs
in scripts
535 24
image.c
in src/image
442 24
k4adevicedockcontrol.cpp
in tools/k4aviewer
911 24
playback.hpp
in include/k4arecord
300 23
capture.py
in src/python/k4a/src/k4a/_bindings
186 22
k4atypes.py
in src/python/k4a/src/k4a/_bindings
1000 22
mfcamerareader.cpp
in src/color
1321 21
device.py
in src/python/k4a/src/k4a/_bindings
493 21
allocator.c
in src/allocator
359 20
openglhelpers.h
in tools/k4aviewer
212 20
main.c
in tools/updater
878 20
Device.cs
in src/csharp/SDK
322 18
usbcommand.c
in src/usbcommand
720 18
Files With Long Lines (Top 20)

There are 30 files with lines longer than 120 characters. In total, there are 163 long lines.

File# lines# units# long lines
cmake
Support.cmake
in cmake/FindPython
1142 - 38
azure-pipelines.yml
in root
686 - 28
Device.cs
in src/csharp/SDK
322 18 13
Transformation.cs
in src/csharp/SDK
315 14 9
Allocator.cs
in src/csharp/SDK
244 9 8
Capture.cs
in src/csharp/SDK
217 8 8
Calibration.cs
in src/csharp/SDK
147 10 7
NativeMethods.cs
in src/csharp/SDK/Native
457 14 7
cmake
k4aCompilerFlags.cmake
in cmake
53 - 5
HmdKit.cs
in scripts
535 24 4
Image.cs
in src/csharp/SDK
491 13 4
k4atypes.py
in src/python/k4a/src/k4a/_bindings
1000 22 4
props
k4a.props
in src/csharp
15 - 3
cmake
FetchContent.cmake
in cmake
752 - 2
cmake
K4AProjectVersion.cmake
in cmake
43 - 2
cmake
MSVCLinkerFlags.cmake
in cmake
16 - 2
cmake
ShaderCompiler.cmake
in cmake
76 - 2
PublishDocs.ps1
in doxygen
33 - 2
Logger.cs
in src/csharp/SDK
82 4 2
csh
build_wheel.csh
in src/python/k4a
65 - 2