-
-
Notifications
You must be signed in to change notification settings - Fork 851
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
Added Image<TPixel> constructor from single ImageFrame #1680
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1680 +/- ##
=======================================
Coverage 84.32% 84.32%
=======================================
Files 816 816
Lines 35890 35899 +9
Branches 4182 4182
=======================================
+ Hits 30263 30272 +9
Misses 4804 4804
Partials 823 823
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@br3aker I've seen your #1597 (comment), just didn't have chance to react yet. I don't see the point in detaching Is there anything preventing you to create an |
@antonfirsov I didn't remove already existing API for multi-frame images just added yet another internal contructor which already fixes several You are right, I prefer creating
Furthermore, as in converter we work with pixel buffer directly in hot path, it's usually better to save extra reference to frame itself which would look somewhat like this: class SpectralConverter<T>
{
// exists here only to return after entire conversion chain
public Image<T> Image { get; private set; }
// actually used field
private ImageFrame<T> frame;
// ...
} |
Sorry for disappearing, stuck in analysis paralysis with this a bit. The justification makes sense, but in long term we need to aim for decoder techniques, that can be refactored to work with public API-s. Maybe we should define public @JimBobSquarePants thoughts? |
I'll have to review how that works with our existing APIs. I'm loath to expose more public constructors unless we absolutely need them. All the wrapping ones we have already do make me uneasy. |
Sorry for no response, was fixing cooling on my pc. @antonfirsov @JimBobSquarePants maybe we can expose internal |
As new Jpeg decoding pipeline have been merged, this is no longer needed, closing this for now. |
Prerequisites
Description
Added contructor from single frame used in some cases (and will be used in new version of jpeg decoder). Replaced multi-frame ctors with single-frame ctors where applicable.