-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
Feature: Read EXR files from memory #1733
base: master
Are you sure you want to change the base?
Conversation
|
||
std::string actual_filename = std::string(argv[1]) + "data/Rec709.exr"; | ||
std::string filename = "readFromMem.exr"; | ||
reader->SetFileName(filename.c_str()); |
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.
I don't think the filename should be set here.
{ | ||
if (pos + n <= bufflen) | ||
{ | ||
memcpy(c, buffer + pos, n); |
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.
Let's use C++ here (you may need to include algorithm
instead of cstring
)
memcpy(c, buffer + pos, n); | |
std::copy_n(buffer + pos, n, c); |
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.
fixed: 226b4c8
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1733 +/- ##
==========================================
- Coverage 96.96% 95.69% -1.27%
==========================================
Files 110 118 +8
Lines 8825 9368 +543
==========================================
+ Hits 8557 8965 +408
- Misses 268 403 +135 ☔ View full report in Codecov by Sentry. |
Related Issue
This work addresses the Issue: #1187
Description
This PR continues the work initiated by Nabiel Kandiel in PR #1448.