Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Yurkovich <[email protected]>
  • Loading branch information
jessey-git committed Jul 28, 2023
1 parent 24e42c2 commit 225337a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/python/py_oiio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ oiio_bufinfo::oiio_bufinfo(const py::buffer_info& pybuf, int nchans, int width,
}
} else if (pybuf.ndim == 1
&& pybuf.shape[0]
== int64_t(width) * int64_t(height) * int64_t(nchans)) {
== int64_t(width) * int64_t(height)
* int64_t(nchans)) {
// all pixels & channels smushed together
// just rely on autostride
} else {
Expand All @@ -164,7 +165,7 @@ oiio_bufinfo::oiio_bufinfo(const py::buffer_info& pybuf, int nchans, int width,
// passed from python as [x][c]
xstride = pybuf.strides[0];
} else if (pybuf.ndim == 1
&& pybuf.shape[0] == int64_t(width) * int64_t(nchans)) {
&& pybuf.shape[0] == int64_t(width) * int64_t(nchans)) {
// all pixels & channels smushed together
xstride = pybuf.strides[0] * nchans;
} else {
Expand Down

0 comments on commit 225337a

Please sign in to comment.