microsoft / FFmpegInterop
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 45 units with 1,073 lines of code in units (42.2% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (201 lines of code)
    • 3 medium complex units (163 lines of code)
    • 10 simple units (343 lines of code)
    • 31 very simple units (366 lines of code)
0% | 18% | 15% | 31% | 34%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cpp0% | 19% | 15% | 32% | 33%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Source0% | 18% | 15% | 31% | 34%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
HRESULT FFmpegInteropMSS::InitFFmpegContext()
in FFmpegInterop/Source/FFmpegInteropMSS.cpp
201 39 2
HRESULT FFmpegInteropMSS::CreateVideoStreamDescriptor()
in FFmpegInterop/Source/FFmpegInteropMSS.cpp
48 15 1
HRESULT FFmpegInteropMSS::CreateMediaStreamSource()
in FFmpegInterop/Source/FFmpegInteropMSS.cpp
61 14 5
HRESULT FFmpegInterop::MediaSampleProvider::GetNextPacket()
in FFmpegInterop/Source/MediaSampleProvider.cpp
54 12 4
HRESULT FFmpegInteropMSS::CreateMediaStreamSource()
in FFmpegInterop/Source/FFmpegInteropMSS.cpp
43 9 4
void FFmpegInteropMSS::OnStarting()
in FFmpegInterop/Source/FFmpegInteropMSS.cpp
30 9 2
HRESULT H264AVCSampleProvider::GetSPSAndPPSBuffer()
in FFmpegInterop/Source/H264AVCSampleProvider.cpp
54 9 1
HRESULT FFmpegInteropMSS::CreateAudioStreamDescriptor()
in FFmpegInterop/Source/FFmpegInteropMSS.cpp
26 8 1
HRESULT UncompressedSampleProvider::GetFrameFromFFmpegDecoder()
in FFmpegInterop/Source/UncompressedSampleProvider.cpp
42 7 1
HRESULT UncompressedVideoSampleProvider::AllocateResources()
in FFmpegInterop/Source/UncompressedVideoSampleProvider.cpp
39 7 0
void FFmpegInteropMSS::OnSampleRequested()
in FFmpegInterop/Source/FFmpegInteropMSS.cpp
20 6 2
int FFmpegReader::ReadPacket()
in FFmpegInterop/Source/FFmpegReader.cpp
27 6 0
HRESULT UncompressedAudioSampleProvider::AllocateResources()
in FFmpegInterop/Source/UncompressedAudioSampleProvider.cpp
32 6 0
HRESULT UncompressedSampleProvider::DecodeAVPacket()
in FFmpegInterop/Source/UncompressedSampleProvider.cpp
30 6 4
static int lock_manager()
in FFmpegInterop/Source/FFmpegInteropMSS.cpp
30 5 2
HRESULT H264AVCSampleProvider::WriteNALPacket()
in FFmpegInterop/Source/H264AVCSampleProvider.cpp
30 5 2
void FFmpegInteropLogging::SetLogProvider()
in FFmpegInterop/Source/FFmpegInteropLogging.cpp
21 4 1
HRESULT FFmpegInteropMSS::ParseOptions()
in FFmpegInterop/Source/FFmpegInteropMSS.cpp
26 4 1
HRESULT FFmpegInteropMSS::ConvertCodecName()
in FFmpegInterop/Source/FFmpegInteropMSS.cpp
19 3 2
static int FileStreamRead()
in FFmpegInterop/Source/FFmpegInteropMSS.cpp
15 3 3