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

Issue 2089773002: Add EncodedImageCallback::OnEncodedImage(). (Closed)

Created:
4 years, 6 months ago by Sergey Ulanov
Modified:
4 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, tterriberry_mozilla.com, qiang.lu, peah-webrtc, pbos-webrtc, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add EncodedImageCallback::OnEncodedImage(). OnEncodedImage() is going to replace Encoded(), which is deprecated now. The new OnEncodedImage() returns Result struct that contains frame_id, which tells the encoder RTP timestamp for the frame. BUG=chromium:621691 R=niklas.enbom@webrtc.org, sprang@webrtc.org, stefan@webrtc.org Committed: https://crrev.com/525df3ffd1626efa0dc6be5824bc64297a0e9931 Committed: https://crrev.com/4c7f4cd2ef76821edca6d773d733a924b0bedd25 Committed: https://crrev.com/ad34dbe934d47f88011045671b4aea00dbd5a795 Cr-Original-Original-Commit-Position: refs/heads/master@{#13613} Cr-Original-Commit-Position: refs/heads/master@{#13615} Cr-Commit-Position: refs/heads/master@{#13617}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Erik's feedback #

Patch Set 3 : sync #

Total comments: 13

Patch Set 4 : addressed feedback #

Total comments: 1

Patch Set 5 : sync #

Patch Set 6 : update SendOutgoingData() #

Total comments: 6

Patch Set 7 : return bool #

Patch Set 8 : sync #

Patch Set 9 : rename param #

Patch Set 10 : sync #

Patch Set 11 : . #

Patch Set 12 : fix tests #

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -382 lines) Patch
M webrtc/modules/rtp_rtcp/include/rtp_rtcp.h View 1 2 3 4 5 6 7 8 2 chunks +23 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -9 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -9 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -8 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.h View 1 2 3 4 5 6 7 8 9 3 chunks +21 lines, -20 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.cc View 1 2 3 4 5 6 7 8 9 8 chunks +39 lines, -32 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_audio.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -7 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +28 lines, -28 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 17 chunks +57 lines, -57 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_video.h View 1 2 3 4 5 6 7 1 chunk +9 lines, -9 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +26 lines, -27 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/testAPI/test_api_audio.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +15 lines, -11 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/testAPI/test_api_rtcp.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/testAPI/test_api_video.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -5 lines 0 comments Download
M webrtc/modules/video_coding/codecs/test/videoprocessor.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/video_coding/codecs/test/videoprocessor.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h View 1 chunk +5 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc View 1 2 3 4 1 chunk +8 lines, -8 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h View 1 2 3 4 5 4 chunks +25 lines, -19 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -6 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/vp8_sequence_coder.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -6 lines 0 comments Download
M webrtc/modules/video_coding/generic_encoder.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M webrtc/modules/video_coding/generic_encoder.cc View 1 2 3 4 2 chunks +11 lines, -8 lines 0 comments Download
M webrtc/modules/video_coding/include/mock/mock_video_codec_interface.h View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_impl.cc View 1 2 3 4 2 chunks +10 lines, -8 lines 0 comments Download
M webrtc/modules/video_coding/video_sender_unittest.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/test/fake_encoder.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/test/fake_encoder.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M webrtc/video/payload_router.h View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M webrtc/video/payload_router.cc View 1 2 3 4 5 2 chunks +16 lines, -9 lines 0 comments Download
M webrtc/video/payload_router_unittest.cc View 1 2 3 4 5 8 chunks +13 lines, -14 lines 0 comments Download
M webrtc/video/video_encoder_unittest.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download
M webrtc/video/video_receive_stream.h View 1 chunk +4 lines, -3 lines 0 comments Download
M webrtc/video/video_receive_stream.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/video/video_send_stream.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 4 3 chunks +6 lines, -5 lines 0 comments Download
M webrtc/video/vie_encoder.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 4 5 2 chunks +7 lines, -6 lines 0 comments Download
M webrtc/video_encoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +38 lines, -2 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 74 (40 generated)
Sergey Ulanov
4 years, 6 months ago (2016-06-21 20:53:58 UTC) #3
Sergey Ulanov
pbos, mflodman: ping
4 years, 6 months ago (2016-06-24 00:52:43 UTC) #4
pbos-webrtc
sprang@/stefan@, are you more involved into these measurements? Changing the interface for all VideoEncoders is ...
4 years, 5 months ago (2016-06-27 22:25:18 UTC) #6
sprang_webrtc
Some minor comments. I think this is an improvement overall, but I'm hoping the drop_next_frame ...
4 years, 5 months ago (2016-06-28 13:54:18 UTC) #7
Sergey Ulanov
https://codereview.webrtc.org/2089773002/diff/20001/webrtc/modules/video_coding/video_coding_impl.cc File webrtc/modules/video_coding/video_coding_impl.cc (right): https://codereview.webrtc.org/2089773002/diff/20001/webrtc/modules/video_coding/video_coding_impl.cc#newcode70 webrtc/modules/video_coding/video_coding_impl.cc:70: EncodedImageCallback* callback_ GUARDED_BY(cs_) = nullptr; On 2016/06/28 13:54:18, språng ...
4 years, 5 months ago (2016-06-29 22:18:53 UTC) #8
sprang_webrtc
lgtm
4 years, 5 months ago (2016-07-01 15:39:32 UTC) #9
Sergey Ulanov
stefan@webrtc.org: ping
4 years, 5 months ago (2016-07-13 04:58:03 UTC) #10
stefan-webrtc
Overall I think this is good https://codereview.webrtc.org/2089773002/diff/60001/webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h File webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h (right): https://codereview.webrtc.org/2089773002/diff/60001/webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h#newcode92 webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h:92: return Result(Result::OK, picture_id_); ...
4 years, 5 months ago (2016-07-18 16:51:27 UTC) #11
Sergey Ulanov
https://codereview.webrtc.org/2089773002/diff/60001/webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h File webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h (right): https://codereview.webrtc.org/2089773002/diff/60001/webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h#newcode92 webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h:92: return Result(Result::OK, picture_id_); On 2016/07/18 16:51:27, stefan-webrtc (holmer) wrote: ...
4 years, 5 months ago (2016-07-21 00:09:40 UTC) #12
Sergey Ulanov
stefan@webrtc.org: ping
4 years, 5 months ago (2016-07-22 18:05:19 UTC) #13
stefan-webrtc
lgtm with nit fixed. https://codereview.chromium.org/2089773002/diff/60001/webrtc/video_encoder.h File webrtc/video_encoder.h (right): https://codereview.chromium.org/2089773002/diff/60001/webrtc/video_encoder.h#newcode49 webrtc/video_encoder.h:49: uint32_t frame_id = 0; On ...
4 years, 5 months ago (2016-07-25 15:17:09 UTC) #14
stefan-webrtc
not lgtm forgot to reply to one comment... https://codereview.webrtc.org/2089773002/diff/60001/webrtc/video/payload_router.cc File webrtc/video/payload_router.cc (right): https://codereview.webrtc.org/2089773002/diff/60001/webrtc/video/payload_router.cc#newcode174 webrtc/video/payload_router.cc:174: rtp_modules_[stream_index]->StartTimestamp() ...
4 years, 5 months ago (2016-07-25 15:19:33 UTC) #15
Sergey Ulanov
https://codereview.webrtc.org/2089773002/diff/60001/webrtc/video/payload_router.cc File webrtc/video/payload_router.cc (right): https://codereview.webrtc.org/2089773002/diff/60001/webrtc/video/payload_router.cc#newcode174 webrtc/video/payload_router.cc:174: rtp_modules_[stream_index]->StartTimestamp() + encoded_image._timeStamp; On 2016/07/25 15:19:33, stefan-webrtc (holmer) wrote: ...
4 years, 4 months ago (2016-07-26 19:19:53 UTC) #16
stefan-webrtc
https://codereview.webrtc.org/2089773002/diff/120001/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h File webrtc/modules/rtp_rtcp/include/rtp_rtcp.h (right): https://codereview.webrtc.org/2089773002/diff/120001/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h#newcode318 webrtc/modules/rtp_rtcp/include/rtp_rtcp.h:318: // Deprecated version of the methood above. method https://codereview.webrtc.org/2089773002/diff/120001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc ...
4 years, 4 months ago (2016-07-28 08:51:17 UTC) #17
Sergey Ulanov
https://codereview.webrtc.org/2089773002/diff/120001/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h File webrtc/modules/rtp_rtcp/include/rtp_rtcp.h (right): https://codereview.webrtc.org/2089773002/diff/120001/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h#newcode318 webrtc/modules/rtp_rtcp/include/rtp_rtcp.h:318: // Deprecated version of the methood above. On 2016/07/28 ...
4 years, 4 months ago (2016-07-28 20:52:46 UTC) #21
stefan-webrtc
https://codereview.webrtc.org/2089773002/diff/120001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2089773002/diff/120001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode451 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:451: int32_t RTPSender::SendOutgoingData(FrameType frame_type, On 2016/07/28 20:52:46, Sergey Ulanov wrote: ...
4 years, 4 months ago (2016-07-29 07:13:37 UTC) #22
Sergey Ulanov
https://codereview.webrtc.org/2089773002/diff/120001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): https://codereview.webrtc.org/2089773002/diff/120001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode451 webrtc/modules/rtp_rtcp/source/rtp_sender.cc:451: int32_t RTPSender::SendOutgoingData(FrameType frame_type, On 2016/07/29 07:13:37, stefan-webrtc (holmer) wrote: ...
4 years, 4 months ago (2016-08-01 07:22:13 UTC) #23
stefan-webrtc
On 2016/08/01 07:22:13, Sergey Ulanov wrote: > https://codereview.webrtc.org/2089773002/diff/120001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc > File webrtc/modules/rtp_rtcp/source/rtp_sender.cc (right): > > https://codereview.webrtc.org/2089773002/diff/120001/webrtc/modules/rtp_rtcp/source/rtp_sender.cc#newcode451 ...
4 years, 4 months ago (2016-08-01 07:29:05 UTC) #24
Sergey Ulanov
On 2016/08/01 07:29:05, stefan-webrtc (holmer) wrote: > On 2016/08/01 07:22:13, Sergey Ulanov wrote: > > ...
4 years, 4 months ago (2016-08-02 00:18:00 UTC) #25
stefan-webrtc
lgtm
4 years, 4 months ago (2016-08-02 06:33:37 UTC) #26
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/2089773002/220001
4 years, 4 months ago (2016-08-02 18:38:44 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_drmemory_light on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_drmemory_light/builds/13761) win_rel on master.tryserver.webrtc (JOB_FAILED, ...
4 years, 4 months ago (2016-08-02 18:41:54 UTC) #35
Sergey Ulanov
+niklas.enbom@webrtc.org Niklas, can you please approve this change?
4 years, 4 months ago (2016-08-02 19:29:10 UTC) #44
niklas.enbom
RS lgtm On 2016/08/02 19:29:10, Sergey Ulanov wrote: > mailto:+niklas.enbom@webrtc.org > Niklas, can you please ...
4 years, 4 months ago (2016-08-02 20:16:59 UTC) #51
Sergey Ulanov
Committed patchset #13 (id:280001) manually as ad34dbe934d47f88011045671b4aea00dbd5a795 (presubmit successful).
4 years, 4 months ago (2016-08-02 20:44:33 UTC) #54
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/ad34dbe934d47f88011045671b4aea00dbd5a795 Cr-Commit-Position: refs/heads/master@{#13613}
4 years, 4 months ago (2016-08-02 20:44:33 UTC) #55
Sergey Ulanov
A revert of this CL (patchset #13 id:280001) has been created in https://codereview.webrtc.org/2206743002/ by sergeyu@chromium.org. ...
4 years, 4 months ago (2016-08-02 21:32:43 UTC) #56
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/2089773002/300001
4 years, 4 months ago (2016-08-02 21:59:28 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_arm64_rel/builds/9814)
4 years, 4 months ago (2016-08-02 22:06:25 UTC) #62
Sergey Ulanov
Committed patchset #14 (id:300001) manually as 4c7f4cd2ef76821edca6d773d733a924b0bedd25 (presubmit successful).
4 years, 4 months ago (2016-08-02 22:15:00 UTC) #64
Sergey Ulanov
A revert of this CL (patchset #14 id:300001) has been created in https://codereview.chromium.org/2203233002/ by sergeyu@chromium.org. ...
4 years, 4 months ago (2016-08-03 00:33:13 UTC) #66
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/2089773002/320001
4 years, 4 months ago (2016-08-03 00:37:36 UTC) #70
Sergey Ulanov
Committed patchset #15 (id:320001) manually as 525df3ffd1626efa0dc6be5824bc64297a0e9931 (presubmit successful).
4 years, 4 months ago (2016-08-03 00:46:54 UTC) #73
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 00:46:55 UTC) #74
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/525df3ffd1626efa0dc6be5824bc64297a0e9931
Cr-Commit-Position: refs/heads/master@{#13617}

Powered by Google App Engine
This is Rietveld 408576698