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

libavcodec/vp8dsp.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010 David Conrad
00003  * Copyright (C) 2010 Ronald S. Bultje
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 
00027 #ifndef AVCODEC_VP8DSP_H
00028 #define AVCODEC_VP8DSP_H
00029 
00030 #include "dsputil.h"
00031 
00032 typedef void (*vp8_mc_func)(uint8_t *dst/*align 8*/, int dstStride, uint8_t *src/*align 1*/, int srcStride, int h, int x, int y);
00033 
00034 typedef struct VP8DSPContext {
00035     void (*vp8_luma_dc_wht)(DCTELEM block[4][4][16], DCTELEM dc[16]);
00036     void (*vp8_luma_dc_wht_dc)(DCTELEM block[4][4][16], DCTELEM dc[16]);
00037     void (*vp8_idct_add)(uint8_t *dst, DCTELEM block[16], int stride);
00038     void (*vp8_idct_dc_add)(uint8_t *dst, DCTELEM block[16], int stride);
00039     void (*vp8_idct_dc_add4y)(uint8_t *dst, DCTELEM block[4][16], int stride);
00040     void (*vp8_idct_dc_add4uv)(uint8_t *dst, DCTELEM block[4][16], int stride);
00041 
00042     // loop filter applied to edges between macroblocks
00043     void (*vp8_v_loop_filter16y)(uint8_t *dst, int stride,
00044                                  int flim_E, int flim_I, int hev_thresh);
00045     void (*vp8_h_loop_filter16y)(uint8_t *dst, int stride,
00046                                  int flim_E, int flim_I, int hev_thresh);
00047     void (*vp8_v_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, int stride,
00048                                  int flim_E, int flim_I, int hev_thresh);
00049     void (*vp8_h_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, int stride,
00050                                  int flim_E, int flim_I, int hev_thresh);
00051 
00052     // loop filter applied to inner macroblock edges
00053     void (*vp8_v_loop_filter16y_inner)(uint8_t *dst, int stride,
00054                                        int flim_E, int flim_I, int hev_thresh);
00055     void (*vp8_h_loop_filter16y_inner)(uint8_t *dst, int stride,
00056                                        int flim_E, int flim_I, int hev_thresh);
00057     void (*vp8_v_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV, int stride,
00058                                        int flim_E, int flim_I, int hev_thresh);
00059     void (*vp8_h_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV, int stride,
00060                                        int flim_E, int flim_I, int hev_thresh);
00061 
00062     void (*vp8_v_loop_filter_simple)(uint8_t *dst, int stride, int flim);
00063     void (*vp8_h_loop_filter_simple)(uint8_t *dst, int stride, int flim);
00064 
00073     vp8_mc_func put_vp8_epel_pixels_tab[3][3][3];
00074     vp8_mc_func put_vp8_bilinear_pixels_tab[3][3][3];
00075 } VP8DSPContext;
00076 
00077 void ff_put_vp8_pixels16_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y);
00078 void ff_put_vp8_pixels8_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y);
00079 void ff_put_vp8_pixels4_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y);
00080 
00081 void ff_vp8dsp_init(VP8DSPContext *c);
00082 void ff_vp8dsp_init_x86(VP8DSPContext *c);
00083 void ff_vp8dsp_init_altivec(VP8DSPContext *c);
00084 void ff_vp8dsp_init_arm(VP8DSPContext *c);
00085 
00086 #endif /* AVCODEC_VP8DSP_H */
Generated on Thu Jul 11 2013 15:38:22 for Libav by doxygen 1.7.1