On Fri, Aug 5, 2011 at 12:18 PM, Leif Middelschulte
<[email protected]> wrote:
> 2011/8/5 Enlightenment SVN <[email protected]>:
>> Log:
>> espionnage: add libface svn support.
>>
>>
>> Author:       cedric
>> Date:         2011-08-05 02:30:08 -0700 (Fri, 05 Aug 2011)
>> New Revision: 62129
>> Trac:         http://trac.enlightenment.org/e/changeset/62129
>>
>> Modified:
>>  trunk/espionnage/configure.ac trunk/espionnage/src/bin/espionnage_face.cpp
>>
>> Modified: trunk/espionnage/configure.ac
>> ===================================================================
>> --- trunk/espionnage/configure.ac       2011-08-05 08:51:10 UTC (rev 62128)
>> +++ trunk/espionnage/configure.ac       2011-08-05 09:30:08 UTC (rev 62129)
>> @@ -67,11 +67,16 @@
>>  ## http://libface.sourceforge.net
>>  have_libface="no"
>>  PKG_CHECK_MODULES([FACE], [libface], [have_libface="yes"], 
>> [have_libface="no"])
>> +PKG_CHECK_MODULES([FACE2], [libface >= 0.2], [have_libface2="yes"], 
>> [have_libface2="no"])
>>
>>  if test "x${have_libface}" = "xyes"; then
>>    AC_DEFINE(HAVE_FACE, 1, [Define to 1 if libface is available])
>>  fi
>>
>> +if test "x${have_libface2}" = "xyes"; then
>> +   AC_DEFINE(HAVE_FACE2, 1, [Define to 1 if libface >= 0.2 is available])
>> +fi
>> +
>>  ### Checks for compiler characteristics
>>
>>  AM_PROG_CC_STDC
>>
>> Modified: trunk/espionnage/src/bin/espionnage_face.cpp
>> ===================================================================
>> --- trunk/espionnage/src/bin/espionnage_face.cpp        2011-08-05 08:51:10 
>> UTC (rev 62128)
>> +++ trunk/espionnage/src/bin/espionnage_face.cpp        2011-08-05 09:30:08 
>> UTC (rev 62129)
>> @@ -16,22 +16,38 @@
>>  {
>>  #ifdef HAVE_FACE
>>    libface::LibFace* libFace = new libface::LibFace(libface::DETECT, ".");
>> +#ifdef HAVE_FACE2
>> +   std::vector<libface::Face*> *result;
>> +#else
>>    std::vector<libface::Face> result;
>> +#endif
>>    unsigned int i;
>>    Eina_List *back = NULL;
>>
>>    result = libFace->detectFaces(data, width, height, stride, IPL_DEPTH_8U, 
>> 1, 0);
>> +#ifdef HAVE_FACE2
>> +   for (i = 0; i < result->size(); i++)
>> +#else
>>    for (i = 0; i < result.size(); i++)
>> +#endif
>>      {
>> +#ifdef HAVE_FACE2
>> +        libface::Face *face = result.at(i);
> shouldn't this be result->at(i); ?

Thanks for the review, typo fixed. Let me know if it work for you.
-- 
Cedric BAIL

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to