Although I haven’t fixed my previous post: http://forums.nvidia.com/index.php?showtopic=159782 . I’m making progress & this question is certainly related, hopefully someone can help…
Basically when I allocate an image on the GPU, using this call:
8bit unsigned, single-channel 2D (image) memory allocator.
\param nWidthPixels The width of the 2D array (image) to be allocated.
\param nHeightPixels The height of the 2D array (image) to be allocated.
\param pStepBytes The number of bytes between successive rows of pixels is returned via this pointer to int.
\return A pointer to the new 2D array (image). 0 (null-pointer) indicates that an error occurred
Npp8u * nppiMalloc_8u_C1(int nWidthPixels, int nHeightPixels, int * pStepBytes);[/codebox]
With a width of 1024, height 768, the pStepBytes is coming back with 1088, why is each line of my image being padded with 64 bytes (and thus crippling my algorithms to access pixels)? Under what circumstances is the pitch not (width * channels) ?
Thanks in advance,