projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdf9ebe
)
Add some lrintf() calls to be sure.
author
Carl Hetherington
<cth@carlh.net>
Mon, 16 Nov 2020 22:58:53 +0000
(23:58 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 16 Nov 2020 23:18:02 +0000
(
00:18
+0100)
src/lib/image.cc
patch
|
blob
|
history
diff --git
a/src/lib/image.cc
b/src/lib/image.cc
index 61945e1c99dce64d6cf3f7570a8ecf21a93adc9f..6becdea42b6653bf5f3d65b6aa9b078804976763 100644
(file)
--- a/
src/lib/image.cc
+++ b/
src/lib/image.cc
@@
-72,7
+72,7
@@
Image::vertical_factor (int n) const
throw PixelFormatError ("line_factor()", _pixel_format);
}
- return
pow (2.0f, d->log2_chroma_h
);
+ return
lrintf(powf(2.0f, d->log2_chroma_h)
);
}
int
@@
-87,7
+87,7
@@
Image::horizontal_factor (int n) const
throw PixelFormatError ("sample_size()", _pixel_format);
}
- return
pow (2.0f, d->log2_chroma_w
);
+ return
lrintf(powf(2.0f, d->log2_chroma_w)
);
}
/** @param n Component index.