Skip to content

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Oct 11, 2025

Two places where the docs and header for ImageBuf::set_pixels did not match.

In one case, the docs were right, the declaration was supposed to have a parameter that was a const image_span<T>& but the & was left out. Now, if this was an actual linkable function, we wouldn't be able to fix it until a compatibility-breaking boundary. But because it's a template and inline, I believe it is actually safe to fix it in situ without breaking ABI compatibility (and it seems to pass our ABI check in CI).

In the second case, the header was correct but the docs used the wrong declaration (leaving out a const) and made the docs fail to pull in the right explanation.

Fixes #4923

Two places where the docs and header for ImageBuf::set_pixels did not
match.

In one case, the docs were right, the declaration was supposed to have
a parameter that was a `const image_span<T>&` but the `&` was left
out.  Now, if this was an actual linkable function, we wouldn't be
able to fix it. But because it's a template and inline, I believe it
is actually safe to fix it in situ without breaking ABI compatibility.

In the second case, the header was correct but the docs used the wrong
declaration (leaving out a `const`) and made the docs fail to pull in
the right explanation.

Fixes 4923

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz merged commit 8def63c into AcademySoftwareFoundation:main Oct 12, 2025
31 checks passed
@lgritz lgritz deleted the lg-ref branch October 15, 2025 06:12
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Oct 17, 2025
…areFoundation#4926)

Two places where the docs and header for ImageBuf::set_pixels did not
match.

In one case, the docs were right, the declaration was supposed to have a
parameter that was a `const image_span<T>&` but the `&` was left out.
Now, if this was an actual linkable function, we wouldn't be able to fix
it until a compatibility-breaking boundary. But because it's a template
and inline, I believe it is actually safe to fix it in situ without
breaking ABI compatibility (and it seems to pass our ABI check in CI).

In the second case, the header was correct but the docs used the wrong
declaration (leaving out a `const`) and made the docs fail to pull in
the right explanation.

Fixes AcademySoftwareFoundation#4923

Signed-off-by: Larry Gritz <[email protected]>
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.

[BUG] Doxygen Documentation Error for OIIO::ImageBuf::set_pixels

2 participants