Skip to content

Commit bd19203

Browse files
committed
Adding code for release v0.2.0 (commit e61f259)
0 parents  commit bd19203

556 files changed

Lines changed: 59303 additions & 0 deletions

File tree

Some content is hidden

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

.clang-format

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
BasedOnStyle: LLVM
3+
ColumnLimit: 140
4+
IndentWidth: 4
5+
IndentPPDirectives: BeforeHash
6+
IndentExternBlock : NoIndent
7+
TabWidth: 4
8+
Language: Cpp
9+
Standard: c++17
10+
CompactNamespaces: true
11+
BreakBeforeBraces: Mozilla
12+
UseCRLF: false
13+
UseTab: Never
14+
SortIncludes: true
15+
IncludeCategories:
16+
- Regex: '^<ext/.*\.h>'
17+
Priority: 2
18+
- Regex: '^<.*\.h>'
19+
Priority: 1
20+
- Regex: '^<.*'
21+
Priority: 2
22+
- Regex: '.*'
23+
Priority: 3
24+
AllowAllArgumentsOnNextLine: true
25+
AllowAllConstructorInitializersOnNextLine: true
26+
AllowAllParametersOfDeclarationOnNextLine: true
27+
AllowShortEnumsOnASingleLine: false
28+
AllowShortBlocksOnASingleLine: Never
29+
AllowShortCaseLabelsOnASingleLine: false
30+
AllowShortFunctionsOnASingleLine: InlineOnly
31+
AllowShortIfStatementsOnASingleLine: Never
32+
AllowShortLoopsOnASingleLine: false
33+
AlwaysBreakAfterReturnType: None
34+
AlwaysBreakBeforeMultilineStrings: true
35+
AlwaysBreakTemplateDeclarations: Yes
36+
BinPackArguments: true
37+
BinPackParameters: true
38+
BreakBeforeBinaryOperators: None
39+
BreakConstructorInitializers: BeforeComma
40+
DerivePointerAlignment: False
41+
PointerAlignment: Left
42+
AlignTrailingComments: true
43+
AlignEscapedNewlines: Left
44+
AlignOperands: Align
45+
AlignAfterOpenBracket: DontAlign
46+
AlignConsecutiveAssignments: false
47+
AlignConsecutiveMacros: false
48+
AlignConsecutiveBitFields: true
49+
AlignConsecutiveDeclarations: false
50+
SpacesInParentheses: false
51+
SpacesInSquareBrackets: false
52+
ReflowComments: false
53+
FixNamespaceComments: true
54+
# SpacesBeforeTrailingComments: true
55+
MacroBlockBegin: "^NVIMGCODECAPI_TRY"
56+
MacroBlockEnd: "^NVIMGCODECAPI_CATCH.*$"
57+
TypenameMacros: ['CHECK_NULL']
58+
...
59+
60+

.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.jpg filter=lfs diff=lfs merge=lfs -text
2+
*.JPEG filter=lfs diff=lfs merge=lfs -text
3+
*.png filter=lfs diff=lfs merge=lfs -text
4+
*.jpeg filter=lfs diff=lfs merge=lfs -text
5+
*.tif filter=lfs diff=lfs merge=lfs -text
6+
*.tiff filter=lfs diff=lfs merge=lfs -text
7+
*.jp2 filter=lfs diff=lfs merge=lfs -text
8+
*.j2k filter=lfs diff=lfs merge=lfs -text
9+
*.bmp filter=lfs diff=lfs merge=lfs -text
10+
*.ppm -text
11+
*.pbm -text
12+
*.pgm -text
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: Bug Report
17+
description: File a bug report
18+
labels: ["bug"]
19+
20+
body:
21+
- type: markdown
22+
attributes:
23+
value: |
24+
Thanks for taking the time to fill out this bug report!
25+
26+
- type: input
27+
id: version
28+
attributes:
29+
label: Version
30+
description: What version of nvImageCodec are you running?
31+
placeholder: "example: 0.2.0"
32+
validations:
33+
required: true
34+
35+
- type: textarea
36+
id: description
37+
attributes:
38+
label: Describe the bug.
39+
description: Also tell us, what did you expect to happen?
40+
placeholder: XYZ occurred, I expected QRS results
41+
validations:
42+
required: true
43+
44+
- type: textarea
45+
id: mvr
46+
attributes:
47+
label: Minimum reproducible example
48+
description: Please supply a [minimum reproducible code example](https://github.com/NVIDIA/nvImageCodec#reporting-problems-asking-questions) here
49+
render: shell
50+
51+
- type: textarea
52+
id: env
53+
attributes:
54+
label: Environment details
55+
description: Please run and paste the output of the `tools/print_env.sh` script here, to gather any other relevant environment details.
56+
render: shell
57+
58+
- type: textarea
59+
id: logs
60+
attributes:
61+
label: Relevant log output
62+
description: Please paste relevant error and log output here.
63+
render: shell
64+
65+
- type: textarea
66+
id: misc
67+
attributes:
68+
label: Other/Misc.
69+
description: Please enter any other helpful information here.
70+
71+
- type: checkboxes
72+
id: terms
73+
attributes:
74+
label: Check for duplicates
75+
options:
76+
- label: I have searched the [open bugs/issues](https://github.com/NVIDIA/nvImageCodec/issues) and have found no duplicates for this bug report
77+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GitHub info on config.yml
2+
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
3+
# Set to 'false' if you only want the templates to be used.
4+
blank_issues_enabled: true
5+
6+
# When using discussions instead of Question issue templates,
7+
# link that below to have it show up in the 'Submit Issue' page
8+
contact_links:
9+
- name: NVIDIA Security
10+
url: https://github.com/NVIDIA/nvImageCodec/SECURITY.md
11+
about: Please report security vulnerabilities.
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: Feature Request Form
17+
description: Request new or improved functionality or changes to existing functionality
18+
labels: ["enhancement"]
19+
20+
body:
21+
- type: markdown
22+
attributes:
23+
value: |
24+
Thanks for taking the time to fill out this feature request!
25+
26+
- type: dropdown
27+
id: new_or_improvement
28+
attributes:
29+
label: Is this a new feature, an improvement, or a change to existing functionality?
30+
options:
31+
- New Feature
32+
- Improvement
33+
- Change
34+
validations:
35+
required: true
36+
37+
- type: dropdown
38+
id: criticality
39+
attributes:
40+
label: How would you describe the priority of this feature request
41+
options:
42+
- Must have (e.g. nvImageCodec adoption is impossible due to lack in functionality).
43+
- Should have (e.g. Adoption is possible, but the performance shortcomings make the solution inferior).
44+
- Nice to have (e.g. Adoption is possible, the feature will enhance the use-case even more).
45+
validations:
46+
required: true
47+
48+
- type: textarea
49+
id: problem
50+
attributes:
51+
label: Please provide a clear description of problem this feature solves
52+
description: Real usage examples are especially helpful, non-code.
53+
validations:
54+
required: true
55+
56+
- type: textarea
57+
id: Feature_Description
58+
attributes:
59+
label: Feature Description
60+
description: Please provide clear description of the feature you request (refer to [User Story format](https://www.atlassian.com/agile/project-management/user-stories#:~:text=User%20story%20template%20and%20examples) and [EARS format](https://ieeexplore.ieee.org/document/5328509))
61+
placeholder: >
62+
For new feature request, please use one of the following format to describe the feature
63+
1. From End-user perspective, use the following user story format
64+
As a <persona>, I <want to>, <so that>.
65+
2. From System perspective, use the following EARS format
66+
<Pre-Condition> <System> shall <process> <object to be process> <condition>
67+
For changing or improving existing feature, it's recommended to provide the previous Feature Request ID.
68+
validations:
69+
required: true
70+
71+
- type: textarea
72+
id: solution
73+
attributes:
74+
label: Describe your ideal solution
75+
description: Please describe the functionality you would like added.
76+
placeholder: >
77+
A new function that takes in the information in this form, and triages the issue
78+
79+
def feature_request(form_info):
80+
parse(form_info)
81+
return triage_outcome
82+
You can even provide a reference implementation in other library.
83+
validations:
84+
required: true
85+
86+
- type: textarea
87+
id: alternatives
88+
attributes:
89+
label: Describe any alternatives you have considered
90+
description: List any other libraries, or approaches you have looked at or tried.
91+
placeholder: I have looked at library xyz and qrs, but they do not offer GPU acceleration
92+
93+
- type: textarea
94+
id: misc
95+
attributes:
96+
label: Additional context
97+
description: Add any other context, code examples, or references to existing implementations about the feature request here. If applicable, please list the modules affected.
98+
99+
- type: checkboxes
100+
id: terms
101+
attributes:
102+
label: Check for duplicates
103+
options:
104+
- label: I have searched the [open bugs/issues](https://github.com/NVIDIA/nvImageCodec/issues) and have found no duplicates for this bug report
105+
required: true
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: Submit question
17+
description: Ask a general question about nvImageCodec
18+
labels: ["question"]
19+
20+
body:
21+
- type: markdown
22+
attributes:
23+
value: |
24+
Thanks for taking the time to fill out this question!
25+
26+
- type: textarea
27+
id: description
28+
attributes:
29+
label: Describe the question.
30+
description: What is your question?
31+
validations:
32+
required: true
33+
34+
- type: checkboxes
35+
id: terms
36+
attributes:
37+
label: Check for duplicates
38+
options:
39+
- label: I have searched the [open bugs/issues](https://github.com/NVIDIA/nvImageCodec/issues) and have found no duplicates for this bug report
40+
required: true

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*~
2+
build*/*
3+
docs/sphinx/_build/*
4+
docs/doxygen/xml/*
5+
bin/*
6+
.idea
7+
.vscode
8+
.vimrc
9+
.DS_Store
10+
.*.swp
11+
.dockerignore
12+
nvimgcodec_version.h

.gitmodules

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[submodule "external/pybind11"]
2+
path = external/pybind11
3+
url = https://github.com/pybind/pybind11.git
4+
[submodule "external/NVTX"]
5+
path = external/NVTX
6+
url = https://github.com/NVIDIA/NVTX.git
7+
branch = release-v3
8+
[submodule "external/googletest"]
9+
path = external/googletest
10+
url = https://github.com/google/googletest.git
11+
branch = main
12+
[submodule "external/dlpack"]
13+
path = external/dlpack
14+
url = https://github.com/dmlc/dlpack.git
15+
[submodule "external/boost/preprocessor"]
16+
path = external/boost/preprocessor
17+
url = https://github.com/boostorg/preprocessor
18+
[submodule "external/libjpeg-turbo"]
19+
path = external/libjpeg-turbo
20+
url = https://github.com/libjpeg-turbo/libjpeg-turbo.git
21+
branch = main
22+
[submodule "external/openjpeg"]
23+
path = external/openjpeg
24+
url = https://github.com/uclouvain/openjpeg.git
25+
[submodule "external/opencv"]
26+
path = external/opencv
27+
url = https://github.com/opencv/opencv.git
28+
[submodule "external/libtiff"]
29+
path = external/libtiff
30+
url = https://gitlab.com/libtiff/libtiff.git
31+
[submodule "external/zstd"]
32+
path = external/zstd
33+
url = https://github.com/facebook/zstd.git
34+
[submodule "external/zlib"]
35+
path = external/zlib
36+
url = https://github.com/madler/zlib.git

0 commit comments

Comments
 (0)