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

Issue 1428293003: Add VideoCodec::PreferDecodeLate (Closed)

Created:
5 years, 1 month ago by perkj_webrtc
Modified:
5 years ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), Andrew MacDonald, stefan-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, mflodman, peah-webrtc, the sun, perkj_webrtc, andresp
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add VideoCodec::PreferDecodeLate The purpose is so that a decoder (Android) that only have a limited number of output buffers can make sure that decoding is done just before the frame is needed. Removed unused iSupportsRenderTiming and the settings structs since it was not used. Added VCMReceiver::FrameForDecoding unit test for the case when PreferDecodeLate is set. Note that this does not change the current behaviour. We actually currently always decode frames late. This cl is to make sure the behaviour is kept for Android, if the default behaviour is changed. Committed: https://crrev.com/796cfaf7f76aa740cc7f4bb2c94f88637e475324 Cr-Commit-Position: refs/heads/master@{#10974}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed SetExpectedRendererDelay bug #

Total comments: 4

Patch Set 3 : WIP- Changed to add a method to check if the decoder is ready. #

Patch Set 4 : #

Patch Set 5 : Changed back to decode frames late. #

Patch Set 6 : Changed default behaviour to the current. #

Patch Set 7 : Also renamed method in generic_decoder. #

Total comments: 10

Patch Set 8 : git cl format #

Patch Set 9 : Addressed comments. #

Patch Set 10 : Canged default in CodecDataBase.PreferDecodeLate to match default in decoder #

Patch Set 11 : Fix failing unittests #

Total comments: 4

Patch Set 12 : Addressed comments. #

Patch Set 13 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -95 lines) Patch
M talk/app/webrtc/java/jni/androidmediadecoder_jni.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/codec_database.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -12 lines 0 comments Download
M webrtc/modules/video_coding/codec_database.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -16 lines 0 comments Download
M webrtc/modules/video_coding/generic_decoder.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/video_coding/generic_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/include/video_coding.h View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/receiver.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/video_coding/receiver.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/receiver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +59 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/video_coding_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_impl.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_robustness_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/video_receiver.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -15 lines 0 comments Download
M webrtc/modules/video_coding/video_receiver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/video/video_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M webrtc/video/video_receive_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -7 lines 0 comments Download
M webrtc/video/vie_channel.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -8 lines 0 comments Download
M webrtc/video/vie_channel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -7 lines 0 comments Download
M webrtc/video_decoder.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/video_receive_stream.h View 1 2 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
perkj_webrtc
Hi, Can you please take a look? For Android, both this, and something like https://codereview.webrtc.org/1414693006/ ...
5 years, 1 month ago (2015-11-05 11:56:37 UTC) #2
pbos-webrtc
Would esp. like stefan@ to take a look here :) https://codereview.webrtc.org/1428293003/diff/1/webrtc/video_decoder.h File webrtc/video_decoder.h (right): https://codereview.webrtc.org/1428293003/diff/1/webrtc/video_decoder.h#newcode70 ...
5 years, 1 month ago (2015-11-05 17:47:31 UTC) #3
perkj_webrtc
Adding Magnus. Here is the cl I was talking about.
5 years, 1 month ago (2015-11-09 15:23:20 UTC) #5
perkj_webrtc
stefan, please take a look. This cl now don't change any behaviour at all. It ...
5 years ago (2015-12-04 12:24:20 UTC) #7
stefan-webrtc
https://codereview.webrtc.org/1428293003/diff/120001/webrtc/modules/video_coding/codec_database.h File webrtc/modules/video_coding/codec_database.h (right): https://codereview.webrtc.org/1428293003/diff/120001/webrtc/modules/video_coding/codec_database.h#newcode123 webrtc/modules/video_coding/codec_database.h:123: bool PreferDecodeLate() const; Do we need this method? Isn't ...
5 years ago (2015-12-07 09:02:19 UTC) #8
perkj_webrtc
PTAL https://codereview.webrtc.org/1428293003/diff/120001/webrtc/modules/video_coding/codec_database.h File webrtc/modules/video_coding/codec_database.h (right): https://codereview.webrtc.org/1428293003/diff/120001/webrtc/modules/video_coding/codec_database.h#newcode123 webrtc/modules/video_coding/codec_database.h:123: bool PreferDecodeLate() const; On 2015/12/07 09:02:19, stefan-webrtc (holmer) ...
5 years ago (2015-12-07 12:06:34 UTC) #9
stefan-webrtc
This works for me. lgtm pbos, mflodman, any comments? https://codereview.webrtc.org/1428293003/diff/200001/webrtc/video_engine/vie_channel.h File webrtc/video_engine/vie_channel.h (right): https://codereview.webrtc.org/1428293003/diff/200001/webrtc/video_engine/vie_channel.h#newcode98 webrtc/video_engine/vie_channel.h:98: ...
5 years ago (2015-12-09 15:52:25 UTC) #10
mflodman
LGTM
5 years ago (2015-12-10 07:39:16 UTC) #11
pbos-webrtc
lgtm w/ nits https://codereview.webrtc.org/1428293003/diff/200001/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc File talk/app/webrtc/java/jni/androidmediadecoder_jni.cc (right): https://codereview.webrtc.org/1428293003/diff/200001/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc#newcode93 talk/app/webrtc/java/jni/androidmediadecoder_jni.cc:93: bool PreferDecodeLate() const override { return ...
5 years ago (2015-12-10 11:27:20 UTC) #12
pbos-webrtc
https://codereview.webrtc.org/1428293003/diff/200001/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc File talk/app/webrtc/java/jni/androidmediadecoder_jni.cc (right): https://codereview.webrtc.org/1428293003/diff/200001/talk/app/webrtc/java/jni/androidmediadecoder_jni.cc#newcode93 talk/app/webrtc/java/jni/androidmediadecoder_jni.cc:93: bool PreferDecodeLate() const override { return true; } On ...
5 years ago (2015-12-10 11:27:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428293003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428293003/280001
5 years ago (2015-12-10 13:14:32 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) mac_baremetal on ...
5 years ago (2015-12-10 15:14:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428293003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428293003/280001
5 years ago (2015-12-10 17:25:15 UTC) #22
commit-bot: I haz the power
Committed patchset #13 (id:280001)
5 years ago (2015-12-10 17:27:44 UTC) #24
commit-bot: I haz the power
5 years ago (2015-12-10 17:27:53 UTC) #26
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/796cfaf7f76aa740cc7f4bb2c94f88637e475324
Cr-Commit-Position: refs/heads/master@{#10974}

Powered by Google App Engine
This is Rietveld 408576698