c->put_qpel_pixels_tab[0][ 0]= put_qpel16_mc00_c; c->put_qpel_pixels_tab[0][ 1]= put_qpel16_mc10_c; c->put_qpel_pixels_tab[0][ 2]= put_qpel16_mc20_c; c->put_qpel_pixels_tab[0][ 3]= put_qpel16_mc30_c; c->put_qpel_pixels_tab[0][ 4]= put_qpel16_mc01_c; c->put_qpel_pixels_tab[0][ 5]= put_qpel16_mc11_c; c->put_qpel_pixels_tab[0][ 6]= put_qpel16_mc21_c; c->put_qpel_pixels_tab[0][ 7]= put_qpel16_mc31_c; c->put_qpel_pixels_tab[0][ 8]= put_qpel16_mc02_c; c->put_qpel_pixels_tab[0][ 9]= put_qpel16_mc12_c; c->put_qpel_pixels_tab[0][10]= put_qpel16_mc22_c; c->put_qpel_pixels_tab[0][11]= put_qpel16_mc32_c; c->put_qpel_pixels_tab[0][12]= put_qpel16_mc03_c; c->put_qpel_pixels_tab[0][13]= put_qpel16_mc13_c; c->put_qpel_pixels_tab[0][14]= put_qpel16_mc23_c; c->put_qpel_pixels_tab[0][15]= put_qpel16_mc33_c;  c->put_no_rnd_qpel_pixels_tab[0][ 0]= put_no_rnd_qpel16_mc00_c; c->put_no_rnd_qpel_pixels_tab[0][ 1]= put_no_rnd_qpel16_mc10_c; c->put_no_rnd_qpel_pixels_tab[0][ 2]= put_no_rnd_qpel16_mc20_c; c->put_no_rnd_qpel_pixels_tab[0][ 3]= put_no_rnd_qpel16_mc30_c; c->put_no_rnd_qpel_pixels_tab[0][ 4]= put_no_rnd_qpel16_mc01_c; c->put_no_rnd_qpel_pixels_tab[0][ 5]= put_no_rnd_qpel16_mc11_c; c->put_no_rnd_qpel_pixels_tab[0][ 6]= put_no_rnd_qpel16_mc21_c; c->put_no_rnd_qpel_pixels_tab[0][ 7]= put_no_rnd_qpel16_mc31_c; c->put_no_rnd_qpel_pixels_tab[0][ 8]= put_no_rnd_qpel16_mc02_c; c->put_no_rnd_qpel_pixels_tab[0][ 9]= put_no_rnd_qpel16_mc12_c; c->put_no_rnd_qpel_pixels_tab[0][10]= put_no_rnd_qpel16_mc22_c; c->put_no_rnd_qpel_pixels_tab[0][11]= put_no_rnd_qpel16_mc32_c; c->put_no_rnd_qpel_pixels_tab[0][12]= put_no_rnd_qpel16_mc03_c; c->put_no_rnd_qpel_pixels_tab[0][13]= put_no_rnd_qpel16_mc13_c; c->put_no_rnd_qpel_pixels_tab[0][14]= put_no_rnd_qpel16_mc23_c; c->put_no_rnd_qpel_pixels_tab[0][15]= put_no_rnd_qpel16_mc33_c;  c->avg_qpel_pixels_tab[0][ 0]= avg_qpel16_mc00_c; c->avg_qpel_pixels_tab[0][ 1]= avg_qpel16_mc10_c; c->avg_qpel_pixels_tab[0][ 2]= avg_qpel16_mc20_c; c->avg_qpel_pixels_tab[0][ 3]= avg_qpel16_mc30_c; c->avg_qpel_pixels_tab[0][ 4]= avg_qpel16_mc01_c; c->avg_qpel_pixels_tab[0][ 5]= avg_qpel16_mc11_c; c->avg_qpel_pixels_tab[0][ 6]= avg_qpel16_mc21_c; c->avg_qpel_pixels_tab[0][ 7]= avg_qpel16_mc31_c; c->avg_qpel_pixels_tab[0][ 8]= avg_qpel16_mc02_c; c->avg_qpel_pixels_tab[0][ 9]= avg_qpel16_mc12_c; c->avg_qpel_pixels_tab[0][10]= avg_qpel16_mc22_c; c->avg_qpel_pixels_tab[0][11]= avg_qpel16_mc32_c; c->avg_qpel_pixels_tab[0][12]= avg_qpel16_mc03_c; c->avg_qpel_pixels_tab[0][13]= avg_qpel16_mc13_c; c->avg_qpel_pixels_tab[0][14]= avg_qpel16_mc23_c; c->avg_qpel_pixels_tab[0][15]= avg_qpel16_mc33_c;   c->put_qpel_pixels_tab[1][ 0]= put_qpel8_mc00_c; c->put_qpel_pixels_tab[1][ 1]= put_qpel8_mc10_c; c->put_qpel_pixels_tab[1][ 2]= put_qpel8_mc20_c; c->put_qpel_pixels_tab[1][ 3]= put_qpel8_mc30_c; c->put_qpel_pixels_tab[1][ 4]= put_qpel8_mc01_c; c->put_qpel_pixels_tab[1][ 5]= put_qpel8_mc11_c; c->put_qpel_pixels_tab[1][ 6]= put_qpel8_mc21_c; c->put_qpel_pixels_tab[1][ 7]= put_qpel8_mc31_c; c->put_qpel_pixels_tab[1][ 8]= put_qpel8_mc02_c; c->put_qpel_pixels_tab[1][ 9]= put_qpel8_mc12_c; c->put_qpel_pixels_tab[1][10]= put_qpel8_mc22_c; c->put_qpel_pixels_tab[1][11]= put_qpel8_mc32_c; c->put_qpel_pixels_tab[1][12]= put_qpel8_mc03_c; c->put_qpel_pixels_tab[1][13]= put_qpel8_mc13_c; c->put_qpel_pixels_tab[1][14]= put_qpel8_mc23_c; c->put_qpel_pixels_tab[1][15]= put_qpel8_mc33_c;  c->put_no_rnd_qpel_pixels_tab[1][ 0]= put_no_rnd_qpel8_mc00_c; c->put_no_rnd_qpel_pixels_tab[1][ 1]= put_no_rnd_qpel8_mc10_c; c->put_no_rnd_qpel_pixels_tab[1][ 2]= put_no_rnd_qpel8_mc20_c; c->put_no_rnd_qpel_pixels_tab[1][ 3]= put_no_rnd_qpel8_mc30_c; c->put_no_rnd_qpel_pixels_tab[1][ 4]= put_no_rnd_qpel8_mc01_c; c->put_no_rnd_qpel_pixels_tab[1][ 5]= put_no_rnd_qpel8_mc11_c; c->put_no_rnd_qpel_pixels_tab[1][ 6]= put_no_rnd_qpel8_mc21_c; c->put_no_rnd_qpel_pixels_tab[1][ 7]= put_no_rnd_qpel8_mc31_c; c->put_no_rnd_qpel_pixels_tab[1][ 8]= put_no_rnd_qpel8_mc02_c; c->put_no_rnd_qpel_pixels_tab[1][ 9]= put_no_rnd_qpel8_mc12_c; c->put_no_rnd_qpel_pixels_tab[1][10]= put_no_rnd_qpel8_mc22_c; c->put_no_rnd_qpel_pixels_tab[1][11]= put_no_rnd_qpel8_mc32_c; c->put_no_rnd_qpel_pixels_tab[1][12]= put_no_rnd_qpel8_mc03_c; c->put_no_rnd_qpel_pixels_tab[1][13]= put_no_rnd_qpel8_mc13_c; c->put_no_rnd_qpel_pixels_tab[1][14]= put_no_rnd_qpel8_mc23_c; c->put_no_rnd_qpel_pixels_tab[1][15]= put_no_rnd_qpel8_mc33_c;  c->avg_qpel_pixels_tab[1][ 0]= avg_qpel8_mc00_c; c->avg_qpel_pixels_tab[1][ 1]= avg_qpel8_mc10_c; c->avg_qpel_pixels_tab[1][ 2]= avg_qpel8_mc20_c; c->avg_qpel_pixels_tab[1][ 3]= avg_qpel8_mc30_c; c->avg_qpel_pixels_tab[1][ 4]= avg_qpel8_mc01_c; c->avg_qpel_pixels_tab[1][ 5]= avg_qpel8_mc11_c; c->avg_qpel_pixels_tab[1][ 6]= avg_qpel8_mc21_c; c->avg_qpel_pixels_tab[1][ 7]= avg_qpel8_mc31_c; c->avg_qpel_pixels_tab[1][ 8]= avg_qpel8_mc02_c; c->avg_qpel_pixels_tab[1][ 9]= avg_qpel8_mc12_c; c->avg_qpel_pixels_tab[1][10]= avg_qpel8_mc22_c; c->avg_qpel_pixels_tab[1][11]= avg_qpel8_mc32_c; c->avg_qpel_pixels_tab[1][12]= avg_qpel8_mc03_c; c->avg_qpel_pixels_tab[1][13]= avg_qpel8_mc13_c; c->avg_qpel_pixels_tab[1][14]= avg_qpel8_mc23_c; c->avg_qpel_pixels_tab[1][15]= avg_qpel8_mc33_c;
void dsputil_init(DSPContext* c, unsigned mask){    int i;    for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i;    for(i=0;i<MAX_NEG_CROP;i++) {        cropTbl[i] = 0;        cropTbl[i + MAX_NEG_CROP + 256] = 255;    }    for(i=0;i<512;i++) {        squareTbl[i] = (i - 256) * (i - 256);    }    c->get_pixels = get_pixels_c;    c->diff_pixels = diff_pixels_c;    c->put_pixels_clamped = put_pixels_clamped_c;    c->add_pixels_clamped = add_pixels_clamped_c;    c->gmc1 = gmc1_c;    c->gmc = gmc_c;    c->clear_blocks = clear_blocks_c;    c->pix_sum = pix_sum_c;    c->pix_norm1 = pix_norm1_c;    c->pix_abs16x16     = pix_abs16x16_c;    c->pix_abs16x16_x2  = pix_abs16x16_x2_c;    c->pix_abs16x16_y2  = pix_abs16x16_y2_c;    c->pix_abs16x16_xy2 = pix_abs16x16_xy2_c;    c->pix_abs8x8     = pix_abs8x8_c;    c->pix_abs8x8_x2  = pix_abs8x8_x2_c;    c->pix_abs8x8_y2  = pix_abs8x8_y2_c;    c->pix_abs8x8_xy2 = pix_abs8x8_xy2_c;    c->put_pixels_tab[0][0] = put_pixels16;    c->put_pixels_tab[0][1] = put_pixels16_x2;    c->put_pixels_tab[0][2] = put_pixels16_y2;    c->put_pixels_tab[0][3] = put_pixels16_xy2;    c->put_no_rnd_pixels_tab[0][0] = put_pixels16;    c->put_no_rnd_pixels_tab[0][1] = put_no_rnd_pixels16_x2;    c->put_no_rnd_pixels_tab[0][2] = put_no_rnd_pixels16_y2;    c->put_no_rnd_pixels_tab[0][3] = put_no_rnd_pixels16_xy2;    c->avg_pixels_tab[0][0] = avg_pixels16;    c->avg_pixels_tab[0][1] = avg_pixels16_x2;    c->avg_pixels_tab[0][2] = avg_pixels16_y2;    c->avg_pixels_tab[0][3] = avg_pixels16_xy2;    c->avg_no_rnd_pixels_tab[0][0] = avg_no_rnd_pixels16;    c->avg_no_rnd_pixels_tab[0][1] = avg_no_rnd_pixels16_x2;    c->avg_no_rnd_pixels_tab[0][2] = avg_no_rnd_pixels16_y2;    c->avg_no_rnd_pixels_tab[0][3] = avg_no_rnd_pixels16_xy2;    c->put_pixels_tab[1][0] = put_pixels8;    c->put_pixels_tab[1][1] = put_pixels8_x2;    c->put_pixels_tab[1][2] = put_pixels8_y2;    c->put_pixels_tab[1][3] = put_pixels8_xy2;    c->put_no_rnd_pixels_tab[1][0] = put_pixels8;    c->put_no_rnd_pixels_tab[1][1] = put_no_rnd_pixels8_x2;    c->put_no_rnd_pixels_tab[1][2] = put_no_rnd_pixels8_y2;    c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy2;    c->avg_pixels_tab[1][0] = avg_pixels8;    c->avg_pixels_tab[1][1] = avg_pixels8_x2;    c->avg_pixels_tab[1][2] = avg_pixels8_y2;    c->avg_pixels_tab[1][3] = avg_pixels8_xy2;    c->avg_no_rnd_pixels_tab[1][0] = avg_no_rnd_pixels8;    c->avg_no_rnd_pixels_tab[1][1] = avg_no_rnd_pixels8_x2;    c->avg_no_rnd_pixels_tab[1][2] = avg_no_rnd_pixels8_y2;    c->avg_no_rnd_pixels_tab[1][3] = avg_no_rnd_pixels8_xy2;#ifdef HAVE_MMX    dsputil_init_mmx(c, mask);#endif#ifdef ARCH_ARMV4L    dsputil_init_armv4l(c, mask);#endif#ifdef HAVE_MLIB    dsputil_init_mlib(c, mask);#endif#ifdef ARCH_ALPHA    dsputil_init_alpha(c, mask);#endif#ifdef ARCH_POWERPC    dsputil_init_ppc(c, mask);#endif#ifdef HAVE_MMI    dsputil_init_mmi(c, mask);#endif    for(i=0; i<64; i++) inv_zigzag_direct16[ff_zigzag_direct[i]]= i+1;}