Commit graph

44 commits

Author SHA1 Message Date
Roy Nieterau
e2c6687690 Preserve order when making unique to avoid error on R,G,B becoming B,G,R but the channels being using in R,G,B order in --ch argument 2025-11-11 16:46:04 +01:00
Roy Nieterau
f38a6dffba Avoid repeating input channel names if e.g. R, G and B are reading from Y channel 2025-11-11 16:40:59 +01:00
Roy Nieterau
84db5d3965
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-11-05 23:00:22 +01:00
Roy Nieterau
cb81a57ddd Allow visualizing Alpha only layers for review as a color matte 2025-10-30 22:31:49 +01:00
Roy Nieterau
ad5368eaa2 Merge branch 'develop' of https://github.com/ynput/ayon-core into 989-ay-7315_extract-review-and-oiio-transcode-failing-to-transcode-media-blocking-publishes-2
# Conflicts:
#	client/ayon_core/lib/transcoding.py
#	client/ayon_core/plugins/publish/extract_color_transcode.py
2025-10-30 20:57:29 +01:00
Jakub Trllo
0f7176c2d2 avoid duplicated code 2025-10-08 12:03:56 +02:00
Jakub Trllo
455db40985 allow 'rgba' layer name to be used if is available 2025-10-08 11:59:29 +02:00
Jakub Trllo
71da4a02ec added comments to safe import 2025-10-02 10:11:50 +02:00
Jakub Trllo
ab058d15c5 copy implementation from ayon api 2025-10-02 09:59:40 +02:00
Jakub Trllo
61011ecea0 use ayon api implementation of mime type 2025-10-02 09:53:51 +02:00
Jakub Ježek
00cfb962e4
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Ondřej Samohel <33513211+antirotor@users.noreply.github.com>
2025-07-14 14:38:41 +02:00
Jakub Trllo
f673abebc8
use 'view' instead of 'screen'
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
2025-06-19 10:29:45 +02:00
Jakub Trllo
2b209044ed better conditions order 2025-06-12 15:50:44 +02:00
Jakub Trllo
3eb88ae850 use 'view' instead of 'screen' 2025-06-12 15:50:34 +02:00
Jakub Trllo
28978f07c6 use standard conditions 2025-06-12 15:50:21 +02:00
Jakub Trllo
21737339d3 rename 'oiiotool_transcode' to 'oiio_color_convert' 2025-06-12 15:46:23 +02:00
Roy Nieterau
55bfd79cf3 Check against .upper() instead of .lower() to match strings more with how they are compared later in the code (improve style consistency) 2025-06-11 20:55:21 +02:00
Roy Nieterau
0c23ecc70d Add support for red, green, blue and alpha 2025-06-11 20:52:08 +02:00
Jakub Jezek
4ebf35dd8b
Refactors docstring formatting in transcoding
Improves readability by adjusting docstring formatting
in the `convert_colorspace` function. This change ensures
consistent documentation style and enhances clarity.
2025-05-20 11:26:28 +02:00
Jakub Jezek
08f6b61a3e
Adds deprecation decorator and marks function
Introduces a `deprecated` decorator to mark functions as deprecated,
issuing a warning when they are called. The `convert_colorspace`
function is marked as deprecated, advising users to switch to
`oiiotool_transcode`.
2025-05-20 11:19:14 +02:00
Jakub Jezek
dba8d78a2a
Refactors color space conversion with oiiotool
Consolidates color space conversion logic into a dedicated
`oiiotool_transcode` function for better flexibility and clarity.

This change introduces support for display/view transformations,
enhancing the tool's ability to handle complex color management
workflows.

It also fixes issues with conflicting color space parameters and
improves handling of source and target display/view configurations.
2025-05-20 10:53:37 +02:00
Roy Nieterau
00921e7806
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-19 12:05:28 +02:00
Roy Nieterau
5917671521 Add AR, AG, AB test case and fix behavior 2025-05-19 12:04:01 +02:00
Roy Nieterau
b8ea018b43 Clarify exception 2025-05-19 11:18:37 +02:00
Roy Nieterau
7fa192229c Improve docstring 2025-05-17 15:47:50 +02:00
Roy Nieterau
afbf2c8848 Refactor UnknownRGBAChannelsError -> MissingRGBAChannelsError 2025-05-17 15:40:54 +02:00
Roy Nieterau
a093e1e9c9 Merge branch '989-ay-7315_extract-review-and-oiio-transcode-failing-to-transcode-media-blocking-publishes-2' of https://github.com/BigRoy/ayon-core into 989-ay-7315_extract-review-and-oiio-transcode-failing-to-transcode-media-blocking-publishes-2 2025-05-17 15:39:23 +02:00
Roy Nieterau
90070bc8ef Merge remote-tracking branch 'origin/bugfix/transcode_ignore_conversion_on_unknown_channel' into 989-ay-7315_extract-review-and-oiio-transcode-failing-to-transcode-media-blocking-publishes-2
# Conflicts:
#	client/ayon_core/lib/transcoding.py
2025-05-17 15:39:00 +02:00
Roy Nieterau
82b6837dc2
Merge branch 'develop' into 989-ay-7315_extract-review-and-oiio-transcode-failing-to-transcode-media-blocking-publishes-2 2025-05-13 15:55:16 +02:00
Roy Nieterau
2d7bd487ba Allow review/transcoding of more channels, like "Y", "XYZ", "AR", "AG", "AB" 2025-05-13 15:40:40 +02:00
Roy Nieterau
5f82473a26 Merge branch 'develop' of https://github.com/ynput/ayon-core into bugfix/transcode_ignore_conversion_on_unknown_channel
# Conflicts:
#	client/ayon_core/plugins/publish/extract_color_transcode.py
2025-03-18 00:16:50 +01:00
Roy Nieterau
8424ad3907 Remove redundant brackets 2025-03-13 11:00:59 +01:00
Roy Nieterau
5540e7923a
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-03-13 10:59:38 +01:00
Roy Nieterau
ffc76e639a Remove deprecated convert_for_ffmpeg 2025-03-12 21:50:06 +01:00
robin@ynput.io
df95e252fa Add SXR support for image extension. 2025-02-26 11:09:25 +01:00
Roy Nieterau
148ce21a9a Allow ExtractOIIOTranscode to pass with a warning if it can't find the RGBA channels in source media instead of raising error 2024-11-06 09:09:12 +01:00
ReeceMulley
7d9390e9d5
improved OIIO subimages handling 2024-09-26 15:34:31 +10:00
Jakub Trllo
432ead8178 removed invalid 3gpp 2024-07-19 18:54:12 +02:00
Jakub Trllo
3268240c6b implemented 'get_media_mime_type' 2024-07-19 15:11:42 +02:00
Jakub Trllo
dc43d25d31 remove deprecated '-intra' 2024-07-08 14:11:15 +02:00
Jacob Danell
577f0e0b68 add dng as image extension 2024-03-25 13:54:32 +01:00
Jakub Trllo
8331c90fcf ExtractThumbnail uses AYON settings 2024-02-15 18:52:05 +01:00
Jakub Trllo
0508cd986a fix openpype imports 2024-02-05 16:02:14 +01:00
Jakub Trllo
a4f2f76fbf rename openpype > ayon_core 2024-02-05 15:26:43 +01:00
Renamed from client/openpype/lib/transcoding.py (Browse further)