Skip to content

Commit 36544fc

Browse files
authored
Merge pull request #87 from ampas/feature/app_restructure_clean
PR: Refactor repository structure.
2 parents eb5c8e5 + 2560c2b commit 36544fc

File tree

87 files changed

+5124
-2112
lines changed

Some content is hidden

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

87 files changed

+5124
-2112
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
.idea
77
__pycache__
88
poetry.lock
9+
/tests/output/**

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ repos:
3636
rev: 1.16.0
3737
hooks:
3838
- id: blacken-docs
39-
language_version: python3.9
39+
language_version: python3.10
4040
- repo: https://github.com/pre-commit/mirrors-prettier
4141
rev: "v3.1.0"
4242
hooks:

Dockerfile

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,44 @@
11
FROM python:3.12
2+
ENV PYTHON_MAJOR_MINOR_VERSION 3.12
23

34
RUN apt-get update \
4-
&& apt-get -y install ffmpeg libsm6 libxext6
5+
&& apt-get -y install build-essential gcc g++ build-essential git cmake mlocate automake autotools-dev libtool \
6+
libltdl-dev autoconf pkg-config m4 tree ffmpeg libsm6 libxext6 libpng-dev libgif-dev libwebp-dev libraw-dev \
7+
libopenjp2-7-dev libopenexr-dev libdcmtk-dev libtiff-dev libtbb-dev libfreetype6-dev libboost-all-dev \
8+
libopencv-dev pybind11-dev
9+
10+
ENV BUILD_DIR=/oiio_build \
11+
OIIO_VER=2.4.17.0 \
12+
OCIO_VER=v2.3.2 \
13+
PACKAGE_ROOT=/oiio_build/install \
14+
PYBIND11_VERSION=v2.11.1
15+
16+
# Create the build directory for OIIO
17+
RUN mkdir -p "${BUILD_DIR}"
18+
19+
# Download and extract the OpenImageIO source
20+
WORKDIR ${BUILD_DIR}
21+
RUN curl -LO https://github.com/OpenImageIO/oiio/archive/refs/tags/v${OIIO_VER}.tar.gz \
22+
&& tar xzf v${OIIO_VER}.tar.gz
23+
24+
# Set the OpenColorIO version environment variable and build OpenImageIO
25+
WORKDIR ${BUILD_DIR}/OpenImageIO-${OIIO_VER}
26+
RUN export OPENCOLORIO_VERSION=${OCIO_VER} \
27+
&& src/build-scripts/build_pybind11.bash \
28+
&& src/build-scripts/build_opencolorio.bash \
29+
&& OIIO_BUILD_TESTS=0 OIIO_BUILD_TOOLS=0 make BUILD_SHARED_LIBS=0 CMAKE_CXX_STANDARD=14 PYBIND11_VERSION=v2.11.1 ENABLE_DICOM=0 ENABLE_DCMTK=0 \
30+
&& make install
31+
32+
# Prepare the package
33+
RUN mkdir -p "${PACKAGE_ROOT}/usr" \
34+
&& cp -r "${BUILD_DIR}/OpenImageIO-${OIIO_VER}/dist/." "${PACKAGE_ROOT}/" \
35+
&& cp -r "${BUILD_DIR}/OpenImageIO-${OIIO_VER}/ext/dist/." "${PACKAGE_ROOT}/"
36+
37+
#Set The PYTHON PATH
38+
ENV PYTHONPATH="${PYTHONPATH}:/oiio_build/install/lib/python${PYTHON_MAJOR_MINOR_VERSION}/site-packages/OpenImageIO"
39+
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/oiio_build/install/lib/"
40+
41+
# Continue With IDT Calculator
542
WORKDIR /tmp
643
COPY ./requirements.txt /tmp
744
RUN pip install -r requirements.txt \

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ This license shall be construed pursuant to the laws of the State of California,
1818

1919
Disclaimer of Warranty: THIS SOFTWARE IS PROVIDED BY A.M.P.A.S. AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL A.M.P.A.S., OR ANY CONTRIBUTORS OR DISTRIBUTORS, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, RESITUTIONARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2020

21-
WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, THE ACADEMY SPECIFICALLY DISCLAIMS ANY REPRESENTATIONS OR WARRANTIES WHATSOEVER RELATED TO PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS IN THE ACADEMY COLOR ENCODING SYSTEM, OR APPLICATIONS THEREOF, HELD BY PARTIES OTHER THAN A.M.P.A.S.,WHETHER DISCLOSED OR UNDISCLOSED.
21+
WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, THE ACADEMY SPECIFICALLY DISCLAIMS ANY REPRESENTATIONS OR WARRANTIES WHATSOEVER RELATED TO PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS IN THE ACADEMY COLOR ENCODING SYSTEM, OR APPLICATIONS THEREOF, HELD BY PARTIES OTHER THAN A.M.P.A.S.,WHETHER DISCLOSED OR UNDISCLOSED.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,13 @@ It is also possible to use floating point exposure values by naming the director
206206
![IDT Archive Implicit Structure - Floating Point Values](docs/_static/idt_archive_implicit_structure_fractional_ev.png)
207207

208208
## License
209+
209210
This project is licensed under the terms of the [LICENSE](./LICENSE.md) agreement.
210211

211212
## Contributing
213+
212214
Thank you for your interest in contributing to our project. Before any contributions can be accepted, we require contributors to sign a Contributor License Agreement (CLA) to ensure that the project can freely use your contributions. You can find more details and instructions on how to sign the CLA in the [CONTRIBUTING.md](./CONTRIBUTING.md) file.
213215

214216
## Support
215-
For support, please visit [ACESCentral.com](https://acescentral.com)
216-
217217

218+
For support, please visit [ACESCentral.com](https://acescentral.com)

SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Support
22

3-
For support, please visit [ACESCentral.com](https://acescentral.com)
3+
For support, please visit [ACESCentral.com](https://acescentral.com)

aces/idt/__init__.py

Lines changed: 74 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,93 @@
1-
from .common import (
1+
from .core import (
2+
CAT,
3+
OPTIMISATION_FACTORIES,
4+
RGB_COLORCHECKER_CLASSIC_ACES,
5+
SAMPLES_COUNT_DEFAULT,
6+
SD_ILLUMINANT_ACES,
7+
SDS_COLORCHECKER_CLASSIC,
8+
SETTINGS_SEGMENTATION_COLORCHECKER_CLASSIC,
9+
DecodingMethods,
10+
DirectoryStructure,
11+
Interpolators,
12+
LUTSize,
13+
Metadata,
14+
MetadataProperty,
15+
MixinSerializableProperties,
16+
OptimizationSpace,
17+
PathEncoder,
18+
ProjectSettingsMetadataConstants,
19+
RGBDisplayColourspace,
20+
SerializableConstants,
21+
UICategories,
22+
UITypes,
223
clf_processing_elements,
324
error_delta_E,
25+
extract_archive,
26+
format_exposure_key,
427
generate_reference_colour_checker,
5-
optimisation_factory_IPT,
6-
optimisation_factory_Oklab,
7-
png_compare_colour_checkers,
8-
)
9-
from .prosumer_camera import IDTGeneratorProsumerCamera
10-
from .utilities import (
28+
get_sds_colour_checker,
29+
get_sds_illuminant,
1130
hash_file,
1231
list_sub_directories,
1332
mask_outliers,
33+
metadata_property,
34+
optimisation_factory_IPT,
35+
optimisation_factory_Oklab,
36+
png_compare_colour_checkers,
1437
slugify,
38+
sort_exposure_keys,
1539
working_directory,
1640
)
41+
from .framework import IDTProjectSettings
42+
from .generators import GENERATORS, IDTBaseGenerator, IDTGeneratorProsumerCamera
43+
44+
from .application import IDTGeneratorApplication # isort: skip
1745

1846
__all__ = [
47+
"CAT",
48+
"OPTIMISATION_FACTORIES",
49+
"RGB_COLORCHECKER_CLASSIC_ACES",
50+
"SAMPLES_COUNT_DEFAULT",
51+
"SD_ILLUMINANT_ACES",
52+
"SDS_COLORCHECKER_CLASSIC",
53+
"SETTINGS_SEGMENTATION_COLORCHECKER_CLASSIC",
54+
"DecodingMethods",
55+
"DirectoryStructure",
56+
"Interpolators",
57+
"LUTSize",
58+
"Metadata",
59+
"MetadataProperty",
60+
"MixinSerializableProperties",
61+
"OptimizationSpace",
62+
"PathEncoder",
63+
"ProjectSettingsMetadataConstants",
64+
"RGBDisplayColourspace",
65+
"SerializableConstants",
66+
"UICategories",
67+
"UITypes",
68+
"clf_processing_elements",
1969
"error_delta_E",
70+
"extract_archive",
71+
"format_exposure_key",
2072
"generate_reference_colour_checker",
73+
"get_sds_colour_checker",
74+
"get_sds_illuminant",
75+
"hash_file",
76+
"list_sub_directories",
77+
"mask_outliers",
78+
"metadata_property",
2179
"optimisation_factory_IPT",
2280
"optimisation_factory_Oklab",
2381
"png_compare_colour_checkers",
24-
"clf_processing_elements",
25-
]
26-
__all__ += ["IDTGeneratorProsumerCamera"]
27-
__all__ += [
2882
"slugify",
29-
"list_sub_directories",
30-
"mask_outliers",
83+
"sort_exposure_keys",
3184
"working_directory",
32-
"hash_file",
3385
]
86+
87+
__all__ += ["IDTProjectSettings"]
88+
__all__ += [
89+
"GENERATORS",
90+
"IDTBaseGenerator",
91+
"IDTGeneratorProsumerCamera",
92+
]
93+
__all__ += ["IDTGeneratorApplication"]

0 commit comments

Comments
 (0)