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

Side by Side Diff: webrtc/modules/audio_coding/codecs/opus/opus_interface.c

Issue 1438663003: modules/audio_coding: Remove some codec include dirs (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase again Created 5 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/modules/audio_coding/codecs/opus/include/opus_interface.h" 11 #include "webrtc/modules/audio_coding/codecs/opus/opus_interface.h"
12 #include "webrtc/modules/audio_coding/codecs/opus/opus_inst.h" 12 #include "webrtc/modules/audio_coding/codecs/opus/opus_inst.h"
13 13
14 #include <assert.h> 14 #include <assert.h>
15 #include <stdlib.h> 15 #include <stdlib.h>
16 #include <string.h> 16 #include <string.h>
17 17
18 enum { 18 enum {
19 /* Maximum supported frame size in WebRTC is 60 ms. */ 19 /* Maximum supported frame size in WebRTC is 60 ms. */
20 kWebRtcOpusMaxEncodeFrameSizeMs = 60, 20 kWebRtcOpusMaxEncodeFrameSizeMs = 60,
21 21
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 return 0; 495 return 0;
496 } 496 }
497 497
498 for (n = 0; n < channels; n++) { 498 for (n = 0; n < channels; n++) {
499 if (frame_data[0][0] & (0x80 >> ((n + 1) * (frames + 1) - 1))) 499 if (frame_data[0][0] & (0x80 >> ((n + 1) * (frames + 1) - 1)))
500 return 1; 500 return 1;
501 } 501 }
502 502
503 return 0; 503 return 0;
504 } 504 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/opus/opus_interface.h ('k') | webrtc/modules/audio_coding/codecs/opus/opus_speed_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698