[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Pointere til funktioner i klassen (C++)



Hej

Jeg har et et problem med pointere til funktioner i en klasse. Jeg
har

------------------------------------------------------------
class CVideoFilter {
   ......
protected:
    void      turn_on_accels();
    u_int32_t (*CVideoFilter::calc_SAD) (uint8_t * , uint8_t * );
    u_int32_t calc_SAD_noaccel(u_int8_t * frm, u_int8_t * ref);
};
------------------------------------------------------------

Så har jeg

------------------------------------------------------------
u_int32_t CVideoFilter::calc_SAD_noaccel(uint8_t *p1 , uint8_t *p2) {
 .....
}

void CVideoFilter::turn_on_accels(void) {
  .....
#ifdef HAVE_ASM_MMX
   ......
#else
  calc_SAD = &CVideoFilter::calc_SAD_noaccel;
#endif
}
------------------------------------------------------------

Men når jeg kompilere får jeg

video_filter.cpp: In method `void CVideoFilter::turn_on_accels()':
video_filter.cpp:218: converting from `u_int32_t (CVideoFilter::*)(u_int8_t *, u_int8_t *)' to `u_int32_t (*)(uint8_t *, uint8_t *)'
make[1]: *** [video_filter.lo] Error 1
make[1]: Leaving directory `/export/home/local/depot/src/mpeg4ip-1.1-pmm/server/mp4live'



Hvad gør jeg galt her ?


mvh.

--PMM
--
+----------------------------------------------------------+
| Se TV over Internettet -- http://www.streamtv.dk/?p=test |
+----------------------------------------------------------+



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *