-
-
Notifications
You must be signed in to change notification settings - Fork 888
Add La16 and La32 IPixel formats. #1062
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1278d0b
decoder jpeg to matching pixel format
JimBobSquarePants d68519d
Alpha8 => A8
JimBobSquarePants 372c691
Gray8 => L8
JimBobSquarePants 8da27b2
Update BokehBlurTest.cs
JimBobSquarePants d2d5145
Gray16 => L16
JimBobSquarePants 50bcbdc
Basic La16 implementation
JimBobSquarePants 8ed598f
Basic La32 implementation.
JimBobSquarePants f0a6bc0
Create La16Tests.cs
JimBobSquarePants 6e180b1
Create La32Tests.cs
JimBobSquarePants c5f59f3
Add Bgra5551 pixeloperations plus tests.
JimBobSquarePants ce86f64
Add La16 and La32 to IPixel (tests next commit)
JimBobSquarePants e0d4c93
Add pixeloperations tests for new pixel formats
JimBobSquarePants 1f6cbac
Update PngScanlineProcessor.cs
JimBobSquarePants c016fc2
Update AotCompilerTools.cs
JimBobSquarePants 563c34b
Revert non-generic decode to use RGba32 and add comments
JimBobSquarePants 5a7091e
Simplify format specific metadata retrieval.
JimBobSquarePants a0e5b39
Revert Rgba32 specificity on docs.
JimBobSquarePants 77f5bbe
MetaData => Metadata
JimBobSquarePants cb69622
MetaData => Metadata code.
JimBobSquarePants 8395e9c
Update PngScanlineProcessor.cs
JimBobSquarePants File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| // Copyright (c) Six Labors and contributors. | ||
| // Licensed under the Apache License, Version 2.0. | ||
|
|
||
| using SixLabors.ImageSharp.Formats.Bmp; | ||
| using SixLabors.ImageSharp.Metadata; | ||
|
|
||
| namespace SixLabors.ImageSharp | ||
| { | ||
| /// <summary> | ||
| /// Extension methods for the <see cref="ImageMetadata"/> type. | ||
| /// </summary> | ||
| public static partial class MetadataExtensions | ||
| { | ||
| /// <summary> | ||
| /// Gets the bmp format specific metadata for the image. | ||
| /// </summary> | ||
| /// <param name="metadata">The metadata this method extends.</param> | ||
| /// <returns>The <see cref="BmpMetadata"/>.</returns> | ||
| public static BmpMetadata GetBmpMetadata(this ImageMetadata metadata) => metadata.GetFormatMetadata(BmpFormat.Instance); | ||
| } | ||
| } |
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
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
File renamed without changes.
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // Copyright (c) Six Labors and contributors. | ||
| // Licensed under the Apache License, Version 2.0. | ||
|
|
||
| using SixLabors.ImageSharp.Formats.Gif; | ||
| using SixLabors.ImageSharp.Metadata; | ||
|
|
||
| namespace SixLabors.ImageSharp | ||
| { | ||
| /// <summary> | ||
| /// Extension methods for the <see cref="ImageMetadata"/> type. | ||
| /// </summary> | ||
| public static partial class MetadataExtensions | ||
| { | ||
| /// <summary> | ||
| /// Gets the gif format specific metadata for the image. | ||
| /// </summary> | ||
| /// <param name="metadata">The metadata this method extends.</param> | ||
| /// <returns>The <see cref="GifMetadata"/>.</returns> | ||
| public static GifMetadata GetGifMetadata(this ImageMetadata metadata) => metadata.GetFormatMetadata(GifFormat.Instance); | ||
|
|
||
| /// <summary> | ||
| /// Gets the gif format specific metadata for the image frame. | ||
| /// </summary> | ||
| /// <param name="metadata">The metadata this method extends.</param> | ||
| /// <returns>The <see cref="GifFrameMetadata"/>.</returns> | ||
| public static GifFrameMetadata GetGifMetadata(this ImageFrameMetadata metadata) => metadata.GetFormatMetadata(GifFormat.Instance); | ||
| } | ||
| } |
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
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
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
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
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| // Copyright (c) Six Labors and contributors. | ||
| // Licensed under the Apache License, Version 2.0. | ||
|
|
||
| using SixLabors.ImageSharp.Formats.Jpeg; | ||
| using SixLabors.ImageSharp.Metadata; | ||
|
|
||
| namespace SixLabors.ImageSharp | ||
| { | ||
| /// <summary> | ||
| /// Extension methods for the <see cref="ImageMetadata"/> type. | ||
| /// </summary> | ||
| public static partial class MetadataExtensions | ||
| { | ||
| /// <summary> | ||
| /// Gets the jpeg format specific metadata for the image. | ||
| /// </summary> | ||
| /// <param name="metadata">The metadata this method extends.</param> | ||
| /// <returns>The <see cref="JpegMetadata"/>.</returns> | ||
| public static JpegMetadata GetJpegMetadata(this ImageMetadata metadata) => metadata.GetFormatMetadata(JpegFormat.Instance); | ||
| } | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| // Copyright (c) Six Labors and contributors. | ||
| // Licensed under the Apache License, Version 2.0. | ||
|
|
||
| using SixLabors.ImageSharp.Formats.Png; | ||
| using SixLabors.ImageSharp.Metadata; | ||
|
|
||
| namespace SixLabors.ImageSharp | ||
| { | ||
| /// <summary> | ||
| /// Extension methods for the <see cref="ImageMetadata"/> type. | ||
| /// </summary> | ||
| public static partial class MetadataExtensions | ||
| { | ||
| /// <summary> | ||
| /// Gets the png format specific metadata for the image. | ||
| /// </summary> | ||
| /// <param name="metadata">The metadata this method extends.</param> | ||
| /// <returns>The <see cref="PngMetadata"/>.</returns> | ||
| public static PngMetadata GetPngMetadata(this ImageMetadata metadata) => metadata.GetFormatMetadata(PngFormat.Instance); | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.