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

Issue 2606983002: Media Capture Depth Stream Extensions API: focal length and depth range. (Closed)

Created:
3 years, 11 months ago by aleksandar.stojiljkovic
Modified:
3 years, 10 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, Srirama, imcheng+watch_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, dglazkov+blink, eric.carlson_apple.com, blink-reviews-api_chromium.org, haraken, feature-media-reviews_chromium.org, tommyw+watchlist_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, jasonroberts+watch_google.com, blink-reviews, xjz+watch_chromium.org, mlamouri+watch-blink_chromium.org, isheriff+watch_chromium.org, mcasas+watch+mediastream_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media Capture Depth Stream Extensions API: focal length and depth range. Under experimental MediaCaptureDepth feature, implements [1]: partial dictionary MediaTrackSettings { double depthNear; double depthFar; double focalLengthX; double focalLengthY; }; This patch adds the support for it to fake capture device only. [1] https://w3c.github.io/mediacapture-depth/#mediatracksettings-dictionary BUG=616098 Review-Url: https://codereview.chromium.org/2606983002 Cr-Commit-Position: refs/heads/master@{#448567} Committed: https://chromium.googlesource.com/chromium/src/+/9e1e3f73fc41ca1f8a5d42b3a418c286c2e39fac

Patch Set 1 #

Total comments: 18

Patch Set 2 : base::Optional and nits, thanks mcasas@. #

Total comments: 5

Patch Set 3 : review #25 fix. Thanks kinuko@. #

Total comments: 13

Patch Set 4 : Rebase. #29 fix. Thanks nasko@. #

Patch Set 5 : Add comments related to #31. Thanks mcasas@. #

Patch Set 6 : Added to MediaTrackSupportedConstraints and MediaTrackConstraintSet. Thanks mcasas@. #

Total comments: 4

Patch Set 7 : RuntimeEnabled=MediaCaptureDepth to MediaTrackSupportedConstraints.idl. Thanks guidou@ #

Total comments: 2

Patch Set 8 : rebase #

Patch Set 9 : move CameraCalibration traits from media/base/ipc to media/capture/ipc. #

Patch Set 10 : 80-char line fix in test html. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -43 lines) Patch
M content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 chunks +23 lines, -18 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/webrtc/webrtc_depth_capture_browsertest.cc View 1 2 3 4 5 2 chunks +36 lines, -0 lines 0 comments Download
M content/common/media/media_stream_messages.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/media_stream_request.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_track.cc View 1 2 3 4 5 6 7 1 chunk +31 lines, -23 lines 0 comments Download
M content/test/data/media/getusermedia-depth-capture.html View 1 2 3 4 5 6 7 8 9 1 chunk +80 lines, -0 lines 0 comments Download
M media/capture/ipc/capture_param_traits_macros.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M media/capture/video/fake_video_capture_device_factory.cc View 1 2 3 4 2 chunks +17 lines, -2 lines 0 comments Download
M media/capture/video/fake_video_capture_device_unittest.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
M media/capture/video/video_capture_device_descriptor.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaTrackSettings.idl View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaTrackSupportedConstraints.idl View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebMediaConstraints.cpp View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaConstraints.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaStreamTrack.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (34 generated)
aleksandar.stojiljkovic
mcasas@chromium.org: Please review changes in content/browser/renderer_host/media/video_capture_manager.* media/capture/video/* content/renderer/media/media_stream_video_track.cc kinuko@chromium.org: Please review changes in third_party/WebKit/Source/platform/* third_party/WebKit/public/* ...
3 years, 11 months ago (2016-12-29 13:22:37 UTC) #19
aleksandar.stojiljkovic
On 2016/12/29 13:22:37, aleksandar.stojiljkovic wrote: > mailto:mcasas@chromium.org: Please review changes in > content/browser/renderer_host/media/video_capture_manager.* > media/capture/video/* ...
3 years, 11 months ago (2017-01-02 11:38:14 UTC) #22
mcasas
https://codereview.chromium.org/2606983002/diff/120001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/2606983002/diff/120001/content/browser/renderer_host/media/media_stream_manager.cc#newcode1746 content/browser/renderer_host/media/media_stream_manager.cc:1746: } No {} for one-line bodies. https://codereview.chromium.org/2606983002/diff/120001/content/browser/renderer_host/media/media_stream_manager.cc#newcode1748 content/browser/renderer_host/media/media_stream_manager.cc:1748: if ...
3 years, 11 months ago (2017-01-05 01:09:32 UTC) #23
aleksandar.stojiljkovic
Patch Set 2 : #23 fix - base::Optional and nits, thanks mcasas@. base::Optional required change ...
3 years, 11 months ago (2017-01-09 18:47:01 UTC) #24
kinuko
https://codereview.chromium.org/2606983002/diff/140001/content/renderer/media/media_stream_video_track.cc File content/renderer/media/media_stream_video_track.cc (right): https://codereview.chromium.org/2606983002/diff/140001/content/renderer/media/media_stream_video_track.cc#newcode300 content/renderer/media/media_stream_video_track.cc:300: return; why don't we have this before line 298? ...
3 years, 11 months ago (2017-01-10 14:43:24 UTC) #25
aleksandar.stojiljkovic
Patch Set 3 : review #25 fix. Thanks kinuko@. + nasko@, PTAL at: content/common/media/media_stream_messages.h media/base/ipc/media_param_traits_macros.h ...
3 years, 11 months ago (2017-01-11 08:58:46 UTC) #27
aleksandar.stojiljkovic
https://codereview.chromium.org/2606983002/diff/140001/content/renderer/media/media_stream_video_track.cc File content/renderer/media/media_stream_video_track.cc (right): https://codereview.chromium.org/2606983002/diff/140001/content/renderer/media/media_stream_video_track.cc#newcode300 content/renderer/media/media_stream_video_track.cc:300: return; On 2017/01/11 08:58:46, aleksandar.stojiljkovic wrote: > On 2017/01/10 ...
3 years, 11 months ago (2017-01-11 09:32:18 UTC) #28
nasko
https://codereview.chromium.org/2606983002/diff/160001/content/common/media/media_stream_messages.h File content/common/media/media_stream_messages.h (right): https://codereview.chromium.org/2606983002/diff/160001/content/common/media/media_stream_messages.h#newcode57 content/common/media/media_stream_messages.h:57: IPC_STRUCT_TRAITS_MEMBER(device.camera_calibration) This should be before session_id, as it is ...
3 years, 11 months ago (2017-01-11 18:41:41 UTC) #29
aleksandar.stojiljkovic
PS#4: Rebase. #29 fix. Thanks nasko@. https://codereview.chromium.org/2606983002/diff/160001/content/common/media/media_stream_messages.h File content/common/media/media_stream_messages.h (right): https://codereview.chromium.org/2606983002/diff/160001/content/common/media/media_stream_messages.h#newcode57 content/common/media/media_stream_messages.h:57: IPC_STRUCT_TRAITS_MEMBER(device.camera_calibration) On 2017/01/11 ...
3 years, 11 months ago (2017-01-11 23:06:22 UTC) #30
mcasas
looking good, couple of comments. https://codereview.chromium.org/2606983002/diff/160001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc File content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/2606983002/diff/160001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc#newcode473 content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc:473: // Video device on ...
3 years, 11 months ago (2017-01-11 23:18:20 UTC) #31
aleksandar.stojiljkovic
PS#5 : Add comments related to #31. Thanks mcasas@. https://codereview.chromium.org/2606983002/diff/160001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc File content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/2606983002/diff/160001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc#newcode473 content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc:473: ...
3 years, 11 months ago (2017-01-12 14:13:59 UTC) #32
aleksandar.stojiljkovic
On 2017/01/12 14:13:59, aleksandar.stojiljkovic wrote: > PS#5 : Add comments related to #31. Thanks mcasas@. ...
3 years, 11 months ago (2017-01-20 22:18:49 UTC) #33
aleksandar.stojiljkovic
PS#6: Added to MediaTrackSupportedConstraints and MediaTrackConstraintSet. Thanks mcasas@. PTAL. The issues seems resolved now. Plan ...
3 years, 10 months ago (2017-01-29 18:45:34 UTC) #36
mcasas
lgtm guidou@ can you take a look as well at the MediaStream-lands? Thanks. https://codereview.chromium.org/2606983002/diff/280001/content/test/data/media/getusermedia-depth-capture.html File ...
3 years, 10 months ago (2017-01-30 15:10:15 UTC) #39
tommi (sloooow) - chröme
-myself as I think Guido will cover owner review as well.
3 years, 10 months ago (2017-01-30 15:15:26 UTC) #40
Guido Urdaneta
https://codereview.chromium.org/2606983002/diff/280001/third_party/WebKit/Source/modules/mediastream/MediaTrackSupportedConstraints.idl File third_party/WebKit/Source/modules/mediastream/MediaTrackSupportedConstraints.idl (right): https://codereview.chromium.org/2606983002/diff/280001/third_party/WebKit/Source/modules/mediastream/MediaTrackSupportedConstraints.idl#newcode29 third_party/WebKit/Source/modules/mediastream/MediaTrackSupportedConstraints.idl:29: boolean depthNear = true; Shouldn't these be behind the ...
3 years, 10 months ago (2017-02-01 12:38:48 UTC) #42
aleksandar.stojiljkovic
PS#7: RuntimeEnabled=MediaCaptureDepth to MediaTrackSupportedConstraints.idl. Thanks guidou@. https://codereview.chromium.org/2606983002/diff/280001/third_party/WebKit/Source/modules/mediastream/MediaTrackSupportedConstraints.idl File third_party/WebKit/Source/modules/mediastream/MediaTrackSupportedConstraints.idl (right): https://codereview.chromium.org/2606983002/diff/280001/third_party/WebKit/Source/modules/mediastream/MediaTrackSupportedConstraints.idl#newcode29 third_party/WebKit/Source/modules/mediastream/MediaTrackSupportedConstraints.idl:29: boolean depthNear = ...
3 years, 10 months ago (2017-02-02 12:43:41 UTC) #43
Guido Urdaneta
lgtm
3 years, 10 months ago (2017-02-02 12:50:48 UTC) #44
aleksandar.stojiljkovic
kinuko@, PTAL at: third_party/WebKit/Source/platform/* third_party/WebKit/public/* content/public/common/media_stream_request.h Thanks.
3 years, 10 months ago (2017-02-02 13:04:44 UTC) #45
kinuko
On 2017/02/02 13:04:44, aleksandar.stojiljkovic wrote: > kinuko@, PTAL at: > third_party/WebKit/Source/platform/* > third_party/WebKit/public/* > content/public/common/media_stream_request.h ...
3 years, 10 months ago (2017-02-03 00:07:08 UTC) #46
kinuko
https://codereview.chromium.org/2606983002/diff/300001/third_party/WebKit/public/platform/WebMediaStreamTrack.h File third_party/WebKit/public/platform/WebMediaStreamTrack.h (right): https://codereview.chromium.org/2606983002/diff/300001/third_party/WebKit/public/platform/WebMediaStreamTrack.h#newcode51 third_party/WebKit/public/platform/WebMediaStreamTrack.h:51: bool hasDepthFar() { return depthFar >= 0.0; } nit: ...
3 years, 10 months ago (2017-02-03 00:20:01 UTC) #47
nasko
IPC LGTM
3 years, 10 months ago (2017-02-03 05:30:13 UTC) #48
aleksandar.stojiljkovic
PS#9: move CameraCalibration traits from media/base/ipc to media/capture/ipc. kinuko@, nasko@, thanks. After rebase, I have ...
3 years, 10 months ago (2017-02-03 12:33:45 UTC) #51
aleksandar.stojiljkovic
a nit before submitting. https://codereview.chromium.org/2606983002/diff/280001/content/test/data/media/getusermedia-depth-capture.html File content/test/data/media/getusermedia-depth-capture.html (right): https://codereview.chromium.org/2606983002/diff/280001/content/test/data/media/getusermedia-depth-capture.html#newcode77 content/test/data/media/getusermedia-depth-capture.html:77: // tracks have them in ...
3 years, 10 months ago (2017-02-07 04:56:08 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2606983002/360001
3 years, 10 months ago (2017-02-07 04:57:15 UTC) #57
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 07:45:32 UTC) #60
Message was sent while issue was closed.
Committed patchset #10 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/9e1e3f73fc41ca1f8a5d42b3a418...

Powered by Google App Engine
This is Rietveld 408576698