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

Issue 2833493003: Don't re-randomize picture_id/tl0_pic_idx when re-initializing internal encoders. (Closed)

Created:
3 years, 8 months ago by brandtr
Modified:
3 years, 7 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhengzhonghou_agora.io, video-team_agora.io, stefan-webrtc, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Don't re-randomize picture_id/tl0_pic_idx when re-initializing internal encoders. TESTED=video_loopback and AppRTCMobile with forced encoder reinits every 30 frames. BUG=webrtc:7475 Review-Url: https://codereview.webrtc.org/2833493003 Cr-Commit-Position: refs/heads/master@{#17984} Committed: https://chromium.googlesource.com/external/webrtc/+/080830c513023df6dbf11b42e92c9df59fc8c049

Patch Set 1 #

Total comments: 9

Patch Set 2 : Move |random_| to local variable in ctor. Change TimeMicros() -> TimeMillis(). #

Patch Set 3 : holmer comments 1: add unit tests for tl0_pic_idx. #

Total comments: 1

Patch Set 4 : asapersson comments 1: increment timestamp and push more frames through. #

Total comments: 6

Patch Set 5 : Rebase. #

Patch Set 6 : holmer comments 2 #

Patch Set 7 : Change back TimeMills() -> TimeMicros(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -95 lines) Patch
M webrtc/modules/video_coding/codecs/h264/test/h264_impl_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/codecs/test/video_codec_test.h View 1 2 3 4 5 3 chunks +7 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/codecs/test/video_codec_test.cc View 1 2 3 4 5 6 4 chunks +20 lines, -10 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/screenshare_layers.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/screenshare_layers.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/temporal_layers.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc View 1 2 3 4 5 12 chunks +140 lines, -43 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/vp8_impl.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc View 1 2 3 4 5 6 6 chunks +14 lines, -13 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp9/test/vp9_impl_unittest.cc View 1 2 3 4 5 5 chunks +105 lines, -7 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp9/vp9_impl.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc View 1 2 3 4 5 6 4 chunks +6 lines, -9 lines 0 comments Download
M webrtc/modules/video_coding/utility/simulcast_rate_allocator_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc View 1 2 3 4 5 6 8 chunks +10 lines, -7 lines 0 comments Download

Messages

Total messages: 35 (17 generated)
brandtr
Please take a look. asapersson: General review. holmer: OWNER. magjed: Android encoder. https://codereview.webrtc.org/2833493003/diff/40001/webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.cc File webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.cc ...
3 years, 8 months ago (2017-04-20 08:59:11 UTC) #4
stefan-webrtc
What's your opinion about moving the randomization out to the rtp_rtcp instead? That's where rtp ...
3 years, 8 months ago (2017-04-20 09:28:09 UTC) #5
brandtr
On 2017/04/20 09:28:09, stefan-webrtc wrote: > What's your opinion about moving the randomization out to ...
3 years, 8 months ago (2017-04-20 09:38:51 UTC) #6
magjed_webrtc
https://codereview.webrtc.org/2833493003/diff/40001/webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc File webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc (right): https://codereview.webrtc.org/2833493003/diff/40001/webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc#newcode336 webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc:336: picture_id_(random_.Rand<uint16_t>() & 0x7FFF), Is it possible to pass in ...
3 years, 8 months ago (2017-04-20 12:39:12 UTC) #7
stefan-webrtc
Just to make sure we don't forget about my comment at lunch today: We should ...
3 years, 8 months ago (2017-04-20 13:45:36 UTC) #8
brandtr
https://codereview.webrtc.org/2833493003/diff/40001/webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc File webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc (right): https://codereview.webrtc.org/2833493003/diff/40001/webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc#newcode336 webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc:336: picture_id_(random_.Rand<uint16_t>() & 0x7FFF), On 2017/04/20 12:39:12, magjed_webrtc wrote: > ...
3 years, 8 months ago (2017-04-21 08:29:31 UTC) #9
magjed_webrtc
androidmediaencoder_jni.cc lgtm https://codereview.webrtc.org/2833493003/diff/40001/webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc File webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc (right): https://codereview.webrtc.org/2833493003/diff/40001/webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc#newcode297 webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc:297: webrtc::Random random_; I would like to not ...
3 years, 8 months ago (2017-04-21 15:11:19 UTC) #10
brandtr
https://codereview.webrtc.org/2833493003/diff/40001/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc File webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc (right): https://codereview.webrtc.org/2833493003/diff/40001/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc#newcode136 webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc:136: random_(rtc::TimeMicros()), On 2017/04/20 09:28:09, stefan-webrtc wrote: > Mostly FYI, ...
3 years, 8 months ago (2017-04-24 07:53:47 UTC) #11
brandtr
On 2017/04/20 13:45:36, stefan-webrtc wrote: > Just to make sure we don't forget about my ...
3 years, 8 months ago (2017-04-24 12:25:31 UTC) #12
brandtr
holmer: Added unit tests, as requested.
3 years, 8 months ago (2017-04-26 11:57:01 UTC) #14
åsapersson
lgtm with comment fixed https://codereview.webrtc.org/2833493003/diff/100001/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc File webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc (right): https://codereview.webrtc.org/2833493003/diff/100001/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc#newcode343 webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc:343: encoder_->Encode(*input_frame_, nullptr, nullptr)); increase timestamp ...
3 years, 7 months ago (2017-04-27 12:09:39 UTC) #15
brandtr
On 2017/04/27 12:09:39, åsapersson wrote: > lgtm with comment fixed > > https://codereview.webrtc.org/2833493003/diff/100001/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc > File ...
3 years, 7 months ago (2017-04-27 13:00:55 UTC) #16
stefan-webrtc
lgtm, but consider my comments https://codereview.webrtc.org/2833493003/diff/120001/webrtc/modules/video_coding/codecs/test/video_codec_test.h File webrtc/modules/video_coding/codecs/test/video_codec_test.h (right): https://codereview.webrtc.org/2833493003/diff/120001/webrtc/modules/video_coding/codecs/test/video_codec_test.h#newcode81 webrtc/modules/video_coding/codecs/test/video_codec_test.h:81: VideoCodec codec_inst_; codec_inst_ has ...
3 years, 7 months ago (2017-05-02 07:21:50 UTC) #17
brandtr
Rebase.
3 years, 7 months ago (2017-05-02 07:24:47 UTC) #18
brandtr
https://codereview.webrtc.org/2833493003/diff/120001/webrtc/modules/video_coding/codecs/test/video_codec_test.h File webrtc/modules/video_coding/codecs/test/video_codec_test.h (right): https://codereview.webrtc.org/2833493003/diff/120001/webrtc/modules/video_coding/codecs/test/video_codec_test.h#newcode81 webrtc/modules/video_coding/codecs/test/video_codec_test.h:81: VideoCodec codec_inst_; On 2017/05/02 07:21:50, stefan-webrtc wrote: > codec_inst_ ...
3 years, 7 months ago (2017-05-02 07:48:50 UTC) #20
brandtr
Most other uses of webrtc::Random uses microsecond granularity for the seed, so I changed back ...
3 years, 7 months ago (2017-05-03 07:00:48 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2833493003/200001
3 years, 7 months ago (2017-05-03 10:23:18 UTC) #32
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 10:25:58 UTC) #35
Message was sent while issue was closed.
Committed patchset #7 (id:200001) as
https://chromium.googlesource.com/external/webrtc/+/080830c513023df6dbf11b42e...

Powered by Google App Engine
This is Rietveld 408576698