Hi Liste,
wei� jemand mit dem unten stehenden Code was anzufangen?
Ist dieses #define MC_FUNC nur f�r den Precompiler 
bestimmt? Und woher kommt die Funktion op ( )???
F�r die Aufkl�rung oder sachdienliche Hinweise schon
mal vielen Dank?
Gru� Markus 


-- schnipp ----

#define MC_FUNC(op,xy)                                                                 
 \
static void MC_##op##_##xy##16_c (uint8_t * dest, uint8_t * ref,        \
                                 int stride, int height)                               
         \
{                                                                                      
         \
    do {                                                                               
         \
        op (predict_##xy, 0);                                                          
 \
        op (predict_##xy, 1);                                                          
 \
        op (predict_##xy, 2);                                   \
        op (predict_##xy, 3);                                   \
        op (predict_##xy, 4);                                   \
        op (predict_##xy, 5);                                   \
        op (predict_##xy, 6);                                   \
        op (predict_##xy, 7);                                   \
        op (predict_##xy, 8);                                   \
        op (predict_##xy, 9);                                   \
        op (predict_##xy, 10);                                  \
        op (predict_##xy, 11);                                  \
        op (predict_##xy, 12);                                  \
        op (predict_##xy, 13);                                  \
        op (predict_##xy, 14);                                  \
        op (predict_##xy, 15);                                  \
        ref += stride;                                           \
        dest += stride;                                         \
    } while (--height);                                         \
}                                                               \
static void MC_##op##_##xy##8_c (uint8_t * dest, uint8_t * ref, \
                                int stride, int height)         \
{                                                               \
    do {                                                        \
        op (predict_##xy, 0);                                   \
        op (predict_##xy, 1);                                   \
        op (predict_##xy, 2);                                   \
        op (predict_##xy, 3);                                   \
        op (predict_##xy, 4);                                   \
        op (predict_##xy, 5);                                   \
        op (predict_##xy, 6);                                   \
        op (predict_##xy, 7);                                   \
        ref += stride;                                          \
        dest += stride;                                         \
    } while (--height);                                         \
}
 /* definitions of the actual mc functions */

MC_FUNC (put,)
MC_FUNC (avg,)
MC_FUNC (put,x)
MC_FUNC (avg,x)
MC_FUNC (put,y)
MC_FUNC (avg,y)
MC_FUNC (put,xy)
MC_FUNC (avg,xy)

MOTION_COMP_EXTERN (c)

EOF
----------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org

Antwort per Email an