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

Issue 2047513002: Add proper lifetime of encoder-specific settings. (Closed)

Created:
4 years, 6 months ago by pbos-webrtc
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, the sun, 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 proper lifetime of encoder-specific settings. Permits passing VideoEncoderConfig between threads and not worry about the lifetime of an underlying void pointer. Also adds type safety to unpacking of codec-specific settings. These settings are not yet propagating to VideoEncoder interfaces, but the aim is to get rid of webrtc::VideoCodec for VideoEncoder. BUG=webrtc:3424 R=mflodman@webrtc.org, stefan@webrtc.org

Patch Set 1 #

Patch Set 2 : typo #

Total comments: 6

Patch Set 3 : feedback: comment and rename parameters #

Total comments: 8

Patch Set 4 : feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -69 lines) Patch
M webrtc/config.h View 1 2 3 3 chunks +48 lines, -1 line 1 comment Download
M webrtc/config.cc View 1 2 3 3 chunks +58 lines, -1 line 0 comments Download
M webrtc/media/engine/fakewebrtccall.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.h View 1 2 3 chunks +2 lines, -8 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 3 2 chunks +23 lines, -19 lines 0 comments Download
M webrtc/video/video_quality_test.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/video/video_quality_test.cc View 1 2 1 chunk +13 lines, -11 lines 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 2 chunks +12 lines, -22 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 7 chunks +26 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
pbos-webrtc
typo
4 years, 6 months ago (2016-06-06 20:24:58 UTC) #1
pbos-webrtc
PTAL, this is required to get rid of webrtc::VideoCodec and VideoCodecUnion (for encoders). Aiming to ...
4 years, 6 months ago (2016-06-06 20:27:05 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047513002/20001
4 years, 6 months ago (2016-06-06 20:27:22 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_arm64_rel/builds/8481)
4 years, 6 months ago (2016-06-06 21:31:32 UTC) #6
mflodman
Sorry, had these comments as drafts for several days :( https://codereview.webrtc.org/2047513002/diff/20001/webrtc/config.h File webrtc/config.h (right): https://codereview.webrtc.org/2047513002/diff/20001/webrtc/config.h#newcode125 ...
4 years, 6 months ago (2016-06-16 09:05:48 UTC) #7
pbos-webrtc
feedback: comment and rename parameters
4 years, 5 months ago (2016-07-13 08:43:44 UTC) #8
pbos-webrtc
Slow reply, PTAL. https://codereview.webrtc.org/2047513002/diff/20001/webrtc/config.h File webrtc/config.h (right): https://codereview.webrtc.org/2047513002/diff/20001/webrtc/config.h#newcode125 webrtc/config.h:125: class EncoderSpecificSettings : public rtc::RefCountInterface { ...
4 years, 5 months ago (2016-07-13 08:44:12 UTC) #9
pbos-webrtc
ping
4 years, 4 months ago (2016-08-01 19:24:09 UTC) #14
mflodman
Sorry for the post-vacation delay. https://codereview.webrtc.org/2047513002/diff/40001/webrtc/config.cc File webrtc/config.cc (right): https://codereview.webrtc.org/2047513002/diff/40001/webrtc/config.cc#newcode170 webrtc/config.cc:170: VideoCodecVP8* vp9_settings) const { ...
4 years, 4 months ago (2016-08-04 13:53:24 UTC) #15
pbos-webrtc
https://codereview.webrtc.org/2047513002/diff/40001/webrtc/config.cc File webrtc/config.cc (right): https://codereview.webrtc.org/2047513002/diff/40001/webrtc/config.cc#newcode170 webrtc/config.cc:170: VideoCodecVP8* vp9_settings) const { On 2016/08/04 13:53:23, mflodman wrote: ...
4 years, 4 months ago (2016-08-08 20:42:22 UTC) #16
pbos-webrtc
feedback
4 years, 4 months ago (2016-08-08 20:42:24 UTC) #17
perkj_webrtc
I think this should be landed. Ping Magnus and Stefan! pbos- do you want to ...
4 years, 3 months ago (2016-09-06 09:42:20 UTC) #19
pbos-webrtc
On 2016/09/06 09:42:20, perkj_webrtc wrote: > I think this should be landed. > Ping Magnus ...
4 years, 3 months ago (2016-09-06 21:22:41 UTC) #20
kthelgason
On 2016/09/06 21:22:41, pbos-webrtc wrote: > Sure I can finish this off, I'll rebase once ...
4 years, 3 months ago (2016-09-07 07:16:46 UTC) #21
perkj_webrtc
Magnus, pbos- pretty ping!. I think this can be landed as is and we later ...
4 years, 3 months ago (2016-09-14 09:51:31 UTC) #22
pbos-webrtc
On 2016/09/14 09:51:31, perkj_webrtc wrote: > Magnus, pbos- pretty ping!. > > I think this ...
4 years, 3 months ago (2016-09-14 15:37:33 UTC) #23
pbos-webrtc
4 years, 3 months ago (2016-09-16 18:53:01 UTC) #24
On 2016/09/14 15:37:33, pbos-webrtc wrote:
> On 2016/09/14 09:51:31, perkj_webrtc wrote:
> > Magnus, pbos- pretty ping!.
> > 
> > I think this can be landed as is and we later address my comment unless pbos
> > wants to do it now.
> > 
> > https://codereview.webrtc.org/2047513002/diff/60001/webrtc/config.h
> > File webrtc/config.h (right):
> > 
> >
https://codereview.webrtc.org/2047513002/diff/60001/webrtc/config.h#newcode134
> > webrtc/config.h:134: class EncoderSpecificSettings : public
> > rtc::RefCountInterface {
> > I really think this should be landed. But I think specifics_ must be
copyable
> > and encoder_specific_settings should be stored in a std::unique_ptr<>. No
need
> > for ref counting as far as I can see. Note that VideoEncoderConfig has a
copy
> > method that needs to be updated.
> 
> Kari has agreed to take this over and push for a faster review (thanks!). I'll
> remove this review when he has a CL up, which should be tomorrow or Friday.

Superseded by https://codereview.webrtc.org/2347843002/.

Powered by Google App Engine
This is Rietveld 408576698