CTL icon indicating copy to clipboard operation
CTL copied to clipboard

Adds ADX support

Open scottdyer opened this issue 8 years ago • 5 comments

Adds support for reading and writing ADX compliant DPX files from ctlrender.

scottdyer avatar Nov 05 '15 22:11 scottdyer

@miaoqi , I am having issues writing ADX files after your latest changes, though at one point earlier in the commit chain it seemed to be writing files just fine.

I'm now getting a "Floating point exception: 8" error.

Here are some variants of commands I tried:

ctlrender -ctl ACESlib.Unity.a1.0.1.ctl SonyF35.StillLife.exr test.dpx -format adx10

ctlrender -ctl ACESlib.Unity.a1.0.1.ctl SonyF35.StillLife.exr test.dpx -format adx16

ctlrender -ctl ACESlib.Unity.a1.0.1.ctl SonyF35.StillLife.exr test.dpx -format adx

Input is a 16-bit OpenEXR.

I am trying to get output of either ADX10 or ADX16. I would expect it to work similarly to using -format dpx or -format dpx10 or -format dpx16

Is there anything in particular that you changed in commit range 1d0535f to 47fb2d0 that might be causing this exception?

scottdyer avatar Nov 06 '15 19:11 scottdyer

When I cleaned up the code after previous commit, this error occurred once. Let me look into it.

Thanks,

Mio

miaoqi avatar Nov 09 '15 23:11 miaoqi

Hi Scott,

The float point issue should be fixed now. The problem is probably caused by float16_t to uint8_t conversion.

Now when it comes to use “SonyF35.StillLife.exr”, it may not be good for converting to adx, as it breaks a few adx spec. For example, the descriptor for the first element is 221 or something like that, while adx just expects 50/RGB for the first element and 4/alpha for the second one. I temporarily changed “Error” to “Warning” in the output so you can test it.

Thanks,

Mio

[Δ]http://www.oscars.org

Miaoqi Zhu Lab Systems Administrator

Academy of Motion Picture Arts and Sciences Science & Technology Council 1313 Vine Street • Hollywood, CA 90028

310.247.3000 x3302 • [email protected]:[email protected]

From: Scott Dyer <[email protected]mailto:[email protected]> Reply-To: ampas/CTL <[email protected]mailto:[email protected]> Date: Monday, November 9, 2015 at 1:51 PM To: ampas/CTL <[email protected]mailto:[email protected]> Cc: Miaoqi Zhu <[email protected]mailto:[email protected]> Subject: Re: [CTL] Adds ADX support (#61)

@miaoqihttps://github.com/miaoqi , I am having issues writing ADX files after your latest changes, though at one point earlier in the commit chain it seemed to be writing files just fine.

I'm now getting a "Floating point exception: 8" error.

Here are some variants of commands I tried:

ctlrender -ctl ACESlib.Unity.a1.0.1.ctl SonyF35.StillLife.exr test.dpx -format adx10

ctlrender -ctl ACESlib.Unity.a1.0.1.ctl SonyF35.StillLife.exr test.dpx -format adx16

ctlrender -ctl ACESlib.Unity.a1.0.1.ctl SonyF35.StillLife.exr test.dpx -format adx

Input is a 16-bit OpenEXR.

I am trying to get output of either ADX10 or ADX16. I would expect it to work similarly to using -format dpx or -format dpx10 or -format dpx16

Is there anything in particular that you changed in commit range 1d0535fhttps://github.com/ampas/CTL/commit/1d0535fee27cb80bc2cf6495383de12ff9483236 to 47fb2d0https://github.com/ampas/CTL/commit/47fb2d00c8fa6b5bfdde56db1114c76ebd15b7bd that might be causing this exception?

— Reply to this email directly or view it on GitHubhttps://github.com/ampas/CTL/pull/61#issuecomment-154515864.

miaoqi avatar Nov 11 '15 02:11 miaoqi

Hi Scott,

Does the fix work for your transform? Please be aware that "adx" is same as "adx10". You also have "adx16".

Thanks,

Mio

miaoqi avatar Nov 12 '15 20:11 miaoqi

Hi Scott,

Can you use the latest code and let me know if the temporary fix address the issue? :)

Thanks,

Mio

miaoqi avatar Nov 17 '15 00:11 miaoqi