-
-
Notifications
You must be signed in to change notification settings - Fork 891
Apply ICC Profile / Color Conversion when decoding PNG #3028
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
base: main
Are you sure you want to change the base?
Changes from 4 commits
e965d3f
bd532d6
15d1151
f8c8174
472089a
e6d62d0
7d06e6d
33aa0c8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,10 @@ private static void MemoryDiagnostics_MemoryReleased() | |
| TestMemoryDiagnostics backing = LocalInstance.Value; | ||
| if (backing != null) | ||
| { | ||
| backing.TotalRemainingAllocated--; | ||
| lock (backing) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if moving the color converter inside the loop action removes this requirement. We process in chunks so not concerned about initialization overhead.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, I would do that anyway so that
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, there is an hiden allocator in the Moving it inside the loop does not fix the problem |
||
| { | ||
| backing.TotalRemainingAllocated--; | ||
| } | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -31,8 +34,11 @@ private static void MemoryDiagnostics_MemoryAllocated() | |
| TestMemoryDiagnostics backing = LocalInstance.Value; | ||
| if (backing != null) | ||
| { | ||
| backing.TotalAllocated++; | ||
| backing.TotalRemainingAllocated++; | ||
| lock (backing) | ||
| { | ||
| backing.TotalAllocated++; | ||
| backing.TotalRemainingAllocated++; | ||
| } | ||
| } | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.