Libav 0.7.1
|
00001 /* 00002 * VC-1 and WMV3 decoder - DSP functions 00003 * Copyright (c) 2006 Konstantin Shishkov 00004 * 00005 * This file is part of Libav. 00006 * 00007 * Libav is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * Libav is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with Libav; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 00028 #ifndef AVCODEC_VC1DSP_H 00029 #define AVCODEC_VC1DSP_H 00030 00031 #include "dsputil.h" 00032 00033 typedef struct VC1DSPContext { 00034 /* vc1 functions */ 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 /* put 8x8 block with bicubic interpolation and quarterpel precision 00055 * last argument is actually round value instead of height 00056 */ 00057 op_pixels_func put_vc1_mspel_pixels_tab[16]; 00058 op_pixels_func avg_vc1_mspel_pixels_tab[16]; 00059 00060 /* This is really one func used in VC-1 decoding */ 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 } VC1DSPContext; 00064 00065 void ff_vc1dsp_init(VC1DSPContext* c); 00066 void ff_vc1dsp_init_altivec(VC1DSPContext* c); 00067 void ff_vc1dsp_init_mmx(VC1DSPContext* dsp); 00068 00069 #endif /* AVCODEC_VC1DSP_H */