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

Issue 2521203002: Move VideoDecoder::Create() logic to separate internal video decoder factory (Closed)

Created:
4 years, 1 month ago by magjed_webrtc
Modified:
4 years ago
Reviewers:
stefan-webrtc
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, the sun, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Move VideoDecoder::Create() logic to separate internal video decoder factory The goal with this CL is to move implementation details out from the webrtc root (webrtc/video_decoder.h) to simplify the dependency graph. Another goal is to streamline the creation of VideoDecoders in webrtcvideoengine2.cc; it will now have two factories of the same WebRtcVideoDecoderFactory type, one internal and one external. Specifically, this CL: * Removes webrtc::VideoDecoder::DecoderType and use webrtc::VideoCodecType instead. * Removes 'static VideoDecoder* Create(DecoderType codec_type)' and moves the create function to the internal decoder factory instead. * Removes video_decoder.cc. webrtc::VideoDecoder is now just an interface without any static functions. BUG=webrtc:6743 Committed: https://crrev.com/dd40702357dbd09e4468eee295193f9fd4a7da7b Cr-Commit-Position: refs/heads/master@{#15350}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Add unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -301 lines) Patch
M webrtc/media/BUILD.gn View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A + webrtc/media/engine/internaldecoderfactory.h View 1 chunk +14 lines, -41 lines 0 comments Download
A + webrtc/media/engine/internaldecoderfactory.cc View 2 chunks +65 lines, -53 lines 0 comments Download
A + webrtc/media/engine/internaldecoderfactory_unittest.cc View 1 2 1 chunk +9 lines, -49 lines 0 comments Download
M webrtc/media/engine/videodecodersoftwarefallbackwrapper.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/engine/videodecodersoftwarefallbackwrapper.cc View 2 chunks +6 lines, -23 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 2 chunks +6 lines, -19 lines 0 comments Download
M webrtc/test/encoder_settings.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M webrtc/video/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D webrtc/video/video_decoder.cc View 1 chunk +0 lines, -78 lines 0 comments Download
M webrtc/video_decoder.h View 2 chunks +0 lines, -32 lines 0 comments Download

Messages

Total messages: 31 (23 generated)
magjed_webrtc
Stefan - please take a look.
4 years, 1 month ago (2016-11-22 10:45:18 UTC) #16
magjed_webrtc
Stefan - ping.
4 years ago (2016-11-28 11:32:25 UTC) #17
stefan-webrtc
I would prefer if you included an OWNER of webrtc/media since I'm not. However, I ...
4 years ago (2016-11-29 16:07:37 UTC) #18
magjed_webrtc
I'm an owner of webrtc/media so it should be fine. https://codereview.webrtc.org/2521203002/diff/60001/webrtc/media/engine/internaldecoderfactory.h File webrtc/media/engine/internaldecoderfactory.h (right): https://codereview.webrtc.org/2521203002/diff/60001/webrtc/media/engine/internaldecoderfactory.h#newcode20 ...
4 years ago (2016-11-30 16:18:48 UTC) #21
stefan-webrtc
On 2016/11/30 16:18:48, magjed_webrtc wrote: > I'm an owner of webrtc/media so it should be ...
4 years ago (2016-11-30 16:22:22 UTC) #22
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/2521203002/80001
4 years ago (2016-12-01 08:25:53 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years ago (2016-12-01 08:27:31 UTC) #29
commit-bot: I haz the power
4 years ago (2016-12-01 08:27:43 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/dd40702357dbd09e4468eee295193f9fd4a7da7b
Cr-Commit-Position: refs/heads/master@{#15350}

Powered by Google App Engine
This is Rietveld 408576698