|
Changed AudioEncoder::Encode to take an rtc::Buffer* instead of uint8_t* and a maximum size.
For backwards compatibility, I've added kept the old interface to
Encode() and EncodeInternal and created default implementations of both
variants of EncodeInternal(), each calling the other. At least one of
the variants must be implemented in a subclass or we'll run out of stack
and explode. Would be nice if we could catch that before runtime. :/
The new interface to EncodeInternal() is protected, since it should
never be called from the outside.
Was unable to mark the old EncodeInternal() as RTC_DEPRECATED, since the
default implementaion of the new variant needs to call it to work around
old implementations. The old Encode() variant is deprecated, at least.
Added a test for backwards compatibility in audio_encoder_unittest.cc.
For the added test I broke out MockEncodeHelper from
audio_encoder_copy_red_unittest.cc and renamed it MockAudioEncoderHelper.
Committed: https://crrev.com/10a029e95216c568d9bba9714e52edd761cf9054
Cr-Commit-Position: refs/heads/master@{#11823}
Total comments: 50
Total comments: 6
Total comments: 20
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+639 lines, -317 lines) |
Patch |
|
M |
webrtc/modules/audio_coding/acm2/audio_coding_module_impl.cc
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc
|
View
|
1
2
|
5 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/acm2/rent_a_codec_unittest.cc
|
View
|
|
4 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/audio_encoder.h
|
View
|
1
2
|
3 chunks |
+44 lines, -13 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/audio_encoder.cc
|
View
|
1
2
3
4
|
2 chunks |
+49 lines, -0 lines |
0 comments
|
Download
|
|
A |
webrtc/modules/audio_coding/codecs/audio_encoder_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc
|
View
|
|
5 chunks |
+32 lines, -30 lines |
3 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng_unittest.cc
|
View
|
1
2
3
|
8 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.h
|
View
|
1
2
3
4
5
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.cc
|
View
|
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h
|
View
|
1
2
3
4
5
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc
|
View
|
1
2
3
4
|
2 chunks |
+29 lines, -26 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.cc
|
View
|
1
2
3
4
|
2 chunks |
+18 lines, -12 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h
|
View
|
1
2
|
2 chunks |
+13 lines, -10 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+87 lines, -8 lines |
0 comments
|
Download
|
|
A |
webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.cc
|
View
|
1
2
3
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h
|
View
|
1
2
3
4
5
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc
|
View
|
1
2
3
4
|
2 chunks |
+41 lines, -30 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h
|
View
|
1
2
3
4
5
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc
|
View
|
1
2
|
2 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc
|
View
|
1
2
3
|
13 chunks |
+40 lines, -66 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc
|
View
|
1
2
3
4
|
12 chunks |
+25 lines, -29 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/neteq/test/neteq_ilbc_quality_test.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/neteq/test/neteq_isac_quality_test.cc
|
View
|
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/neteq/test/neteq_opus_quality_test.cc
|
View
|
|
2 chunks |
+17 lines, -9 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/neteq/test/neteq_pcmu_quality_test.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/modules.gyp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 41 (14 generated)
|