Revision 68b51e58 libavcodec/dsputil.c

View differences:

libavcodec/dsputil.c
62 62
};
63 63

  
64 64
/* not permutated inverse zigzag_direct + 1 for MMX quantizer */
65
uint16_t __align8 inv_zigzag_direct16[64] = {0, };
65
DECLARE_ALIGNED_8(uint16_t, inv_zigzag_direct16[64]) = {0, };
66 66

  
67 67
const uint8_t ff_alternate_horizontal_scan[64] = {
68 68
    0,  1,   2,  3,  8,  9, 16, 17,
......
3402 3402

  
3403 3403
static int dct_sad8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){
3404 3404
    MpegEncContext * const s= (MpegEncContext *)c;
3405
    uint64_t __align8 aligned_temp[sizeof(DCTELEM)*64/8];
3405
    DECLARE_ALIGNED_8(uint64_t, aligned_temp[sizeof(DCTELEM)*64/8]);
3406 3406
    DCTELEM * const temp= (DCTELEM*)aligned_temp;
3407 3407
    int sum=0, i;
3408 3408

  
......
3472 3472

  
3473 3473
static int dct_max8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){
3474 3474
    MpegEncContext * const s= (MpegEncContext *)c;
3475
    uint64_t __align8 aligned_temp[sizeof(DCTELEM)*64/8];
3475
    DECLARE_ALIGNED_8(uint64_t, aligned_temp[sizeof(DCTELEM)*64/8]);
3476 3476
    DCTELEM * const temp= (DCTELEM*)aligned_temp;
3477 3477
    int sum=0, i;
3478 3478

  
......
3491 3491

  
3492 3492
static int quant_psnr8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){
3493 3493
    MpegEncContext * const s= (MpegEncContext *)c;
3494
    uint64_t __align8 aligned_temp[sizeof(DCTELEM)*64*2/8];
3494
    DECLARE_ALIGNED_8 (uint64_t, aligned_temp[sizeof(DCTELEM)*64*2/8]);
3495 3495
    DCTELEM * const temp= (DCTELEM*)aligned_temp;
3496 3496
    DCTELEM * const bak = ((DCTELEM*)aligned_temp)+64;
3497 3497
    int sum=0, i;
......
3516 3516
static int rd8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){
3517 3517
    MpegEncContext * const s= (MpegEncContext *)c;
3518 3518
    const uint8_t *scantable= s->intra_scantable.permutated;
3519
    uint64_t __align8 aligned_temp[sizeof(DCTELEM)*64/8];
3520
    uint64_t __align8 aligned_bak[stride];
3519
    DECLARE_ALIGNED_8 (uint64_t, aligned_temp[sizeof(DCTELEM)*64/8]);
3520
    DECLARE_ALIGNED_8 (uint64_t, aligned_bak[stride]);
3521 3521
    DCTELEM * const temp= (DCTELEM*)aligned_temp;
3522 3522
    uint8_t * const bak= (uint8_t*)aligned_bak;
3523 3523
    int i, last, run, bits, level, distoration, start_i;
......
3595 3595
static int bit8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){
3596 3596
    MpegEncContext * const s= (MpegEncContext *)c;
3597 3597
    const uint8_t *scantable= s->intra_scantable.permutated;
3598
    uint64_t __align8 aligned_temp[sizeof(DCTELEM)*64/8];
3598
    DECLARE_ALIGNED_8 (uint64_t, aligned_temp[sizeof(DCTELEM)*64/8]);
3599 3599
    DCTELEM * const temp= (DCTELEM*)aligned_temp;
3600 3600
    int i, last, run, bits, level, start_i;
3601 3601
    const int esc_length= s->ac_esc_length;

Also available in: Unified diff