00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00028 #ifndef AVCODEC_VC1DSP_H
00029 #define AVCODEC_VC1DSP_H
00030
00031 #include "dsputil.h"
00032
00033 typedef struct VC1DSPContext {
00034
00035 void (*vc1_inv_trans_8x8)(DCTELEM *b);
00036 void (*vc1_inv_trans_8x4)(uint8_t *dest, int line_size, DCTELEM *block);
00037 void (*vc1_inv_trans_4x8)(uint8_t *dest, int line_size, DCTELEM *block);
00038 void (*vc1_inv_trans_4x4)(uint8_t *dest, int line_size, DCTELEM *block);
00039 void (*vc1_inv_trans_8x8_dc)(uint8_t *dest, int line_size, DCTELEM *block);
00040 void (*vc1_inv_trans_8x4_dc)(uint8_t *dest, int line_size, DCTELEM *block);
00041 void (*vc1_inv_trans_4x8_dc)(uint8_t *dest, int line_size, DCTELEM *block);
00042 void (*vc1_inv_trans_4x4_dc)(uint8_t *dest, int line_size, DCTELEM *block);
00043 void (*vc1_v_overlap)(uint8_t *src, int stride);
00044 void (*vc1_h_overlap)(uint8_t *src, int stride);
00045 void (*vc1_v_s_overlap)(DCTELEM *top, DCTELEM *bottom);
00046 void (*vc1_h_s_overlap)(DCTELEM *left, DCTELEM *right);
00047 void (*vc1_v_loop_filter4)(uint8_t *src, int stride, int pq);
00048 void (*vc1_h_loop_filter4)(uint8_t *src, int stride, int pq);
00049 void (*vc1_v_loop_filter8)(uint8_t *src, int stride, int pq);
00050 void (*vc1_h_loop_filter8)(uint8_t *src, int stride, int pq);
00051 void (*vc1_v_loop_filter16)(uint8_t *src, int stride, int pq);
00052 void (*vc1_h_loop_filter16)(uint8_t *src, int stride, int pq);
00053
00054
00055
00056
00057 op_pixels_func put_vc1_mspel_pixels_tab[16];
00058 op_pixels_func avg_vc1_mspel_pixels_tab[16];
00059
00060
00061 h264_chroma_mc_func put_no_rnd_vc1_chroma_pixels_tab[3];
00062 h264_chroma_mc_func avg_no_rnd_vc1_chroma_pixels_tab[3];
00063
00064
00065 void (*sprite_h)(uint8_t *dst, const uint8_t *src, int offset, int advance, int count);
00066 void (*sprite_v_single)(uint8_t *dst, const uint8_t *src1a, const uint8_t *src1b, int offset, int width);
00067 void (*sprite_v_double_noscale)(uint8_t *dst, const uint8_t *src1a, const uint8_t *src2a, int alpha, int width);
00068 void (*sprite_v_double_onescale)(uint8_t *dst, const uint8_t *src1a, const uint8_t *src1b, int offset1,
00069 const uint8_t *src2a, int alpha, int width);
00070 void (*sprite_v_double_twoscale)(uint8_t *dst, const uint8_t *src1a, const uint8_t *src1b, int offset1,
00071 const uint8_t *src2a, const uint8_t *src2b, int offset2,
00072 int alpha, int width);
00073 } VC1DSPContext;
00074
00075 void ff_vc1dsp_init(VC1DSPContext* c);
00076 void ff_vc1dsp_init_altivec(VC1DSPContext* c);
00077 void ff_vc1dsp_init_mmx(VC1DSPContext* dsp);
00078
00079 #endif