Revision 8dbe5856 libavcodec/ppc/dsputil_altivec.c

View differences:

libavcodec/ppc/dsputil_altivec.c
1384 1384

  
1385 1385
void dsputil_init_altivec(DSPContext* c, AVCodecContext *avctx)
1386 1386
{
1387
    const int h264_high_depth = avctx->codec_id == CODEC_ID_H264 && avctx->bits_per_raw_sample > 8;
1388

  
1387 1389
    c->pix_abs[0][1] = sad16_x2_altivec;
1388 1390
    c->pix_abs[0][2] = sad16_y2_altivec;
1389 1391
    c->pix_abs[0][3] = sad16_xy2_altivec;
......
1397 1399
    c->pix_sum = pix_sum_altivec;
1398 1400
    c->diff_pixels = diff_pixels_altivec;
1399 1401
    c->get_pixels = get_pixels_altivec;
1402
    if (!h264_high_depth)
1400 1403
    c->clear_block = clear_block_altivec;
1401 1404
    c->add_bytes= add_bytes_altivec;
1405
    if (!h264_high_depth) {
1402 1406
    c->put_pixels_tab[0][0] = put_pixels16_altivec;
1403 1407
    /* the two functions do the same thing, so use the same code */
1404 1408
    c->put_no_rnd_pixels_tab[0][0] = put_pixels16_altivec;
......
1409 1413
    c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy2_altivec;
1410 1414
    c->put_pixels_tab[0][3] = put_pixels16_xy2_altivec;
1411 1415
    c->put_no_rnd_pixels_tab[0][3] = put_no_rnd_pixels16_xy2_altivec;
1416
    }
1412 1417

  
1413 1418
    c->hadamard8_diff[0] = hadamard8_diff16_altivec;
1414 1419
    c->hadamard8_diff[1] = hadamard8_diff8x8_altivec;

Also available in: Unified diff