Forums - Error

3 posts / 0 new
Last post
Error
cyril.bazin@dat...
Join Date: 2 Mar 12
Posts: 11
Posted: Thu, 2012-11-15 09:03

Hi, 

I have the following error on my logcat : 

/home/cbazin/Android/Development/fastcv-android/inc/fastcv.inl@3850: (srcStride & 15) == 0

Which comes from following line : 

fcvAssert( (srcStride & 15) == 0 );    // multiple of 8

The documentation says :

srcStride :

Stride of image (i.e., how many pixels between column 0 of row 1 and column 0 of row 2). 
must be multiple of 8.

Should the stride be a multiple of 8 or a multiple of 16???

A quick look at the "inl" file shows that this inconsistency appears many times.

 

  • Up0
  • Down0
jeff4s Moderator
Join Date: 4 Nov 12
Posts: 106
Posted: Thu, 2012-11-15 15:57

Your observation is correct. The fix will come at next release.

You can work around this issue by modifying the line to:

fcvAssert( (srcStride & 7) == 0 );    // multiple of 8

 

Cheers,

-Jeff

  • Up0
  • Down0
cyril.bazin@dat...
Join Date: 2 Mar 12
Posts: 11
Posted: Fri, 2012-11-16 00:35

Thank you!

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.