In motion blur (but I suspect it may be the case for other functions as well), the bytesperpixel and inrowstride order of parameters is inverted, this is nasty as they are both same types, so you do not realize it until you get a crash or a weird result.
//BOOL is5_MotionBlur(const void *pIn, UINT32 uWidth, UINT32 uHeight, UINT32 uInRowStride, UINT32 uBpp, void *pOut, UINT32 uOutRowStride, double fAngle, double fSigma, UINT32 uFlags);
should be fopr correct working:
is5_MotionBlur(const void *pIn, UINT32 uWidth, UINT32 uHeight, UINT32 uBpp, UINT32 uInRowStride, void *pOut, UINT32 uOutRowStride, double fAngle, double fSigma, UINT32 uFlags);
I am impressed with the quality of results and algorithms of your imgsource but I am not very impressed with the quality-assurance of the code...so far. For me it's frustrating as I am a Delphi programmer with very basic C++ experience and I am finding out myself correcting bugs in the C++ code. Weird to say the least!


Reply With Quote
