Skip to content

Use std::array for pixel buffers in avifrgbtest#3219

Merged
wantehchang merged 1 commit into
AOMediaCodec:mainfrom
metsw24-max:avifrgbtest-std-array
May 22, 2026
Merged

Use std::array for pixel buffers in avifrgbtest#3219
wantehchang merged 1 commit into
AOMediaCodec:mainfrom
metsw24-max:avifrgbtest-std-array

Conversation

@metsw24-max
Copy link
Copy Markdown
Contributor

Replaces raw float[4] pixel buffers in tests/gtest/avifrgbtest.cc with std::array<float, 4>, passing .data() to avifSetRGBAPixel and avifGetRGBAPixel.
This is a small code-quality cleanup that stands on its own; it was split out of the -Wunsafe-buffer-usage opt-in PR #3217 at the reviewers request.

Replaces raw `float[4]` pixel buffers in tests/gtest/avifrgbtest.cc with
`std::array<float, 4>`, passing `.data()` to `avifSetRGBAPixel` and
`avifGetRGBAPixel`. This is a small code-quality cleanup that stands on
its own; it was split out of the `-Wunsafe-buffer-usage` opt-in PR at
the reviewer's request.
Copy link
Copy Markdown
Member

@wantehchang wantehchang left a comment

Choose a reason for hiding this comment

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

@wantehchang wantehchang merged commit 6a3615c into AOMediaCodec:main May 22, 2026
25 checks passed
@wantehchang
Copy link
Copy Markdown
Member

Maryla: I cc'd you by mistake. (I somehow thought this PR modified tests related to gamma or gain maps.) You can ignore this PR.

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.

2 participants