Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <lg@larrygritz.com>
  • Loading branch information
lgritz committed Aug 28, 2024
1 parent d4afc79 commit ee4720c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/libOpenImageIO/imagebuf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ ImageBufImpl::ImageBufImpl(const ImageBufImpl& src)
// Source was cache-based or deep
// nothing else to do
m_localpixels = nullptr;
m_bufspan = span<std::byte>();
m_bufspan = span<std::byte>();
}
if (m_localpixels || m_spec.deep) {
// A copied ImageBuf is no longer a direct file reference, so clear
Expand Down Expand Up @@ -603,7 +603,7 @@ ImageBufImpl::new_pixels(size_t size, const void* data)
OIIO::debugfmt("ImageBuf unable to allocate {} bytes ({})\n", size,
e.what());
error("ImageBuf unable to allocate {} bytes ({})\n", size, e.what());
size = 0;
size = 0;
m_bufspan = {};
}
m_allocated_size = size;
Expand Down Expand Up @@ -826,9 +826,9 @@ ImageBufImpl::set_bufspan_localpixels(span<std::byte> bufspan, void* buforigin)
bufstart -= m_zstride * (m_spec.depth - 1);
}
}
bufspan = span{ bufstart, size_t(bufend - bufstart) };
bufspan = span { bufstart, size_t(bufend - bufstart) };
}
m_bufspan = bufspan;
m_bufspan = bufspan;
m_localpixels = (char*)buforigin;
}

Expand All @@ -837,8 +837,8 @@ ImageBufImpl::set_bufspan_localpixels(span<std::byte> bufspan, void* buforigin)
void
ImageBufImpl::reset(string_view filename, const ImageSpec& spec,
const ImageSpec* nativespec, span<std::byte> bufspan,
void* buforigin, stride_t xstride,
stride_t ystride, stride_t zstride)
void* buforigin, stride_t xstride, stride_t ystride,
stride_t zstride)
{
clear();
if (!spec.image_bytes()) {
Expand Down

0 comments on commit ee4720c

Please sign in to comment.