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

Side by Side Diff: third_party/opus/src/celt/pitch.h

Issue 2962373002: [Opus] Update to v1.2.1 (Closed)
Patch Set: Pre-increment instead of post-increment Created 3 years, 5 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 | « third_party/opus/src/celt/modes.c ('k') | third_party/opus/src/celt/pitch.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2007-2008 CSIRO 1 /* Copyright (c) 2007-2008 CSIRO
2 Copyright (c) 2007-2009 Xiph.Org Foundation 2 Copyright (c) 2007-2009 Xiph.Org Foundation
3 Written by Jean-Marc Valin */ 3 Written by Jean-Marc Valin */
4 /** 4 /**
5 @file pitch.h 5 @file pitch.h
6 @brief Pitch analysis 6 @brief Pitch analysis
7 */ 7 */
8 8
9 /* 9 /*
10 Redistribution and use in source and binary forms, with or without 10 Redistribution and use in source and binary forms, with or without
(...skipping 28 matching lines...) Expand all
39 39
40 #if (defined(OPUS_X86_MAY_HAVE_SSE) && !defined(FIXED_POINT)) \ 40 #if (defined(OPUS_X86_MAY_HAVE_SSE) && !defined(FIXED_POINT)) \
41 || ((defined(OPUS_X86_MAY_HAVE_SSE4_1) || defined(OPUS_X86_MAY_HAVE_SSE2)) && defined(FIXED_POINT)) 41 || ((defined(OPUS_X86_MAY_HAVE_SSE4_1) || defined(OPUS_X86_MAY_HAVE_SSE2)) && defined(FIXED_POINT))
42 #include "x86/pitch_sse.h" 42 #include "x86/pitch_sse.h"
43 #endif 43 #endif
44 44
45 #if defined(MIPSr1_ASM) 45 #if defined(MIPSr1_ASM)
46 #include "mips/pitch_mipsr1.h" 46 #include "mips/pitch_mipsr1.h"
47 #endif 47 #endif
48 48
49 #if ((defined(OPUS_ARM_ASM) && defined(FIXED_POINT)) \ 49 #if (defined(OPUS_ARM_ASM) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR))
50 || defined(OPUS_ARM_MAY_HAVE_NEON_INTR))
51 # include "arm/pitch_arm.h" 50 # include "arm/pitch_arm.h"
52 #endif 51 #endif
53 52
54 void pitch_downsample(celt_sig * OPUS_RESTRICT x[], opus_val16 * OPUS_RESTRICT x _lp, 53 void pitch_downsample(celt_sig * OPUS_RESTRICT x[], opus_val16 * OPUS_RESTRICT x _lp,
55 int len, int C, int arch); 54 int len, int C, int arch);
56 55
57 void pitch_search(const opus_val16 * OPUS_RESTRICT x_lp, opus_val16 * OPUS_RESTR ICT y, 56 void pitch_search(const opus_val16 * OPUS_RESTRICT x_lp, opus_val16 * OPUS_RESTR ICT y,
58 int len, int max_pitch, int *pitch, int arch); 57 int len, int max_pitch, int *pitch, int arch);
59 58
60 opus_val16 remove_doubling(opus_val16 *x, int maxperiod, int minperiod, 59 opus_val16 remove_doubling(opus_val16 *x, int maxperiod, int minperiod,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 opus_val16 g10, opus_val16 g11, opus_val16 g12); 176 opus_val16 g10, opus_val16 g11, opus_val16 g12);
178 #endif 177 #endif
179 178
180 179
181 #ifdef FIXED_POINT 180 #ifdef FIXED_POINT
182 opus_val32 181 opus_val32
183 #else 182 #else
184 void 183 void
185 #endif 184 #endif
186 celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y, 185 celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y,
187 opus_val32 *xcorr, int len, int max_pitch);
188
189 #if !defined(OVERRIDE_PITCH_XCORR)
190 #ifdef FIXED_POINT
191 opus_val32
192 #else
193 void
194 #endif
195 celt_pitch_xcorr(const opus_val16 *_x, const opus_val16 *_y,
196 opus_val32 *xcorr, int len, int max_pitch, int arch); 186 opus_val32 *xcorr, int len, int max_pitch, int arch);
197 187
188 #ifndef OVERRIDE_PITCH_XCORR
189 # define celt_pitch_xcorr celt_pitch_xcorr_c
198 #endif 190 #endif
199 191
200 #endif 192 #endif
OLDNEW
« no previous file with comments | « third_party/opus/src/celt/modes.c ('k') | third_party/opus/src/celt/pitch.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698