comparison ppc/mpegvideo_ppc.c @ 1107:28f0e53706a7 libavcodec

altivec compilation fixes by (Magnus Damm <damm at opensource dot se>)
author michaelni
date Thu, 06 Mar 2003 12:06:00 +0000
parents b32afefe7d33
children 587258262aa5
comparison
equal deleted inserted replaced
1106:1e39f273ecd6 1107:28f0e53706a7
40 if (has_altivec()) 40 if (has_altivec())
41 { 41 {
42 if ((s->avctx->idct_algo == FF_IDCT_AUTO) || 42 if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||
43 (s->avctx->idct_algo == FF_IDCT_ALTIVEC)) 43 (s->avctx->idct_algo == FF_IDCT_ALTIVEC))
44 { 44 {
45 s->idct_put = idct_put_altivec; 45 s->dsp.idct_put = idct_put_altivec;
46 s->idct_add = idct_add_altivec; 46 s->dsp.idct_add = idct_add_altivec;
47 #ifndef ALTIVEC_USE_REFERENCE_C_CODE 47 #ifndef ALTIVEC_USE_REFERENCE_C_CODE
48 s->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM; 48 s->dsp.idct_permutation_type = FF_TRANSPOSE_IDCT_PERM;
49 #else /* ALTIVEC_USE_REFERENCE_C_CODE */ 49 #else /* ALTIVEC_USE_REFERENCE_C_CODE */
50 s->idct_permutation_type = FF_NO_IDCT_PERM; 50 s->dsp.idct_permutation_type = FF_NO_IDCT_PERM;
51 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ 51 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */
52 } 52 }
53 53
54 // Test to make sure that the dct required alignments are met. 54 // Test to make sure that the dct required alignments are met.
55 if ((((long)(s->q_intra_matrix) & 0x0f) != 0) || 55 if ((((long)(s->q_intra_matrix) & 0x0f) != 0) ||