Skip to content

Commit e1030c6

Browse files
committed
0.9 Release
1 parent ef55272 commit e1030c6

File tree

505 files changed

+154688
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

505 files changed

+154688
-1
lines changed

.clang-format

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: Google
4+
AlignAfterOpenBracket: Align
5+
AlignEscapedNewlines: Left
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
AlignConsecutiveMacros: true
9+
AlignOperands: false
10+
AlignTrailingComments: true
11+
AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: false
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: false
15+
AllowShortLoopsOnASingleLine: false
16+
AlwaysBreakAfterDefinitionReturnType: None
17+
AlwaysBreakAfterReturnType: None
18+
AlwaysBreakBeforeMultilineStrings: true
19+
BinPackArguments: false
20+
BinPackParameters: true
21+
BraceWrapping:
22+
AfterControlStatement: false
23+
AfterEnum: false
24+
AfterFunction: false
25+
AfterStruct: false
26+
AfterUnion: false
27+
BeforeElse: true
28+
IndentBraces: false
29+
SplitEmptyFunction: true
30+
SplitEmptyRecord: true
31+
BreakBeforeBinaryOperators: None
32+
BreakBeforeBraces: Custom
33+
BreakBeforeInheritanceComma: false
34+
BreakBeforeTernaryOperators: true
35+
BreakStringLiterals: true
36+
ColumnLimit: 130
37+
CommentPragmas: "^ IWYU pragma:"
38+
ContinuationIndentWidth: 4
39+
DerivePointerAlignment: true
40+
DisableFormat: false
41+
ExperimentalAutoDetectBinPacking: false
42+
IncludeCategories:
43+
- Regex: '^<ext/.*\.h>'
44+
Priority: 2
45+
- Regex: '^<.*\.h>'
46+
Priority: 1
47+
- Regex: "^<.*"
48+
Priority: 2
49+
- Regex: ".*"
50+
Priority: 3
51+
IncludeIsMainRegex: "([-_](test|unittest))?$"
52+
IndentCaseLabels: false
53+
IndentWidth: 4
54+
IndentWrappedFunctionNames: false
55+
KeepEmptyLinesAtTheStartOfBlocks: false
56+
MacroBlockBegin: ""
57+
MacroBlockEnd: ""
58+
MaxEmptyLinesToKeep: 1
59+
PenaltyBreakAssignment: 100
60+
PenaltyBreakBeforeFirstCallParameter: 1
61+
PenaltyBreakComment: 300
62+
PenaltyBreakFirstLessLess: 120
63+
PenaltyBreakString: 1000
64+
PenaltyExcessCharacter: 1000000
65+
PenaltyReturnTypeOnItsOwnLine: 200
66+
PointerAlignment: Right
67+
ReflowComments: false
68+
SortIncludes: false
69+
SortUsingDeclarations: true
70+
SpaceAfterCStyleCast: false
71+
SpaceAfterTemplateKeyword: true
72+
SpaceBeforeAssignmentOperators: true
73+
SpaceBeforeParens: ControlStatements
74+
SpaceInEmptyParentheses: false
75+
SpacesBeforeTrailingComments: 1
76+
SpacesInContainerLiterals: true
77+
SpacesInCStyleCastParentheses: false
78+
SpacesInParentheses: false
79+
SpacesInSquareBrackets: false
80+
TabWidth: 4
81+
UseTab: Never
82+
---

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Bin/
2+
Build/linux/
3+
Build/windows/
4+
Build/eclipse/
5+
Build/coverage_linux
6+
*.yuv
7+
*.bin
8+
*.patch
9+
*.raw
10+
*.log

Build/coverage_linux/run_coverage.sh

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
#!/bin/sh
2+
#
3+
# Copyright(c) 2024 Intel Corporation
4+
# SPDX - License - Identifier: BSD - 2 - Clause - Patent
5+
#
6+
7+
dir=$(pwd)
8+
rm -fr Debug
9+
rm -fr coverage_tmp_dir
10+
rm -fr coverage-report
11+
12+
13+
#1.Set Clang compiler and CMake flags
14+
export CC="clang"
15+
export CXX="clang++"
16+
export CFLAGS="-fprofile-instr-generate -fcoverage-mapping -fPIE"
17+
export CXXFLAGS="-fprofile-instr-generate -fcoverage-mapping -fPIE"
18+
#2. Build your application, for better accuracy Debug build is recommended 
19+
mkdir Debug
20+
cd Debug || return
21+
if cmake ../../../ -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON;
22+
then
23+
echo CMake OK
24+
else
25+
echo CMake FAIL
26+
cd ..
27+
exit 1
28+
fi
29+
30+
if make all;
31+
then
32+
echo Build OK
33+
else
34+
echo Build FAIL
35+
cd ..
36+
exit 1
37+
fi
38+
39+
cd "$dir" || return
40+
41+
#directory with partial coverage data
42+
mkdir coverage_tmp_dir
43+
44+
export LLVM_PROFILE_FILE=$dir/coverage_tmp_dir/coverage_file0.profraw;
45+
46+
if [ -f "test.sh" ]; then
47+
echo "Run local test..."
48+
./test.sh
49+
echo "Run local test finish"
50+
cd "$dir" || return
51+
fi
52+
53+
if ./../../Bin/Debug/SvtJpegxsUnitTests;
54+
then
55+
echo UnitTests OK
56+
else
57+
echo UnitTests FAIL
58+
exit 1
59+
fi
60+
61+
62+
#5. Merge partial coverage data into single file
63+
if llvm-profdata-10 merge -sparse coverage_tmp_dir/coverage_file*.profraw -o coverage_tmp_dir/merged-coverage.profdata;
64+
then
65+
echo Merge OK
66+
else
67+
echo Merge FAIL
68+
exit 1
69+
fi
70+
71+
72+
#6. Export profiling data into lcov format (Your application is required to generate lcov file )
73+
#llvm-cov-10 export ./../../Bin/Debug/SvtJpegxsUnitTests --instr-profile=merged-coverage.profdata --format=lcov >lcov.data
74+
if llvm-cov-10 export ./../../Bin/Debug/SvtJpegxsUnitTests --instr-profile=coverage_tmp_dir/merged-coverage.profdata --format=lcov --ignore-filename-regex='.*/third_party.*|./*Build.*|./*tests/UnitTests.*' > coverage_tmp_dir/lcov.data;
75+
then
76+
echo Export OK
77+
else
78+
echo Export FAIL
79+
exit 1
80+
fi
81+
82+
83+
#7. Generate Code Coverage report (html format) in coverage-report directory
84+
#sudo apt-get install lcov
85+
if genhtml coverage_tmp_dir/lcov.data -o coverage-report;
86+
then
87+
echo GenHTML OK
88+
else
89+
echo GenHTML FAIL
90+
exit 1
91+
fi
92+
93+
echo open coverage-report/index.html
94+
95+
echo Coverage DONE OK
96+
exit 0

Build/eclipse/build_eclipse.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
#
3+
# Copyright(c) 2024 Intel Corporation
4+
# SPDX - License - Identifier: BSD - 2 - Clause - Patent
5+
#
6+
7+
cmake -G "Eclipse CDT4 - Ninja" ../../ -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON
8+

0 commit comments

Comments
 (0)