Revision 4cfbf61b libavcodec/h264.c

View differences:

libavcodec/h264.c
1484 1484
    src[2+0*stride]=
1485 1485
    src[3+1*stride]=(t0 + 2*t1 + t2 + 2)>>2;
1486 1486
    src[3+0*stride]=(t1 + 2*t2 + t3 + 2)>>2;
1487
};
1487
}
1488 1488

  
1489 1489
static void pred4x4_down_left_c(uint8_t *src, uint8_t *topright, int stride){
1490 1490
    LOAD_TOP_EDGE    
......
1507 1507
    src[3+2*stride]=
1508 1508
    src[2+3*stride]=(t5 + t7 + 2*t6 + 2)>>2;
1509 1509
    src[3+3*stride]=(t6 + 3*t7 + 2)>>2;
1510
};
1510
}
1511 1511

  
1512 1512
static void pred4x4_vertical_right_c(uint8_t *src, uint8_t *topright, int stride){
1513 1513
    const int lt= src[-1-1*stride];
......
1531 1531
    src[3+1*stride]=(t1 + 2*t2 + t3 + 2)>>2;
1532 1532
    src[0+2*stride]=(lt + 2*l0 + l1 + 2)>>2;
1533 1533
    src[0+3*stride]=(l0 + 2*l1 + l2 + 2)>>2;
1534
};
1534
}
1535 1535

  
1536 1536
static void pred4x4_vertical_left_c(uint8_t *src, uint8_t *topright, int stride){
1537 1537
    LOAD_TOP_EDGE    
......
1554 1554
    src[3+1*stride]=
1555 1555
    src[2+3*stride]=(t3 + 2*t4 + t5 + 2)>>2;
1556 1556
    src[3+3*stride]=(t4 + 2*t5 + t6 + 2)>>2;
1557
};
1557
}
1558 1558

  
1559 1559
static void pred4x4_horizontal_up_c(uint8_t *src, uint8_t *topright, int stride){
1560 1560
    LOAD_LEFT_EDGE    
......
1575 1575
    src[2+2*stride]=
1576 1576
    src[2+3*stride]=
1577 1577
    src[3+3*stride]=l3;
1578
};
1578
}
1579 1579
    
1580 1580
static void pred4x4_horizontal_down_c(uint8_t *src, uint8_t *topright, int stride){
1581 1581
    const int lt= src[-1-1*stride];
......
1599 1599
    src[3+3*stride]=(l0 + 2*l1 + l2 + 2)>>2;
1600 1600
    src[0+3*stride]=(l2 + l3 + 1)>>1;
1601 1601
    src[1+3*stride]=(l1 + 2*l2 + l3 + 2)>>2;
1602
};
1602
}
1603 1603

  
1604 1604
static void pred16x16_vertical_c(uint8_t *src, int stride){
1605 1605
    int i;

Also available in: Unified diff