I use the callgrind_annotate to analyze the source .  but there are some 
question in my mind.


3987             .  ^M
3988             .  static ret_status GF_mem_core_2(const UINT8 *guided_Img, 
INT32 width, INT32 height, INT32 radius, UINT32 eps, INT8 scale_eps, UINT8* 
out_Img,^M
3989             .      INT32 stride_G, INT32 stride_O, UINT16* out_mean_a, 
UINT16* out_mean_b)^M
3990            58  {^M
3991            66      if (!guided_Img || radius > width / 2 || radius > 
height / 2)^M
3992             .      {^M
3993             .          ALGLOGE("Parameters Error!");^M
3994             .          return retStsParameterInvalid;^M
3995             .      }^M
3996             .  ^M
3997            12      UINT8 filter_w = (radius << 1) + 1;^M
3998            12      UINT16 sum_count = filter_w*filter_w;^M
3999             .  ^M
4000             4      const int scale_left = 10;^M
4001             .  ^M
4002             4      const int scale_ab = 10;^M
4003             .  ^M
4004             4      int scale_tmp = 4;^M
4005             6      if (filter_w <= 31)^M
4006             .      {^M
4007            20          scale_tmp = 4;^M  ///It mean how many instructions 
in this line. But I do not known what it mean for the number 7,631,025,535 in 
the next line? can you show me some tips.
4008 7,631,025,535  => 
/cloud/jmaster/ndk_wwj/00.Trunk/Beauty_cmd/core/build/ndk/jni/../../../source/guidedfilter.cpp:GF_mem_core_2(unsigned
 char const*, int, int, int, uns     igned int, signed char, unsigned char*, 
int, int, unsigned short*, unsigned short*)'2 (2x)
4009             .      }^M
4010             .      else if (filter_w > 31 && filter_w <= 37)^M
4011             .      {^M
4012             .          scale_tmp = 5;^M
4013             .      }^M
4014             .      else//up to 45^M
4015             .      {^M
4016             .          scale_tmp = 6;^M
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to