Skip to content

Commit 1c42dea

Browse files
committed
touch-ups
Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent 05afc80 commit 1c42dea

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/libOpenImageIO/maketexture.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,8 @@ write_mipmap(ImageBufAlgo::MakeTextureMode mode, std::shared_ptr<ImageBuf>& img,
929929
std::swap(small, sharp);
930930
}
931931
if (do_highlight_compensation) {
932-
ImageBufAlgo::rangeexpand(*small, *small);
932+
ImageBufAlgo::rangeexpand(*small, *small, false, ROI(),
933+
nthreads);
933934
ImageBufAlgo::clamp(*small, *small, 0.0f,
934935
std::numeric_limits<float>::max(),
935936
true, ROI(), nthreads);
@@ -1452,7 +1453,7 @@ make_texture_impl(ImageBufAlgo::MakeTextureMode mode, const ImageBuf* input,
14521453
std::shared_ptr<ImageBuf> newsrc(new ImageBuf(src->spec()));
14531454
ImageBufAlgo::channels(*newsrc, *src, src->nchannels() - 1,
14541455
cspan<int>(), cspan<float>(),
1455-
cspan<std::string>(), true);
1456+
cspan<std::string>(), true, nthreads);
14561457
std::swap(src, newsrc); // N.B. the old src will delete
14571458
}
14581459

@@ -1851,7 +1852,7 @@ make_texture_impl(ImageBufAlgo::MakeTextureMode mode, const ImageBuf* input,
18511852
toplevel.reset(new ImageBuf(dstspec));
18521853
if ((resize_filter == "box" || resize_filter == "triangle")
18531854
&& !orig_was_overscan) {
1854-
ImageBufAlgo::parallel_image(get_roi(dstspec), paropt(nthreads),
1855+
ImageBufAlgo::parallel_image(get_roi(dstspec), nthreads,
18551856
[&](ROI roi) {
18561857
resize_block(*toplevel, *src, roi,
18571858
envlatlmode,

0 commit comments

Comments
 (0)