OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |