[arrayfire] 208/284: Fix saveImageNative for 1-channel images
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:34 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.
commit b14ae20f39c1bb41aa6298da6f6cc4a628b10c5f
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Mon Jan 11 14:26:27 2016 -0500
Fix saveImageNative for 1-channel images
---
src/api/c/imageio2.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api/c/imageio2.cpp b/src/api/c/imageio2.cpp
index a1374a2..ff7a4a8 100644
--- a/src/api/c/imageio2.cpp
+++ b/src/api/c/imageio2.cpp
@@ -237,7 +237,7 @@ static void save_t(T* pDstLine, const af_array in, const dim4 dims, uint nDstPit
for (uint y = 0; y < fi_h; ++y) {
for (uint x = 0; x < fi_w; ++x) {
if(channels == 1) {
- *(pDstLine + x * step + FI_RGBA_RED) = (T) pSrc0[indx]; // r -> 0
+ *(pDstLine + x * step) = (T) pSrc0[indx]; // r -> 0
} else if(channels >=3) {
if((af_dtype) af::dtype_traits<T>::af_type == u8) {
*(pDstLine + x * step + FI_RGBA_RED ) = (T) pSrc0[indx]; // r -> 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list