Forums - fcvMemFree crash if inited fcvSetOperationMode before

2 posts / 0 new
Last post
fcvMemFree crash if inited fcvSetOperationMode before
371152061
Join Date: 13 May 22
Posts: 11
Posted: Wed, 2022-05-25 00:25

if I enable init when the program start

void fastcv_init()

{
   char sVersion[32];     
   fcvSetOperationMode( (fcvOperationMode) FASTCV_OP_PERFORMANCE );
   fcvGetVersion(sVersion, 32);
   DPRINTF( "Using FastCV version %s \n", sVersion );
   return;
}

-----------------------if WITHOUT this funciton, everything goes well....

uint8_t* outImgBuf = (uint8_t *)fcvMemAlloc(fixed_width * fixed_height, 16);
      
fcvScaleDownMNu8(src, src_width, src_height, 0, outImgBuf, fixed_height, fixed_height, dst_stride);

fcvMemFree(outImgBuf);

  • Up0
  • Down0
ss.pandiri
Join Date: 29 May 18
Posts: 58
Posted: Thu, 2022-06-02 21:55

Hello,

In the line below of your program

fcvScaleDownMNu8(src, src_width, src_height, 0, outImgBuf, fixed_height, fixed_height, dst_stride);
 
For the  width argument 'fixed height' is given. Please change as follows and try :
 
fcvScaleDownMNu8(src, src_width, src_height, 0, outImgBuf, fixed_width, fixed_height, dst_stride);
 
thanks

 

  • 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.