FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vp8dsp_mips.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Manojkumar Bhosale (Manojkumar.Bhosale@imgtec.com)
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVCODEC_MIPS_VP8DSP_MIPS_H
22 #define AVCODEC_MIPS_VP8DSP_MIPS_H
23 
24 void ff_put_vp8_pixels4_msa(uint8_t *dst, ptrdiff_t dststride,
25  uint8_t *src, ptrdiff_t srcstride,
26  int h, int x, int y);
27 void ff_put_vp8_pixels8_msa(uint8_t *dst, ptrdiff_t dststride,
28  uint8_t *src, ptrdiff_t srcstride,
29  int h, int x, int y);
30 void ff_put_vp8_pixels16_msa(uint8_t *dst, ptrdiff_t dststride,
31  uint8_t *src, ptrdiff_t srcstride,
32  int h, int x, int y);
33 
34 void ff_put_vp8_epel16_h4_msa(uint8_t *dst, ptrdiff_t dststride,
35  uint8_t *src, ptrdiff_t srcstride,
36  int h, int mx, int my);
37 void ff_put_vp8_epel16_h6_msa(uint8_t *dst, ptrdiff_t dststride,
38  uint8_t *src, ptrdiff_t srcstride,
39  int h, int mx, int my);
40 void ff_put_vp8_epel16_v4_msa(uint8_t *dst, ptrdiff_t dststride,
41  uint8_t *src, ptrdiff_t srcstride,
42  int h, int mx, int my);
43 void ff_put_vp8_epel16_v6_msa(uint8_t *dst, ptrdiff_t dststride,
44  uint8_t *src, ptrdiff_t srcstride,
45  int h, int mx, int my);
46 void ff_put_vp8_epel16_h4v4_msa(uint8_t *dst, ptrdiff_t dststride,
47  uint8_t *src, ptrdiff_t srcstride,
48  int h, int mx, int my);
49 void ff_put_vp8_epel16_h6v4_msa(uint8_t *dst, ptrdiff_t dststride,
50  uint8_t *src, ptrdiff_t srcstride,
51  int h, int mx, int my);
52 void ff_put_vp8_epel16_h4v6_msa(uint8_t *dst, ptrdiff_t dststride,
53  uint8_t *src, ptrdiff_t srcstride,
54  int h, int mx, int my);
55 void ff_put_vp8_epel16_h6v6_msa(uint8_t *dst, ptrdiff_t dststride,
56  uint8_t *src, ptrdiff_t srcstride,
57  int h, int mx, int my);
58 
59 void ff_put_vp8_epel8_h4_msa(uint8_t *dst, ptrdiff_t dststride,
60  uint8_t *src, ptrdiff_t srcstride,
61  int h, int mx, int my);
62 void ff_put_vp8_epel8_h6_msa(uint8_t *dst, ptrdiff_t dststride,
63  uint8_t *src, ptrdiff_t srcstride,
64  int h, int mx, int my);
65 void ff_put_vp8_epel8_v4_msa(uint8_t *dst, ptrdiff_t dststride,
66  uint8_t *src, ptrdiff_t srcstride,
67  int h, int mx, int my);
68 void ff_put_vp8_epel8_v6_msa(uint8_t *dst, ptrdiff_t dststride,
69  uint8_t *src, ptrdiff_t srcstride,
70  int h, int mx, int my);
71 void ff_put_vp8_epel8_h4v4_msa(uint8_t *dst, ptrdiff_t dststride,
72  uint8_t *src, ptrdiff_t srcstride,
73  int h, int mx, int my);
74 void ff_put_vp8_epel8_h6v4_msa(uint8_t *dst, ptrdiff_t dststride,
75  uint8_t *src, ptrdiff_t srcstride,
76  int h, int mx, int my);
77 void ff_put_vp8_epel8_h4v6_msa(uint8_t *dst, ptrdiff_t dststride,
78  uint8_t *src, ptrdiff_t srcstride,
79  int h, int mx, int my);
80 void ff_put_vp8_epel8_h6v6_msa(uint8_t *dst, ptrdiff_t dststride,
81  uint8_t *src, ptrdiff_t srcstride,
82  int h, int mx, int my);
83 
84 void ff_put_vp8_epel4_h4_msa(uint8_t *dst, ptrdiff_t dststride,
85  uint8_t *src, ptrdiff_t srcstride,
86  int h, int mx, int my);
87 void ff_put_vp8_epel4_h6_msa(uint8_t *dst, ptrdiff_t dststride,
88  uint8_t *src, ptrdiff_t srcstride,
89  int h, int mx, int my);
90 void ff_put_vp8_epel4_v4_msa(uint8_t *dst, ptrdiff_t dststride,
91  uint8_t *src, ptrdiff_t srcstride,
92  int h, int mx, int my);
93 void ff_put_vp8_epel4_v6_msa(uint8_t *dst, ptrdiff_t dststride,
94  uint8_t *src, ptrdiff_t srcstride,
95  int h, int mx, int my);
96 void ff_put_vp8_epel4_h4v4_msa(uint8_t *dst, ptrdiff_t dststride,
97  uint8_t *src, ptrdiff_t srcstride,
98  int h, int mx, int my);
99 void ff_put_vp8_epel4_h6v4_msa(uint8_t *dst, ptrdiff_t dststride,
100  uint8_t *src, ptrdiff_t srcstride,
101  int h, int mx, int my);
102 void ff_put_vp8_epel4_h4v6_msa(uint8_t *dst, ptrdiff_t dststride,
103  uint8_t *src, ptrdiff_t srcstride,
104  int h, int mx, int my);
105 void ff_put_vp8_epel4_h6v6_msa(uint8_t *dst, ptrdiff_t dststride,
106  uint8_t *src, ptrdiff_t srcstride,
107  int h, int mx, int my);
108 
109 void ff_put_vp8_bilinear16_h_msa(uint8_t *dst, ptrdiff_t dststride,
110  uint8_t *src, ptrdiff_t srcstride,
111  int h, int mx, int my);
112 void ff_put_vp8_bilinear16_v_msa(uint8_t *dst, ptrdiff_t dststride,
113  uint8_t *src, ptrdiff_t srcstride,
114  int h, int mx, int my);
115 void ff_put_vp8_bilinear16_hv_msa(uint8_t *dst, ptrdiff_t dststride,
116  uint8_t *src, ptrdiff_t srcstride,
117  int h, int mx, int my);
118 
119 void ff_put_vp8_bilinear8_h_msa(uint8_t *dst, ptrdiff_t dststride,
120  uint8_t *src, ptrdiff_t srcstride,
121  int h, int mx, int my);
122 void ff_put_vp8_bilinear8_v_msa(uint8_t *dst, ptrdiff_t dststride,
123  uint8_t *src, ptrdiff_t srcstride,
124  int h, int mx, int my);
125 void ff_put_vp8_bilinear8_hv_msa(uint8_t *dst, ptrdiff_t dststride,
126  uint8_t *src, ptrdiff_t srcstride,
127  int h, int mx, int my);
128 
129 void ff_put_vp8_bilinear4_h_msa(uint8_t *dst, ptrdiff_t dststride,
130  uint8_t *src, ptrdiff_t srcstride,
131  int h, int mx, int my);
132 void ff_put_vp8_bilinear4_v_msa(uint8_t *dst, ptrdiff_t dststride,
133  uint8_t *src, ptrdiff_t srcstride,
134  int h, int mx, int my);
135 void ff_put_vp8_bilinear4_hv_msa(uint8_t *dst, ptrdiff_t dststride,
136  uint8_t *src, ptrdiff_t srcstride,
137  int h, int mx, int my);
138 
139 /* loop filter */
140 void ff_vp8_h_loop_filter16_inner_msa(uint8_t *dst, ptrdiff_t stride,
141  int32_t e, int32_t i, int32_t h);
142 void ff_vp8_v_loop_filter16_inner_msa(uint8_t *dst, ptrdiff_t stride,
143  int32_t e, int32_t i, int32_t h);
145  ptrdiff_t stride,
146  int flim_e, int flim_i, int hev_thresh);
148  ptrdiff_t stride,
149  int flim_e, int flim_i, int hev_thresh);
150 void ff_vp8_h_loop_filter16_msa(uint8_t *dst, ptrdiff_t stride,
151  int flim_e, int flim_i, int hev_thresh);
152 void ff_vp8_v_loop_filter16_msa(uint8_t *dst, ptrdiff_t stride,
153  int flim_e, int flim_i, int hev_thresh);
154 void ff_vp8_h_loop_filter8uv_msa(uint8_t *dst_u, uint8_t *dst_v,
155  ptrdiff_t stride,
156  int flim_e, int flim_i, int hev_thresh);
157 void ff_vp8_v_loop_filter8uv_msa(uint8_t *dst_u, uint8_t *dst_v,
158  ptrdiff_t stride,
159  int flim_e, int flim_i, int hev_thresh);
160 void ff_vp8_h_loop_filter_simple_msa(uint8_t *dst, ptrdiff_t stride, int flim);
161 void ff_vp8_v_loop_filter_simple_msa(uint8_t *dst, ptrdiff_t stride, int flim);
162 
163 /* Idct functions */
164 void ff_vp8_luma_dc_wht_msa(int16_t block[4][4][16], int16_t dc[16]);
165 void ff_vp8_idct_add_msa(uint8_t *dst, int16_t block[16], ptrdiff_t stride);
166 void ff_vp8_idct_dc_add_msa(uint8_t *dst, int16_t block[16], ptrdiff_t stride);
167 void ff_vp8_idct_dc_add4uv_msa(uint8_t *dst, int16_t block[4][16],
168  ptrdiff_t stride);
169 void ff_vp8_idct_dc_add4y_msa(uint8_t *dst, int16_t block[4][16],
170  ptrdiff_t stride);
171 
172 #endif // #ifndef AVCODEC_MIPS_VP8DSP_MIPS_H
void ff_vp8_h_loop_filter8uv_inner_msa(uint8_t *dst_u, uint8_t *dst_v, ptrdiff_t stride, int flim_e, int flim_i, int hev_thresh)
Definition: vp8_lpf_msa.c:595
void ff_put_vp8_bilinear8_h_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1644
void ff_vp8_idct_dc_add4y_msa(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride)
Definition: vp8_idct_msa.c:144
void ff_put_vp8_epel4_h4v4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1045
void ff_vp8_h_loop_filter16_inner_msa(uint8_t *dst, ptrdiff_t stride, int32_t e, int32_t i, int32_t h)
Definition: vp8_lpf_msa.c:657
void ff_put_vp8_epel16_v4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:986
void ff_put_vp8_epel4_v6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:333
void ff_put_vp8_epel4_h4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:794
void ff_vp8_h_loop_filter16_msa(uint8_t *dst, ptrdiff_t stride, int flim_e, int flim_i, int hev_thresh)
Definition: vp8_lpf_msa.c:374
void ff_vp8_v_loop_filter16_msa(uint8_t *dst, ptrdiff_t stride, int flim_e, int flim_i, int hev_thresh)
Definition: vp8_lpf_msa.c:297
void ff_put_vp8_epel4_h6v4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1186
void ff_put_vp8_epel16_h6v4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1324
static int16_t block[64]
Definition: dct.c:113
void ff_vp8_idct_add_msa(uint8_t *dst, int16_t block[16], ptrdiff_t stride)
Definition: vp8_idct_msa.c:48
uint8_t
void ff_put_vp8_epel8_h6v6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:579
void ff_put_vp8_pixels16_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int x, int y)
Definition: vp8_mc_msa.c:2314
void ff_put_vp8_epel8_h6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:236
void ff_put_vp8_epel4_h6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:223
void ff_vp8_luma_dc_wht_msa(int16_t block[4][4][16], int16_t dc[16])
Definition: vp8_idct_msa.c:105
void ff_put_vp8_bilinear4_v_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1786
void ff_put_vp8_epel8_h6v4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1251
void ff_put_vp8_epel8_h4v4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1104
void ff_put_vp8_bilinear16_hv_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:2173
void ff_put_vp8_bilinear8_hv_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:2157
void ff_put_vp8_epel16_h4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:844
void ff_put_vp8_bilinear4_h_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1543
void ff_put_vp8_epel8_h4v6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1403
void ff_put_vp8_epel16_h6v6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:666
int32_t
void ff_put_vp8_epel16_h6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:284
#define src
Definition: vp9dsp.c:530
void ff_vp8_idct_dc_add_msa(uint8_t *dst, int16_t block[16], ptrdiff_t stride)
Definition: vp8_idct_msa.c:84
void ff_put_vp8_epel8_v6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:380
void ff_put_vp8_epel16_v6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:430
void ff_put_vp8_epel4_h4v6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1339
void ff_put_vp8_epel8_v4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:940
void ff_vp8_v_loop_filter_simple_msa(uint8_t *dst, ptrdiff_t stride, int flim)
Definition: vp8_lpf_msa.c:505
void ff_put_vp8_bilinear16_v_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1883
void ff_vp8_v_loop_filter8uv_inner_msa(uint8_t *dst_u, uint8_t *dst_v, ptrdiff_t stride, int flim_e, int flim_i, int hev_thresh)
Definition: vp8_lpf_msa.c:553
void ff_put_vp8_epel16_h4v4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1171
void ff_put_vp8_bilinear16_h_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1658
void ff_put_vp8_bilinear8_v_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1869
void ff_put_vp8_epel4_v4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:893
void ff_put_vp8_epel4_h6v6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:504
void ff_put_vp8_epel8_h4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:809
void ff_vp8_idct_dc_add4uv_msa(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride)
Definition: vp8_idct_msa.c:153
GLint GLenum GLboolean GLsizei stride
Definition: opengl_enc.c:105
void ff_put_vp8_pixels8_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int x, int y)
Definition: vp8_mc_msa.c:2244
void ff_vp8_v_loop_filter16_inner_msa(uint8_t *dst, ptrdiff_t stride, int32_t e, int32_t i, int32_t h)
Definition: vp8_lpf_msa.c:637
void ff_put_vp8_pixels4_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int x, int y)
void ff_put_vp8_bilinear4_hv_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:2016
void ff_put_vp8_epel16_h4v6_msa(uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int h, int mx, int my)
Definition: vp8_mc_msa.c:1478
void ff_vp8_v_loop_filter8uv_msa(uint8_t *dst_u, uint8_t *dst_v, ptrdiff_t stride, int flim_e, int flim_i, int hev_thresh)
Definition: vp8_lpf_msa.c:320
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(constuint8_t *) pi-0x80)*(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(constuint8_t *) pi-0x80)*(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(constint16_t *) pi >>8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t,*(constint16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t,*(constint16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(constint32_t *) pi >>24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t,*(constint32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t,*(constint32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(constfloat *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(constfloat *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(constfloat *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(constdouble *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(constdouble *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(constdouble *) pi *(1U<< 31))))#defineSET_CONV_FUNC_GROUP(ofmt, ifmt) staticvoidset_generic_function(AudioConvert *ac){}voidff_audio_convert_free(AudioConvert **ac){if(!*ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);}AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enumAVSampleFormatout_fmt, enumAVSampleFormatin_fmt, intchannels, intsample_rate, intapply_map){AudioConvert *ac;intin_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) returnNULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method!=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt)>2){ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc){av_free(ac);returnNULL;}returnac;}in_planar=ff_sample_fmt_is_planar(in_fmt, channels);out_planar=ff_sample_fmt_is_planar(out_fmt, channels);if(in_planar==out_planar){ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar?ac->channels:1;}elseif(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;elseac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_AARCH64) ff_audio_convert_init_aarch64(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);returnac;}intff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in){intuse_generic=1;intlen=in->nb_samples;intp;if(ac->dc){av_log(ac->avr, AV_LOG_TRACE,"%dsamples-audio_convert:%sto%s(dithered)\n", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));returnff_convert_dither(ac-> dc
void ff_vp8_h_loop_filter_simple_msa(uint8_t *dst, ptrdiff_t stride, int flim)
Definition: vp8_lpf_msa.c:519
void ff_vp8_h_loop_filter8uv_msa(uint8_t *dst_u, uint8_t *dst_v, ptrdiff_t stride, int flim_e, int flim_i, int hev_thresh)
Definition: vp8_lpf_msa.c:439