Skip to content

Add Scale offset filter#794

Open
jamesmudd wants to merge 11 commits intomasterfrom
scale-offset-2
Open

Add Scale offset filter#794
jamesmudd wants to merge 11 commits intomasterfrom
scale-offset-2

Conversation

@jamesmudd
Copy link
Owner

Fixing #511

Most implementation by codex after scaffolding

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a1153065ec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +78 to +83
if (minBits == elementBytes * 8) {
System.arraycopy(encodedData, bufOffset, decoded, 0, outputSize);
if (needsByteSwap(dtypeOrder)) {
swapEndianInPlace(decoded, elementBytes);
}
return decoded;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reject float chunks before taking integer fast path

The minBits == elementBytes * 8 fast path returns immediately before dtypeClass is checked, so float scale-offset chunks can bypass the explicit unsupported-float guard and be treated as already-decoded bytes. When a float chunk reports full-width minBits (which can happen on incompressible data), decode will silently return incorrect data instead of failing fast, making the corruption hard to detect.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant