• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

libavcodec/vc1dsp.h

Go to the documentation of this file.
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 
00064     /* Windows Media Image functions */
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 /* AVCODEC_VC1DSP_H */
Generated on Thu Jul 11 2013 15:38:22 for Libav by doxygen 1.7.1