Last active
April 22, 2020 16:02
-
-
Save antonfirsov/145f97512363170896a4a43eea3a5c73 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IQuantizer | |
{ | |
// Remove: | |
// IFrameQuantizer<TPixel> CreateFrameQuantizer<TPixel>(Configuration configuration, QuantizerOptions options) | |
// where TPixel : unmanaged, IPixel<TPixel>; | |
// Add: | |
IQuantizer<TPixel> CreatePixelSpecificQuantizer<TPixel>(Configuration configuration, QuantizerOptions options) | |
where TPixel : unmanaged, IPixel<TPixel>; | |
} | |
// Renamed from FrameQuantizer<TPixel> | |
public interface IQuantizer<TPixel> : IDisposable | |
where TPixel : unmanaged, IPixel<TPixel> | |
{ | |
// Remove: | |
// void BuildPalette(ImageFrame<TPixel> source, Rectangle bounds); | |
// Add: | |
void CollectPaletteColors(BufferArea<TPixel> pixels); // can be invoked multiple times for different frames | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment