Skip to content

Commit

Permalink
cleanup: Switch away from deprecated OIIO function names (#1838)
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <lg@larrygritz.com>
  • Loading branch information
lgritz committed Jul 7, 2024
1 parent b0b3cf9 commit 0fd1417
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/testshade/testshade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1418,9 +1418,9 @@ batched_save_outputs(SimpleRenderer* rend, ShadingSystem* shadingsys,
int y = by[batchIndex];
int data = batchResults[batchIndex];
float pixel[1];
OIIO::convert_types(TypeDesc::BASETYPE(t.basetype), &data,
TypeDesc::FLOAT, &pixel[0],
1 /*nchans*/);
OIIO::convert_pixel_values(TypeDesc::BASETYPE(t.basetype),
&data, TypeDesc::FLOAT,
&pixel[0], 1 /*nchans*/);
outputimg->setpixel(x, y, &pixel[0]);
if (print_outputs) {
*oStreams[batchIndex]
Expand All @@ -1442,9 +1442,9 @@ batched_save_outputs(SimpleRenderer* rend, ShadingSystem* shadingsys,
intPixel[c] = batchResults[batchIndex][c];
}

OIIO::convert_types(TypeDesc::BASETYPE(t.basetype),
intPixel, TypeDesc::FLOAT, floatPixel,
3 /*nchans*/);
OIIO::convert_pixel_values(TypeDesc::BASETYPE(t.basetype),
intPixel, TypeDesc::FLOAT,
floatPixel, 3 /*nchans*/);
outputimg->setpixel(x, y, floatPixel);
if (print_outputs) {
(*oStreams[batchIndex])
Expand Down

0 comments on commit 0fd1417

Please sign in to comment.