comparison alpha/dsputil_alpha.c @ 663:76fef3b11680 libavcodec

Adapt to new 8/16 table scheme.
author mellum
date Fri, 13 Sep 2002 09:28:45 +0000
parents 54b1c94977d5
children 340e3ba84119
comparison
equal deleted inserted replaced
662:5a158f0d1981 663:76fef3b11680
268 #define STORE(l, b) stq(AVG2(l, ldq(b)), b); 268 #define STORE(l, b) stq(AVG2(l, ldq(b)), b);
269 PIXOP(avg_no_rnd, STORE); 269 PIXOP(avg_no_rnd, STORE);
270 270
271 void dsputil_init_alpha(void) 271 void dsputil_init_alpha(void)
272 { 272 {
273 put_pixels_tab[0] = put_pixels_axp_asm; 273 put_pixels_tab[1][0] = put_pixels_axp_asm;
274 put_pixels_tab[1] = put_pixels_x2_axp; 274 put_pixels_tab[1][1] = put_pixels_x2_axp;
275 put_pixels_tab[2] = put_pixels_y2_axp; 275 put_pixels_tab[1][2] = put_pixels_y2_axp;
276 put_pixels_tab[3] = put_pixels_xy2_axp; 276 put_pixels_tab[1][3] = put_pixels_xy2_axp;
277 277
278 put_no_rnd_pixels_tab[0] = put_pixels_axp_asm; 278 put_no_rnd_pixels_tab[1][0] = put_pixels_axp_asm;
279 put_no_rnd_pixels_tab[1] = put_no_rnd_pixels_x2_axp; 279 put_no_rnd_pixels_tab[1][1] = put_no_rnd_pixels_x2_axp;
280 put_no_rnd_pixels_tab[2] = put_no_rnd_pixels_y2_axp; 280 put_no_rnd_pixels_tab[1][2] = put_no_rnd_pixels_y2_axp;
281 put_no_rnd_pixels_tab[3] = put_no_rnd_pixels_xy2_axp; 281 put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels_xy2_axp;
282 282
283 avg_pixels_tab[0] = avg_pixels_axp; 283 avg_pixels_tab[1][0] = avg_pixels_axp;
284 avg_pixels_tab[1] = avg_pixels_x2_axp; 284 avg_pixels_tab[1][1] = avg_pixels_x2_axp;
285 avg_pixels_tab[2] = avg_pixels_y2_axp; 285 avg_pixels_tab[1][2] = avg_pixels_y2_axp;
286 avg_pixels_tab[3] = avg_pixels_xy2_axp; 286 avg_pixels_tab[1][3] = avg_pixels_xy2_axp;
287 287
288 avg_no_rnd_pixels_tab[0] = avg_no_rnd_pixels_axp; 288 avg_no_rnd_pixels_tab[1][0] = avg_no_rnd_pixels_axp;
289 avg_no_rnd_pixels_tab[1] = avg_no_rnd_pixels_x2_axp; 289 avg_no_rnd_pixels_tab[1][1] = avg_no_rnd_pixels_x2_axp;
290 avg_no_rnd_pixels_tab[2] = avg_no_rnd_pixels_y2_axp; 290 avg_no_rnd_pixels_tab[1][2] = avg_no_rnd_pixels_y2_axp;
291 avg_no_rnd_pixels_tab[3] = avg_no_rnd_pixels_xy2_axp; 291 avg_no_rnd_pixels_tab[1][3] = avg_no_rnd_pixels_xy2_axp;
292 292
293 clear_blocks = clear_blocks_axp; 293 clear_blocks = clear_blocks_axp;
294 294
295 /* amask clears all bits that correspond to present features. */ 295 /* amask clears all bits that correspond to present features. */
296 if (amask(AMASK_MVI) == 0) { 296 if (amask(AMASK_MVI) == 0) {