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

Issue 1184313002: Add AudioEncoder::GetTargetBitrate (Closed)

Created:
5 years, 6 months ago by hlundin-webrtc
Modified:
5 years, 6 months ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, tlegrand-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add AudioEncoder::GetTargetBitrate The GetTargetBitrate implementation will return the target bitrate of the codec. This may differ from the desired target bitrate, as set by SetTargetBitrate, depending on implementation. Tests are updated to exercise the new functionality. R=kwiberg@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/3e89dbf45835896c8fd89f235f396d03bc2e6065

Patch Set 1 #

Patch Set 2 : Getting rid of erroneous code #

Total comments: 9

Patch Set 3 : Taking care of first round of comments #

Patch Set 4 : Reverting to SetTargetBitrate returning void #

Total comments: 6

Patch Set 5 : Second round of review tackled #

Patch Set 6 : Fixing GN compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -10 lines) Patch
M webrtc/modules/audio_coding/codecs/audio_encoder.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_encoder_mutable_impl.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/include/audio_encoder_cng.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.cc View 1 2 3 4 5 3 chunks +13 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/g711/include/audio_encoder_pcm.h View 1 2 3 4 5 5 chunks +9 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/g722/include/audio_encoder_g722.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/interface/audio_encoder_ilbc.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h View 1 2 3 4 2 chunks +11 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_mutable_opus_test.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/interface/audio_encoder_opus.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/pcm16b/include/audio_encoder_pcm16b.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc View 1 2 3 11 chunks +69 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
hlundin-webrtc
Karl, Please, take a look at this cl. Thanks!
5 years, 6 months ago (2015-06-16 09:30:03 UTC) #2
hlundin-webrtc
Getting rid of erroneous code
5 years, 6 months ago (2015-06-16 10:03:25 UTC) #3
kwiberg-webrtc
General note: I thought you also wanted to log the bitrate in places where SetTargetBitrate ...
5 years, 6 months ago (2015-06-16 19:22:54 UTC) #4
hlundin-webrtc
Taking care of first round of comments
5 years, 6 months ago (2015-06-16 21:31:42 UTC) #5
hlundin-webrtc
Thanks, Karl. I added a new GetTargetBitrate method, but the Set... method still returns a ...
5 years, 6 months ago (2015-06-16 21:38:51 UTC) #6
kwiberg-webrtc
On 2015/06/16 21:38:51, hlundin-webrtc wrote: > I added a new GetTargetBitrate method, but the Set... ...
5 years, 6 months ago (2015-06-17 07:56:04 UTC) #7
hlundin-webrtc
Reverting to SetTargetBitrate returning void
5 years, 6 months ago (2015-06-17 13:33:52 UTC) #8
hlundin-webrtc
I removed the return value from SetTargetBitrate. PTAL again.
5 years, 6 months ago (2015-06-17 13:46:41 UTC) #10
kwiberg-webrtc
lgtm with nits https://codereview.webrtc.org/1184313002/diff/80001/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h File webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h (right): https://codereview.webrtc.org/1184313002/diff/80001/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h#newcode117 webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h:117: int target_bitrate_bps_ GUARDED_BY(lock_); The lock isn't ...
5 years, 6 months ago (2015-06-17 14:36:31 UTC) #11
hlundin-webrtc
Second round of review tackled
5 years, 6 months ago (2015-06-18 07:46:11 UTC) #12
hlundin-webrtc
Second round of review tackled
5 years, 6 months ago (2015-06-18 08:03:39 UTC) #13
hlundin-webrtc
Second round of review tackled
5 years, 6 months ago (2015-06-18 08:41:32 UTC) #15
hlundin-webrtc
Rename bit_rate to bitrate
5 years, 6 months ago (2015-06-18 08:42:08 UTC) #16
hlundin-webrtc
https://codereview.webrtc.org/1184313002/diff/80001/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h File webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h (right): https://codereview.webrtc.org/1184313002/diff/80001/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h#newcode117 webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h:117: int target_bitrate_bps_ GUARDED_BY(lock_); On 2015/06/17 14:36:30, kwiberg1 wrote: > ...
5 years, 6 months ago (2015-06-18 08:52:18 UTC) #19
kwiberg-webrtc
lgtm
5 years, 6 months ago (2015-06-18 09:39:33 UTC) #20
hlundin-webrtc
5 years, 6 months ago (2015-06-18 12:58:53 UTC) #21
Message was sent while issue was closed.
Committed patchset #6 (id:180001) manually as
3e89dbf45835896c8fd89f235f396d03bc2e6065 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698