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

Issue 2981583002: Reland of Injectable Obj-C video codecs (Closed)

Created:
3 years, 5 months ago by andersc
Modified:
3 years, 5 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Reland of Injectable Obj-C video codecs (patchset #1 id:1 of https://codereview.webrtc.org/2975963002/ ) Reason for revert: New CL for fixing the issues Original issue's description: > Revert of Injectable Obj-C video codecs (patchset #8 id:140001 of https://codereview.webrtc.org/2966023002/ ) > > Reason for revert: > Causes no video in certain scenarios. Please come up with a test plan or unit test to prevent such problems in the future. > > Original issue's description: > > Injectable Obj-C video codecs > > > > Initial CL for this effort, with a working RTCVideoEncoder/Decoder for H264 > > (wrapping the VideoToolbox codec). > > > > Some notes / things left to do: > > - There are some hard-coded references to codec types that are supported by > > webrtc::VideoCodec, cricket::VideoCodec, webrtc::CodecSpecificInfo etc > > since we need to convert to/from these types in ObjCVideoEncoder/Decoder. > > These types would need to be more codec agnostic to avoid this. > > - Most interfaces are borrowed from the design document for injectable > > codecs in Android. Some data in the corresponding C++ classes is discarded > > when converting to the Obj-C version, since it has fewer fields. I have not > > verified whether all data that we do keep is needed, or whether we might be > > losing anything useful in these conversions. > > - Implement the VideoToolbox codec code directly in the RTCVideoEncoderH264 > > classes, instead of wrapping webrtc::H264VideoToolboxEncoder / decoder. > > Eliminates converting between ObjC/C++ types outside the ObjCVideoEncoder/ > > Decoder wrapper classes. > > - List the injected codec factory's supported codecs in the list of codecs in > > AppRTCMobile. > > > > BUG=webrtc:7924 > > R=magjed@webrtc.org > > > > Review-Url: https://codereview.webrtc.org/2966023002 . > > Cr-Commit-Position: refs/heads/master@{#18928} > > Committed: https://chromium.googlesource.com/external/webrtc/+/a0349c138db62c52435be84b6c837f5f4758e264 > > TBR=magjed@webrtc.org,andersc@webrtc.org > # Not skipping CQ checks because original CL landed more than 1 days ago. > BUG=webrtc:7924 > NOTRY=true > > Review-Url: https://codereview.webrtc.org/2975963002 > Cr-Commit-Position: refs/heads/master@{#18979} > Committed: https://chromium.googlesource.com/external/webrtc/+/1095ada7ad56fe29b7b2bbc560a8f6475a7978ce R=magjed@webrtc.org TBR=tkchin@webrtc.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=webrtc:7924 Review-Url: https://codereview.webrtc.org/2981583002 . Cr-Commit-Position: refs/heads/master@{#19002} Committed: https://chromium.googlesource.com/external/webrtc/+/a5f1de1e6541de03f944bcbf49be87c01f57a18b

Patch Set 1 #

Patch Set 2 : Add failing regression unit tests #

Patch Set 3 : Fix tests by forwarding return values correctly. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1443 lines, -10 lines) Patch
M webrtc/sdk/BUILD.gn View 1 9 chunks +20 lines, -0 lines 0 comments Download
M webrtc/sdk/objc/Framework/Classes/Common/helpers.h View 1 4 chunks +4 lines, -4 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCEncodedImage.mm View 1 chunk +74 lines, -0 lines 0 comments Download
M webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm View 4 chunks +26 lines, -5 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCRtpFragmentationHeader.mm View 1 chunk +61 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoCodec.mm View 1 chunk +114 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoCodec+Private.h View 1 chunk +57 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm View 1 1 chunk +262 lines, -0 lines 0 comments Download
M webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm View 1 chunk +1 line, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/PeerConnection/objc_video_decoder_factory.h View 1 chunk +39 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/PeerConnection/objc_video_decoder_factory.mm View 1 2 1 chunk +124 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/PeerConnection/objc_video_encoder_factory.h View 1 chunk +41 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/PeerConnection/objc_video_encoder_factory.mm View 1 2 1 chunk +149 lines, -0 lines 0 comments Download
M webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h View 1 1 chunk +9 lines, -1 line 0 comments Download
A webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoCodec.h View 1 1 chunk +137 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoCodecFactory.h View 1 chunk +36 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoCodecH264.h View 1 chunk +47 lines, -0 lines 0 comments Download
M webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/sdk/objc/Framework/Headers/WebRTC/WebRTC.h View 1 chunk +3 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm View 1 1 chunk +103 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/UnitTests/objc_video_encoder_factory_tests.mm View 1 1 chunk +133 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
andersc
Created Reland of Injectable Obj-C video codecs
3 years, 5 months ago (2017-07-12 08:43:19 UTC) #1
andersc
This is the Injectable Obj-C codec CL again, but including fixes for forwarding the return ...
3 years, 5 months ago (2017-07-12 14:13:06 UTC) #7
jtt_webrtc
Seems to have fixed it.
3 years, 5 months ago (2017-07-12 20:41:00 UTC) #8
magjed_webrtc
lgtm
3 years, 5 months ago (2017-07-13 12:32:47 UTC) #9
andersc
Committed patchset #3 (id:400001) manually as a5f1de1e6541de03f944bcbf49be87c01f57a18b (presubmit successful).
3 years, 5 months ago (2017-07-13 14:04:06 UTC) #15
sprang_webrtc
A revert of this CL (patchset #3 id:400001) has been created in https://codereview.webrtc.org/2979973002/ by sprang@webrtc.org. ...
3 years, 5 months ago (2017-07-13 14:09:25 UTC) #16
tkchin_webrtc
Chuck, can you make a pass for style / naming?
3 years, 5 months ago (2017-07-13 21:17:00 UTC) #19
andersc
3 years, 5 months ago (2017-07-14 07:20:27 UTC) #20
Message was sent while issue was closed.
On 2017/07/13 21:17:00, tkchin_webrtc wrote:
> Chuck, can you make a pass for style / naming?

This CL was reverted due to a build file error, see instead:
https://codereview.webrtc.org/2979983002/

Powered by Google App Engine
This is Rietveld 408576698