-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document steps to add a new compression method in ImfCompression.h #1672
Document steps to add a new compression method in ImfCompression.h #1672
Conversation
Signed-off-by: Philippe Leprince <[email protected]>
Signed-off-by: Philippe Leprince <[email protected]>
Hi @peterhillman. Would you be kind enough to review ? Cheers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very clear and complete.
I would perhaps have put this in ImfCompressor.cpp, as most people viewing this header file are only looking up values of the enum or the function declarations. There's little point having the documentation in installs of the OpenEXR library, since you can only add compression types by modifying the source. A one-line comment in ImfCompression.h could point readers at those details.
It would also be better for compression types to have a single implementation in the Core library, with the C++ library then calling low level functionality in Core to implement the compression/decompression
I totally agree. I didn't really know about the C API at the time and it would be better to refactor the compressors in the future. |
Perhaps switch the order round, so step 2 is the C implementation and step 3 the C++ integration, and add a suggestion in the C++ integration section about having it call the C implementation? If the entire implementation is just |
This looks good to me, too, thanks! I see you added Zstd support to OpenEXRCore in #1604, which is great, and the |
@pleprince, we're happy to accept this, but with @peterhillman's suggestion of moving the comment to |
Hi CarySorry I was busy with something else. I will do that tomorrow.Cheers--PhilippeOn 18 Mar 2024, at 19:20, Cary Phillips ***@***.***> wrote:
@pleprince, we're happy to accept this, but with @peterhillman's suggestion of moving the comment to ImfCompression.cpp since it's not relevant to the external API, and switching the order of the steps as described above. Thanks!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Signed-off-by: Philippe Leprince <[email protected]>
Sorry for the delay. I hope this will be ok now. Cheers |
Thanks. Sorry to be a stickler here, but our project coding standards are to format comments with each line prefixed with |
…tespace. Signed-off-by: Philippe Leprince <[email protected]>
no worries. |
Suggested by @cary-ilm