Revision 59006372 libavcodec/dsputil.c

View differences:

libavcodec/dsputil.c
3694 3694
    return score;
3695 3695
}
3696 3696

  
3697
static int ssd_int8_vs_int16_c(int8_t *pix1, int16_t *pix2, int size){
3698
    int score=0;
3699
    int i;
3700
    for(i=0; i<size; i++)
3701
        score += (pix1[i]-pix2[i])*(pix1[i]-pix2[i]);
3702
    return score;
3703
}
3704

  
3697 3705
WARPER8_16_SQ(hadamard8_diff8x8_c, hadamard8_diff16_c)
3698 3706
WARPER8_16_SQ(hadamard8_intra8x8_c, hadamard8_intra16_c)
3699 3707
WARPER8_16_SQ(dct_sad8x8_c, dct_sad16_c)
......
4076 4084
    c->w97[1]= w97_8_c;
4077 4085
#endif
4078 4086

  
4087
    c->ssd_int8_vs_int16 = ssd_int8_vs_int16_c;
4088

  
4079 4089
    c->add_bytes= add_bytes_c;
4080 4090
    c->diff_bytes= diff_bytes_c;
4081 4091
    c->sub_hfyu_median_prediction= sub_hfyu_median_prediction_c;

Also available in: Unified diff