Commit d8f2aea
authored
perf(oiiotool): oiiotool --mosaic improve type conversion (#3979)
`oiiotool --mosaic` was always allocating a `float` buffer for the
result. Instead, make it use the "widest" data type of the input images.
So, for example, if you are making a mosaic of uint8 images, the result
buffer should be uint8, not have to allocate 4x bigger nor do
uint8->float conversions as it pastes the images.
Signed-off-by: Larry Gritz <lg@larrygritz.com>1 parent 86186b8 commit d8f2aea
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4884 | 4884 | | |
4885 | 4885 | | |
4886 | 4886 | | |
| 4887 | + | |
4887 | 4888 | | |
4888 | 4889 | | |
4889 | 4890 | | |
| |||
4892 | 4893 | | |
4893 | 4894 | | |
4894 | 4895 | | |
| 4896 | + | |
4895 | 4897 | | |
4896 | 4898 | | |
4897 | 4899 | | |
| |||
4916 | 4918 | | |
4917 | 4919 | | |
4918 | 4920 | | |
4919 | | - | |
| 4921 | + | |
4920 | 4922 | | |
4921 | 4923 | | |
4922 | 4924 | | |
| |||
0 commit comments