AcademySoftwareFoundation / OpenColorIO

A color management framework for visual effects and animation.
https://opencolorio.org
BSD 3-Clause "New" or "Revised" License
1.78k stars 452 forks source link

DRAFT: ocioarchive enhancements #1931

Open KevinJW opened 8 months ago

KevinJW commented 8 months ago

Do not merge this is for comments etc.

I've added a 'minimal mode for ocioarchive, that attempts to add only the files you need for the configuration file given.

To run you just add --minimal to the command line.

as an example here is the result of one of my configurations

-rw-r--r-- 1 kwheatle user 222M Jan 16 21:16 test_archive.ocioz
-rw-r--r-- 1 kwheatle user  19M Jan 16 21:02 test_archive_minimal.ocioz

The full one contains 808773530 Bytes from 246 files the minimal one is 62104478 in 29 files

You can imagine that part of the full directory contains the ACES 1,2 configs amongst other items. and from that the minimal config only needed these

  9666918  03-03-2023 15:59   colour/look/aces_1.2/luts/InvRRT.P3-DCI__D60_simulation_.Log2_48_nits_Shaper.spi3d
  9668173  03-03-2023 15:59   colour/look/aces_1.2/luts/InvRRT.Rec.709.Log2_48_nits_Shaper.spi3d
  9667175  03-03-2023 15:59   colour/look/aces_1.2/luts/InvRRT.Rec.709__D60_sim._.Log2_48_nits_Shaper.spi3d
  8032699  03-03-2023 15:59   colour/look/aces_1.2/luts/Log2_48_nits_Shaper.RRT.P3-DCI__D60_simulation_.spi3d
  6829730  03-03-2023 15:59   colour/look/aces_1.2/luts/Log2_48_nits_Shaper.RRT.Rec.709.spi3d
  7770153  03-03-2023 15:59   colour/look/aces_1.2/luts/Log2_48_nits_Shaper.RRT.Rec.709__D60_sim._.spi3d
    73776  03-03-2023 15:59   colour/look/aces_1.2/luts/Log2_48_nits_Shaper_to_linear.spi1d

It does not yet handle environments, nor have good documentation or tests and no Python bindings

Would be good to have feedback before pursuing it further. especially as this changes the ABI and API

Kevin