mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Adds target color space data extraction to OIIO transcode processor.
- Introduces extraction of `targetOCIOColorspace`, `targetOCIODisplay`, and `targetOCIOView` from instance data. - Removes redundant assignment of `target_colorspace`, `target_display`, and `target_view`.
This commit is contained in:
parent
6ea9e809e8
commit
2228037656
1 changed files with 5 additions and 1 deletions
|
|
@ -85,6 +85,11 @@ class ExtractOIIOTranscode(publish.Extractor):
|
|||
new_representations = []
|
||||
repres = instance.data["representations"]
|
||||
for idx, repre in enumerate(list(repres)):
|
||||
# target space, display and view might be defined upstream
|
||||
target_colorspace = instance.data.get("targetOCIOColorspace")
|
||||
target_display = instance.data.get("targetOCIODisplay")
|
||||
target_view = instance.data.get("targetOCIOView")
|
||||
|
||||
self.log.debug("repre ({}): `{}`".format(idx + 1, repre["name"]))
|
||||
if not self._repre_is_valid(repre):
|
||||
continue
|
||||
|
|
@ -126,7 +131,6 @@ class ExtractOIIOTranscode(publish.Extractor):
|
|||
|
||||
transcoding_type = output_def["transcoding_type"]
|
||||
|
||||
target_colorspace = target_view = target_display = None
|
||||
# NOTE: we use colorspace_data as the fallback values for
|
||||
# the target colorspace.
|
||||
if transcoding_type == "colorspace":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue