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

Issue 2700113003: Add RTCVideoFrame init function from CVPixelBufferRef (Closed)

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

Description

Add RTCVideoFrame init function from CVPixelBufferRef Adds a public init function in RTCVideoFrame that makes it possible to create a frame from a CVPixelBufferRef. BUG=webrtc:7177 NOTRY=True Review-Url: https://codereview.webrtc.org/2700113003 Cr-Commit-Position: refs/heads/master@{#16746} Committed: https://chromium.googlesource.com/external/webrtc/+/c3c46246a92761334b372e833c7a0ee153171d6b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase, and add '(instancetype)new NS_UNAVAILABLE'. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -0 lines) Patch
M webrtc/sdk/objc/Framework/Classes/RTCVideoFrame.mm View 1 2 chunks +32 lines, -0 lines 0 comments Download
M webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h View 1 1 chunk +21 lines, -0 lines 2 comments Download

Depends on Patchset:

Messages

Total messages: 22 (16 generated)
magjed_webrtc
Daniela - please take a look.
3 years, 10 months ago (2017-02-17 13:10:50 UTC) #5
daniela-webrtc
LGTM https://codereview.webrtc.org/2700113003/diff/1/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h File webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h (right): https://codereview.webrtc.org/2700113003/diff/1/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h#newcode44 webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h:44: - (instancetype)init NS_UNAVAILABLE; Super nit: I know that ...
3 years, 10 months ago (2017-02-20 12:10:31 UTC) #8
magjed_webrtc
https://codereview.webrtc.org/2700113003/diff/1/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h File webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h (right): https://codereview.webrtc.org/2700113003/diff/1/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h#newcode44 webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h:44: - (instancetype)init NS_UNAVAILABLE; On 2017/02/20 12:10:31, denicija-webrtc wrote: > ...
3 years, 10 months ago (2017-02-20 16:59:03 UTC) #10
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/2700113003/20001
3 years, 10 months ago (2017-02-21 13:26:17 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/external/webrtc/+/c3c46246a92761334b372e833c7a0ee153171d6b
3 years, 10 months ago (2017-02-21 13:28:52 UTC) #20
tkchin_webrtc
3 years, 10 months ago (2017-02-22 00:01:18 UTC) #22
Message was sent while issue was closed.
https://codereview.webrtc.org/2700113003/diff/20001/webrtc/sdk/objc/Framework...
File webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h (right):

https://codereview.webrtc.org/2700113003/diff/20001/webrtc/sdk/objc/Framework...
webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h:53: - (instancetype)new
NS_UNAVAILABLE;
Did you mean + ?
Personally I don't think we need to disallow this everywhere. Intent should be
clear enough from disallowing init. Otherwise we always need to do this in every
file that has nontrivial ctor in addition to init.

https://codereview.webrtc.org/2700113003/diff/20001/webrtc/sdk/objc/Framework...
webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h:78: - (RTCVideoFrame
*)newI420VideoFrame;
there shouldn't be anything prefixed with "new" in ObjC land

i420VideoFrameCopy or something

Powered by Google App Engine
This is Rietveld 408576698