Mercurial > libavcodec.hg
comparison i386/dsputil_mmx.c @ 2256:7e0b2e86afa9 libavcodec
1/2 resolution decoding
author | michael |
---|---|
date | Sat, 25 Sep 2004 23:18:58 +0000 |
parents | 9492be49de46 |
children | 15cfba1b97b5 |
comparison
equal
deleted
inserted
replaced
2255:507690ff49a2 | 2256:7e0b2e86afa9 |
---|---|
2982 }else{ | 2982 }else{ |
2983 c->fdct = ff_fdct_mmx; | 2983 c->fdct = ff_fdct_mmx; |
2984 } | 2984 } |
2985 } | 2985 } |
2986 #endif //CONFIG_ENCODERS | 2986 #endif //CONFIG_ENCODERS |
2987 | 2987 if(avctx->lowres==0){ |
2988 if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_SIMPLEMMX){ | 2988 if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_SIMPLEMMX){ |
2989 c->idct_put= ff_simple_idct_put_mmx; | 2989 c->idct_put= ff_simple_idct_put_mmx; |
2990 c->idct_add= ff_simple_idct_add_mmx; | 2990 c->idct_add= ff_simple_idct_add_mmx; |
2991 c->idct = ff_simple_idct_mmx; | 2991 c->idct = ff_simple_idct_mmx; |
2992 c->idct_permutation_type= FF_SIMPLE_IDCT_PERM; | 2992 c->idct_permutation_type= FF_SIMPLE_IDCT_PERM; |
2993 }else if(idct_algo==FF_IDCT_LIBMPEG2MMX){ | 2993 }else if(idct_algo==FF_IDCT_LIBMPEG2MMX){ |
2994 if(mm_flags & MM_MMXEXT){ | 2994 if(mm_flags & MM_MMXEXT){ |
2995 c->idct_put= ff_libmpeg2mmx2_idct_put; | 2995 c->idct_put= ff_libmpeg2mmx2_idct_put; |
2996 c->idct_add= ff_libmpeg2mmx2_idct_add; | 2996 c->idct_add= ff_libmpeg2mmx2_idct_add; |
2997 c->idct = ff_mmxext_idct; | 2997 c->idct = ff_mmxext_idct; |
2998 }else{ | 2998 }else{ |
2999 c->idct_put= ff_libmpeg2mmx_idct_put; | 2999 c->idct_put= ff_libmpeg2mmx_idct_put; |
3000 c->idct_add= ff_libmpeg2mmx_idct_add; | 3000 c->idct_add= ff_libmpeg2mmx_idct_add; |
3001 c->idct = ff_mmx_idct; | 3001 c->idct = ff_mmx_idct; |
3002 } | |
3003 c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM; | |
3002 } | 3004 } |
3003 c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM; | |
3004 } | 3005 } |
3005 | 3006 |
3006 /* VP3 optimized DSP functions */ | 3007 /* VP3 optimized DSP functions */ |
3007 if (mm_flags & MM_SSE2) { | 3008 if (mm_flags & MM_SSE2) { |
3008 c->vp3_dsp_init = vp3_dsp_init_sse2; | 3009 c->vp3_dsp_init = vp3_dsp_init_sse2; |