comparison dsputil.c @ 2693:02925a3903b6 libavcodec

porting vp3 idct over to lavc idct api
author michael
date Tue, 17 May 2005 11:12:04 +0000
parents 534f3b47afda
children 9699d325049d
comparison
equal deleted inserted replaced
2692:fb8f26fc57eb 2693:02925a3903b6
3641 if(avctx->idct_algo==FF_IDCT_INT){ 3641 if(avctx->idct_algo==FF_IDCT_INT){
3642 c->idct_put= ff_jref_idct_put; 3642 c->idct_put= ff_jref_idct_put;
3643 c->idct_add= ff_jref_idct_add; 3643 c->idct_add= ff_jref_idct_add;
3644 c->idct = j_rev_dct; 3644 c->idct = j_rev_dct;
3645 c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM; 3645 c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM;
3646 }else if(avctx->idct_algo==FF_IDCT_VP3){
3647 c->idct_put= ff_vp3_idct_put_c;
3648 c->idct_add= ff_vp3_idct_add_c;
3649 c->idct = ff_vp3_idct_c;
3650 c->idct_permutation_type= FF_NO_IDCT_PERM;
3646 }else{ //accurate/default 3651 }else{ //accurate/default
3647 c->idct_put= simple_idct_put; 3652 c->idct_put= simple_idct_put;
3648 c->idct_add= simple_idct_add; 3653 c->idct_add= simple_idct_add;
3649 c->idct = simple_idct; 3654 c->idct = simple_idct;
3650 c->idct_permutation_type= FF_NO_IDCT_PERM; 3655 c->idct_permutation_type= FF_NO_IDCT_PERM;
3651 } 3656 }
3652 } 3657 }
3653 3658
3654 c->h264_idct_add= ff_h264_idct_add_c; 3659 c->h264_idct_add= ff_h264_idct_add_c;
3655
3656 /* VP3 DSP support */
3657 c->vp3_dsp_init = vp3_dsp_init_c;
3658 c->vp3_idct = vp3_idct_c;
3659 3660
3660 c->get_pixels = get_pixels_c; 3661 c->get_pixels = get_pixels_c;
3661 c->diff_pixels = diff_pixels_c; 3662 c->diff_pixels = diff_pixels_c;
3662 c->put_pixels_clamped = put_pixels_clamped_c; 3663 c->put_pixels_clamped = put_pixels_clamped_c;
3663 c->put_signed_pixels_clamped = put_signed_pixels_clamped_c; 3664 c->put_signed_pixels_clamped = put_signed_pixels_clamped_c;