OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_SPLIT_BY_SAMPLES_H_ | |
12 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_SPLIT_BY_SAMPLES_H_ | |
13 | |
14 #include <vector> | |
15 | |
16 #include "webrtc/base/array_view.h" | |
17 #include "webrtc/modules/audio_coding/codecs/audio_decoder.h" | |
18 | |
19 namespace webrtc { | |
20 | |
21 namespace internal { | |
kwiberg-webrtc
2016/09/12 02:11:02
Why put this in the "internal" namespace? It isn't
ossu
2016/09/12 11:26:37
Hmm, that's true. I wanted to make sure this was n
kwiberg-webrtc
2016/09/13 12:23:37
Ack.
Hmmm. I wonder if it would be more useful th
| |
22 | |
23 // This function is experimental and should not be relied upon by external | |
24 // code. As with the SplitAudio method that utilizes it, it will likely be | |
25 // removed in the near future. | |
26 // Splits a payload consisting of inidividual samples into reasonable chunks. | |
27 // Utility function for use by sample-based codecs to implement SplitPacket. | |
28 std::vector<AudioDecoder::PacketSplit> SplitBySamples( | |
29 rtc::ArrayView<const uint8_t> payload, | |
30 size_t bytes_per_ms, | |
31 uint32_t timestamps_per_ms); | |
kwiberg-webrtc
2016/09/12 02:11:02
Consider having an output argument instead of a re
ossu
2016/09/12 11:26:37
I don't like using output arguments in general, si
kwiberg-webrtc
2016/09/13 12:23:37
True.
| |
32 | |
33 } // namespace internal | |
34 | |
35 } // namespace webrtc | |
36 | |
37 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_SPLIT_BY_SAMPLES_H_ | |
OLD | NEW |