Mercurial > libavcodec.hg
comparison dsputil.c @ 8232:520a6e56b8c0 libavcodec
RV40 MC functions
author | kostya |
---|---|
date | Mon, 01 Dec 2008 06:36:22 +0000 |
parents | 3d4e01bcd2a5 |
children | 800444234375 |
comparison
equal
deleted
inserted
replaced
8231:0df3402e6b41 | 8232:520a6e56b8c0 |
---|---|
2741 void ff_intrax8dsp_init(DSPContext* c, AVCodecContext *avctx); | 2741 void ff_intrax8dsp_init(DSPContext* c, AVCodecContext *avctx); |
2742 | 2742 |
2743 /* H264 specific */ | 2743 /* H264 specific */ |
2744 void ff_h264dspenc_init(DSPContext* c, AVCodecContext *avctx); | 2744 void ff_h264dspenc_init(DSPContext* c, AVCodecContext *avctx); |
2745 | 2745 |
2746 #if defined(CONFIG_RV40_DECODER) | |
2747 static void put_rv40_qpel16_mc33_c(uint8_t *dst, uint8_t *src, int stride){ | |
2748 put_pixels16_xy2_c(dst, src, stride, 16); | |
2749 } | |
2750 static void avg_rv40_qpel16_mc33_c(uint8_t *dst, uint8_t *src, int stride){ | |
2751 avg_pixels16_xy2_c(dst, src, stride, 16); | |
2752 } | |
2753 static void put_rv40_qpel8_mc33_c(uint8_t *dst, uint8_t *src, int stride){ | |
2754 put_pixels8_xy2_c(dst, src, stride, 8); | |
2755 } | |
2756 static void avg_rv40_qpel8_mc33_c(uint8_t *dst, uint8_t *src, int stride){ | |
2757 avg_pixels8_xy2_c(dst, src, stride, 8); | |
2758 } | |
2759 | |
2760 void ff_rv40dsp_init(DSPContext* c, AVCodecContext *avctx); | |
2761 #endif /* CONFIG_RV40_DECODER */ | |
2762 | |
2746 static void wmv2_mspel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w){ | 2763 static void wmv2_mspel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w){ |
2747 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; | 2764 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; |
2748 int i; | 2765 int i; |
2749 | 2766 |
2750 for(i=0; i<w; i++){ | 2767 for(i=0; i<w; i++){ |
4409 ff_intrax8dsp_init(c,avctx); | 4426 ff_intrax8dsp_init(c,avctx); |
4410 #endif | 4427 #endif |
4411 #if defined(CONFIG_H264_ENCODER) | 4428 #if defined(CONFIG_H264_ENCODER) |
4412 ff_h264dspenc_init(c,avctx); | 4429 ff_h264dspenc_init(c,avctx); |
4413 #endif | 4430 #endif |
4431 #if defined(CONFIG_RV40_DECODER) | |
4432 ff_rv40dsp_init(c,avctx); | |
4433 c->put_rv40_qpel_pixels_tab[0][15] = put_rv40_qpel16_mc33_c; | |
4434 c->avg_rv40_qpel_pixels_tab[0][15] = avg_rv40_qpel16_mc33_c; | |
4435 c->put_rv40_qpel_pixels_tab[1][15] = put_rv40_qpel8_mc33_c; | |
4436 c->avg_rv40_qpel_pixels_tab[1][15] = avg_rv40_qpel8_mc33_c; | |
4437 #endif | |
4414 | 4438 |
4415 c->put_mspel_pixels_tab[0]= put_mspel8_mc00_c; | 4439 c->put_mspel_pixels_tab[0]= put_mspel8_mc00_c; |
4416 c->put_mspel_pixels_tab[1]= put_mspel8_mc10_c; | 4440 c->put_mspel_pixels_tab[1]= put_mspel8_mc10_c; |
4417 c->put_mspel_pixels_tab[2]= put_mspel8_mc20_c; | 4441 c->put_mspel_pixels_tab[2]= put_mspel8_mc20_c; |
4418 c->put_mspel_pixels_tab[3]= put_mspel8_mc30_c; | 4442 c->put_mspel_pixels_tab[3]= put_mspel8_mc30_c; |