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:a0349c138d> > 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:1095ada7adR=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}
This commit is contained in:
@ -310,6 +310,11 @@ if (is_ios || is_mac) {
|
||||
sources = [
|
||||
"objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory+Private.h",
|
||||
"objc/Framework/Classes/PeerConnection/RTCPeerConnectionFactory.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCVideoCodecH264.mm",
|
||||
"objc/Framework/Classes/PeerConnection/objc_video_decoder_factory.h",
|
||||
"objc/Framework/Classes/PeerConnection/objc_video_decoder_factory.mm",
|
||||
"objc/Framework/Classes/PeerConnection/objc_video_encoder_factory.h",
|
||||
"objc/Framework/Classes/PeerConnection/objc_video_encoder_factory.mm",
|
||||
]
|
||||
|
||||
public_configs = [ ":objc_common_config" ]
|
||||
@ -326,11 +331,16 @@ if (is_ios || is_mac) {
|
||||
":objc_peerconnectionfactory_base",
|
||||
":objc_video",
|
||||
":objc_videotoolbox",
|
||||
":objc_videotracksource",
|
||||
"../api:video_frame_api",
|
||||
"../api/video_codecs:video_codecs_api",
|
||||
"../base:rtc_base",
|
||||
"../media:rtc_audio_video",
|
||||
"../media:rtc_media_base",
|
||||
"../modules:module_api",
|
||||
"../pc:create_pc_factory",
|
||||
"../pc:peerconnection",
|
||||
"../system_wrappers:field_trial_api",
|
||||
]
|
||||
}
|
||||
|
||||
@ -377,6 +387,7 @@ if (is_ios || is_mac) {
|
||||
"objc/Framework/Classes/PeerConnection/RTCDataChannel.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration+Private.h",
|
||||
"objc/Framework/Classes/PeerConnection/RTCDataChannelConfiguration.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCEncodedImage.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCIceCandidate+Private.h",
|
||||
"objc/Framework/Classes/PeerConnection/RTCIceCandidate.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCIceServer+Private.h",
|
||||
@ -404,6 +415,7 @@ if (is_ios || is_mac) {
|
||||
"objc/Framework/Classes/PeerConnection/RTCRtpCodecParameters.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters+Private.h",
|
||||
"objc/Framework/Classes/PeerConnection/RTCRtpEncodingParameters.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCRtpFragmentationHeader.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCRtpParameters+Private.h",
|
||||
"objc/Framework/Classes/PeerConnection/RTCRtpParameters.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCRtpReceiver+Private.h",
|
||||
@ -415,6 +427,8 @@ if (is_ios || is_mac) {
|
||||
"objc/Framework/Classes/PeerConnection/RTCSessionDescription.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCTracing.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCVideoCapturer.m",
|
||||
"objc/Framework/Classes/PeerConnection/RTCVideoCodec+Private.h",
|
||||
"objc/Framework/Classes/PeerConnection/RTCVideoCodec.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm",
|
||||
"objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter+Private.h",
|
||||
"objc/Framework/Classes/PeerConnection/RTCVideoRendererAdapter.h",
|
||||
@ -476,6 +490,7 @@ if (is_ios || is_mac) {
|
||||
"../base:rtc_base",
|
||||
"../common_video",
|
||||
"../media:rtc_media_base",
|
||||
"../modules:module_api",
|
||||
"../pc:peerconnection",
|
||||
]
|
||||
}
|
||||
@ -501,6 +516,8 @@ if (is_ios || is_mac) {
|
||||
"objc/Framework/UnitTests/RTCSessionDescriptionTest.mm",
|
||||
"objc/Framework/UnitTests/RTCTracingTest.mm",
|
||||
"objc/Framework/UnitTests/avformatmappertests.mm",
|
||||
"objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm",
|
||||
"objc/Framework/UnitTests/objc_video_encoder_factory_tests.mm",
|
||||
]
|
||||
if (is_ios &&
|
||||
!(use_ios_simulator &&
|
||||
@ -553,6 +570,8 @@ if (is_ios || is_mac) {
|
||||
|
||||
common_objc_headers = [
|
||||
"objc/Framework/Headers/WebRTC/RTCAudioSession.h",
|
||||
"objc/Framework/Headers/WebRTC/RTCVideoCodec.h",
|
||||
"objc/Framework/Headers/WebRTC/RTCVideoCodecFactory.h",
|
||||
"objc/Framework/Headers/WebRTC/RTCAudioSessionConfiguration.h",
|
||||
"objc/Framework/Headers/WebRTC/RTCAVFoundationVideoSource.h",
|
||||
"objc/Framework/Headers/WebRTC/RTCAudioSource.h",
|
||||
@ -595,6 +614,7 @@ if (is_ios || is_mac) {
|
||||
"objc/Framework/Headers/WebRTC/RTCVideoTrack.h",
|
||||
"objc/Framework/Headers/WebRTC/RTCVideoViewShading.h",
|
||||
"objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h",
|
||||
"objc/Framework/Headers/WebRTC/RTCVideoCodecH264.h",
|
||||
"objc/Framework/Headers/WebRTC/WebRTC.h",
|
||||
]
|
||||
if (rtc_use_metal_rendering) {
|
||||
|
||||
Reference in New Issue
Block a user