comparison dv.c @ 853:eacc2dd8fd9d libavcodec

* using DSPContext - so each codec could use its local (sub)set of CPU extension
author kabi
date Mon, 11 Nov 2002 09:40:17 +0000
parents c075abb7fb3c
children 058194d7ade6
comparison
equal deleted inserted replaced
852:c01c98206ee6 853:eacc2dd8fd9d
112 112
113 /* ugly way to get the idct & scantable */ 113 /* ugly way to get the idct & scantable */
114 /* XXX: fix it */ 114 /* XXX: fix it */
115 memset(&s2, 0, sizeof(MpegEncContext)); 115 memset(&s2, 0, sizeof(MpegEncContext));
116 s2.avctx = avctx; 116 s2.avctx = avctx;
117 dsputil_init(&s2.dsp, avctx->dsp_mask);
117 if (DCT_common_init(&s2) < 0) 118 if (DCT_common_init(&s2) < 0)
118 return -1; 119 return -1;
119 120
120 s->idct_put[0] = s2.idct_put; 121 s->idct_put[0] = s2.idct_put;
121 memcpy(s->idct_permutation, s2.idct_permutation, 64); 122 memcpy(s->idct_permutation, s2.idct_permutation, 64);