Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: silk/x86/x86_silk_map.c

Issue 882843002: Update to opus-HEAD-66611f1. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/opus.git@master
Patch Set: Add the contents of Makefile.mips back. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « silk/x86/main_sse.h ('k') | silk_headers.mk » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* Copyright (c) 2014, Cisco Systems, INC
2 Written by XiangMingZhu WeiZhou MinPeng YanWang
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
6 are met:
7
8 - Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 - Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #if defined(HAVE_CONFIG_H)
29 #include "config.h"
30 #endif
31
32 #include "celt/x86/x86cpu.h"
33 #include "structs.h"
34 #include "SigProc_FIX.h"
35 #include "pitch.h"
36 #include "main.h"
37
38 opus_int64 (*const SILK_INNER_PROD16_ALIGNED_64_IMPL[ OPUS_ARCHMASK + 1 ] )(
39 const opus_int16 *inVec1,
40 const opus_int16 *inVec2,
41 const opus_int len
42 ) = {
43 silk_inner_prod16_aligned_64_c, /* non-sse */
44 silk_inner_prod16_aligned_64_c,
45 MAY_HAVE_SSE4_1( silk_inner_prod16_aligned_64 ), /* sse4.1 */
46 NULL
47 };
48
49 opus_int (*const SILK_VAD_GETSA_Q8_IMPL[ OPUS_ARCHMASK + 1 ] )(
50 silk_encoder_state *psEncC,
51 const opus_int16 pIn[]
52 ) = {
53 silk_VAD_GetSA_Q8_c, /* non-sse */
54 silk_VAD_GetSA_Q8_c,
55 MAY_HAVE_SSE4_1( silk_VAD_GetSA_Q8 ), /* sse4.1 */
56 NULL
57 };
58
59 void (*const SILK_NSQ_IMPL[ OPUS_ARCHMASK + 1 ] )(
60 const silk_encoder_state *psEncC, /* I /O Encoder State */
61 silk_nsq_state *NSQ, /* I /O NSQ state */
62 SideInfoIndices *psIndices, /* I /O Quantization Indices */
63 const opus_int32 x_Q3[], /* I Prefiltered input signal */
64 opus_int8 pulses[], /* O Quantized pulse signal */
65 const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */
66 const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */
67 const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], / * I Noise shaping coefs */
68 const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */
69 const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */
70 const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */
71 const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */
72 const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */
73 const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */
74 const opus_int LTP_scale_Q14 /* I LTP state scaling */
75 ) = {
76 silk_NSQ_c, /* non-sse */
77 silk_NSQ_c,
78 MAY_HAVE_SSE4_1( silk_NSQ ), /* sse4.1 */
79 NULL
80 };
81
82 void (*const SILK_VQ_WMAT_EC_IMPL[ OPUS_ARCHMASK + 1 ] )(
83 opus_int8 *ind, /* O index of best codebook vector */
84 opus_int32 *rate_dist_Q14, /* O best wei ghted quant error + mu * rate */
85 opus_int *gain_Q7, /* O sum of a bsolute LTP coefficients */
86 const opus_int16 *in_Q14, /* I input ve ctor to be quantized */
87 const opus_int32 *W_Q18, /* I weightin g matrix */
88 const opus_int8 *cb_Q7, /* I codebook */
89 const opus_uint8 *cb_gain_Q7, /* I codebook effective gain */
90 const opus_uint8 *cl_Q5, /* I code len gth for each codebook vector */
91 const opus_int mu_Q9, /* I tradeoff betw. weighted error and rate */
92 const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP coefficients */
93 opus_int L /* I number o f vectors in codebook */
94 ) = {
95 silk_VQ_WMat_EC_c, /* non-sse */
96 silk_VQ_WMat_EC_c,
97 MAY_HAVE_SSE4_1( silk_VQ_WMat_EC ), /* sse4.1 */
98 NULL
99 };
100
101 void (*const SILK_NSQ_DEL_DEC_IMPL[ OPUS_ARCHMASK + 1 ] )(
102 const silk_encoder_state *psEncC, /* I /O Encoder State */
103 silk_nsq_state *NSQ, /* I /O NSQ state */
104 SideInfoIndices *psIndices, /* I /O Quantization Indices */
105 const opus_int32 x_Q3[], /* I Prefiltered input signal */
106 opus_int8 pulses[], /* O Quantized pulse signal */
107 const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */
108 const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */
109 const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], / * I Noise shaping coefs */
110 const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */
111 const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */
112 const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */
113 const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */
114 const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */
115 const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */
116 const opus_int LTP_scale_Q14 /* I LTP state scaling */
117 ) = {
118 silk_NSQ_del_dec_c, /* non-sse */
119 silk_NSQ_del_dec_c,
120 MAY_HAVE_SSE4_1( silk_NSQ_del_dec ), /* sse4.1 */
121 NULL
122 };
123
124 void (*const SILK_WARPED_LPC_ANALYSIS_FILTER_FIX_IMPL[ OPUS_ARCHMASK + 1 ] )(
125 opus_int32 state[], /* I/O State [order + 1] */
126 opus_int32 res_Q2[], /* O Residual sig nal [length] */
127 const opus_int16 coef_Q13[], /* I Coefficients [order] */
128 const opus_int16 input[], /* I Input signal [length] */
129 const opus_int16 lambda_Q16, /* I Warping fact or */
130 const opus_int length, /* I Length of in put signal */
131 const opus_int order /* I Filter order (even) */
132 ) = {
133 silk_warped_LPC_analysis_filter_FIX_c, /* non-sse */
134 silk_warped_LPC_analysis_filter_FIX_c,
135 MAY_HAVE_SSE4_1( silk_warped_LPC_analysis_filter_FIX ), /* sse4.1 */
136 NULL
137 };
138
139 void (*const SILK_BURG_MODIFIED_IMPL[ OPUS_ARCHMASK + 1 ] )(
140 opus_int32 *res_nrg, /* O Residual energy */
141 opus_int *res_nrg_Q, /* O Residual energy Q va lue */
142 opus_int32 A_Q16[], /* O Prediction coefficie nts (length order) */
143 const opus_int16 x[], /* I Input signal, length : nb_subfr * ( D + subfr_length ) */
144 const opus_int32 minInvGain_Q30, /* I Inverse of max predi ction gain */
145 const opus_int subfr_length, /* I Input signal subfram e length (incl. D preceding samples) */
146 const opus_int nb_subfr, /* I Number of subframes stacked in x */
147 const opus_int D, /* I Order */
148 int arch /* I Run-time architectur e */
149 ) = {
150 silk_burg_modified_c, /* non-sse */
151 silk_burg_modified_c,
152 MAY_HAVE_SSE4_1( silk_burg_modified ), /* sse4.1 */
153 NULL
154 };
OLDNEW
« no previous file with comments | « silk/x86/main_sse.h ('k') | silk_headers.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698