feat: Grayscale bit-packed フォーマット (1/2/4 MSB/LSB) を追加#311
Merged
Conversation
- index8_toStraight を削除し、Index8 Descriptor に grayscale8_toStraight を直接設定 - index8_fromStraight を grayscale8_fromStraight への委譲ラッパーに変更 - grayscale8_fromStraight を4ピクセルループ展開版に最適化 - indexN_toStraight の委譲先を grayscale8_toStraight に変更
grayscale8.h を grayscale.h にリネームし、Grayscale1/2/4 MSB/LSB の 6フォーマットを追加。bit_packed_detail ヘルパーを grayscale.h に移動し Index/Grayscale で共用。IndexN の toStraight/fromStraight を grayscaleN 関数に統合。19テストケース追加、全179テスト通過。
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
isIndexed=false,maxPaletteSize=0)grayscale8.h→grayscale.hにリネームし、Grayscale8 + GrayscaleN を統合bit_packed_detailヘルパー関数群(unpackIndexBits, packIndexBits, readPixelDirect)をgrayscale.hに移動し、Index/Grayscale で共用toStraightをgrayscaleN_toStraightに直接設定、fromStraightを委譲ラッパーに変更builtinFormats[]に6エントリ追加、getFormatByName()で名前引き可能copyRowDDA_Bit/copyQuadDDA_Bit共有)Test plan