~ubuntu-branches/ubuntu/saucy/gst-libav1.0/saucy-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavcodec/vp8dsp.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-07-30 09:00:15 UTC
  • mfrom: (1.1.16) (7.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130730090015-sc1ou2yssu7q5w4e
Tags: 1.1.3-1
* New upstream development snapshot:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#include "dsputil.h"
31
31
 
32
 
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);
 
32
typedef void (*vp8_mc_func)(uint8_t *dst/*align 8*/, ptrdiff_t dstStride,
 
33
                            uint8_t *src/*align 1*/, ptrdiff_t srcStride,
 
34
                            int h, int x, int y);
33
35
 
34
36
typedef struct VP8DSPContext {
35
37
    void (*vp8_luma_dc_wht)(DCTELEM block[4][4][16], DCTELEM dc[16]);
36
38
    void (*vp8_luma_dc_wht_dc)(DCTELEM block[4][4][16], DCTELEM dc[16]);
37
 
    void (*vp8_idct_add)(uint8_t *dst, DCTELEM block[16], int stride);
38
 
    void (*vp8_idct_dc_add)(uint8_t *dst, DCTELEM block[16], int stride);
39
 
    void (*vp8_idct_dc_add4y)(uint8_t *dst, DCTELEM block[4][16], int stride);
40
 
    void (*vp8_idct_dc_add4uv)(uint8_t *dst, DCTELEM block[4][16], int stride);
 
39
    void (*vp8_idct_add)(uint8_t *dst, DCTELEM block[16], ptrdiff_t stride);
 
40
    void (*vp8_idct_dc_add)(uint8_t *dst, DCTELEM block[16], ptrdiff_t stride);
 
41
    void (*vp8_idct_dc_add4y)(uint8_t *dst, DCTELEM block[4][16],
 
42
                              ptrdiff_t stride);
 
43
    void (*vp8_idct_dc_add4uv)(uint8_t *dst, DCTELEM block[4][16],
 
44
                               ptrdiff_t stride);
41
45
 
42
46
    // loop filter applied to edges between macroblocks
43
 
    void (*vp8_v_loop_filter16y)(uint8_t *dst, int stride,
44
 
                                 int flim_E, int flim_I, int hev_thresh);
45
 
    void (*vp8_h_loop_filter16y)(uint8_t *dst, int stride,
46
 
                                 int flim_E, int flim_I, int hev_thresh);
47
 
    void (*vp8_v_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, int stride,
48
 
                                 int flim_E, int flim_I, int hev_thresh);
49
 
    void (*vp8_h_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, int stride,
 
47
    void (*vp8_v_loop_filter16y)(uint8_t *dst, ptrdiff_t stride,
 
48
                                 int flim_E, int flim_I, int hev_thresh);
 
49
    void (*vp8_h_loop_filter16y)(uint8_t *dst, ptrdiff_t stride,
 
50
                                 int flim_E, int flim_I, int hev_thresh);
 
51
    void (*vp8_v_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, ptrdiff_t stride,
 
52
                                 int flim_E, int flim_I, int hev_thresh);
 
53
    void (*vp8_h_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, ptrdiff_t stride,
50
54
                                 int flim_E, int flim_I, int hev_thresh);
51
55
 
52
56
    // loop filter applied to inner macroblock edges
53
 
    void (*vp8_v_loop_filter16y_inner)(uint8_t *dst, int stride,
54
 
                                       int flim_E, int flim_I, int hev_thresh);
55
 
    void (*vp8_h_loop_filter16y_inner)(uint8_t *dst, int stride,
56
 
                                       int flim_E, int flim_I, int hev_thresh);
57
 
    void (*vp8_v_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV, int stride,
58
 
                                       int flim_E, int flim_I, int hev_thresh);
59
 
    void (*vp8_h_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV, int stride,
 
57
    void (*vp8_v_loop_filter16y_inner)(uint8_t *dst, ptrdiff_t stride,
 
58
                                       int flim_E, int flim_I, int hev_thresh);
 
59
    void (*vp8_h_loop_filter16y_inner)(uint8_t *dst, ptrdiff_t stride,
 
60
                                       int flim_E, int flim_I, int hev_thresh);
 
61
    void (*vp8_v_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV,
 
62
                                       ptrdiff_t stride,
 
63
                                       int flim_E, int flim_I, int hev_thresh);
 
64
    void (*vp8_h_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV,
 
65
                                       ptrdiff_t stride,
60
66
                                       int flim_E, int flim_I, int hev_thresh);
61
67
 
62
 
    void (*vp8_v_loop_filter_simple)(uint8_t *dst, int stride, int flim);
63
 
    void (*vp8_h_loop_filter_simple)(uint8_t *dst, int stride, int flim);
 
68
    void (*vp8_v_loop_filter_simple)(uint8_t *dst, ptrdiff_t stride, int flim);
 
69
    void (*vp8_h_loop_filter_simple)(uint8_t *dst, ptrdiff_t stride, int flim);
64
70
 
65
71
    /**
66
72
     * first dimension: width>>3, height is assumed equal to width
67
73
     * second dimension: 0 if no vertical interpolation is needed;
68
74
     *                   1 4-tap vertical interpolation filter (my & 1)
69
75
     *                   2 6-tap vertical interpolation filter (!(my & 1))
70
 
     * third dimension: same as second dimention, for horizontal interpolation
 
76
     * third dimension: same as second dimension, for horizontal interpolation
71
77
     * so something like put_vp8_epel_pixels_tab[width>>3][2*!!my-(my&1)][2*!!mx-(mx&1)](..., mx, my)
72
78
     */
73
79
    vp8_mc_func put_vp8_epel_pixels_tab[3][3][3];
74
80
    vp8_mc_func put_vp8_bilinear_pixels_tab[3][3][3];
75
81
} VP8DSPContext;
76
82
 
77
 
void ff_put_vp8_pixels16_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y);
78
 
void ff_put_vp8_pixels8_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y);
79
 
void ff_put_vp8_pixels4_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y);
 
83
void ff_put_vp8_pixels16_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride,
 
84
                           int h, int x, int y);
 
85
void ff_put_vp8_pixels8_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride,
 
86
                          int h, int x, int y);
 
87
void ff_put_vp8_pixels4_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride,
 
88
                          int h, int x, int y);
80
89
 
81
90
void ff_vp8dsp_init(VP8DSPContext *c);
82
91
void ff_vp8dsp_init_x86(VP8DSPContext *c);