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

Issue 391323002: Pepper: add Image Capture interfaces. (Closed)

Created:
6 years, 5 months ago by wuchengli
Modified:
6 years, 4 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, raymes+watch_chromium.org, teravest+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Pepper: add Image Capture interfaces. API proposal: https://docs.google.com/a/chromium.org/document/d/1deeCrsvT9xA77UP4yWMhqbHgS3FvYCTF_8meIMQRrDo/edit# BUG=387547 TEST=Build chrome, run PPAPITest, and run an app that uses ppapi. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290186

Patch Set 1 : #

Total comments: 8

Patch Set 2 : add PP_ImageCaptureConfig and PP_ImageCaptureCapabilities #

Total comments: 17

Patch Set 3 : move to private, add PPP_ImageCapture, and address comments #

Total comments: 38

Patch Set 4 : address comments, generate c and thunk files #

Patch Set 5 : rebase #

Total comments: 46

Patch Set 6 : address review comments #

Total comments: 18

Patch Set 7 : address comments #

Total comments: 2

Patch Set 8 : add c++ wrappers and remove message loop #

Total comments: 10

Patch Set 9 : update comments #

Total comments: 44

Patch Set 10 : address review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1650 lines, -0 lines) Patch
A ppapi/api/private/ppb_camera_capabilities_private.idl View 1 2 3 4 5 6 7 8 1 chunk +85 lines, -0 lines 0 comments Download
A ppapi/api/private/ppb_image_capture_config_private.idl View 1 2 3 4 5 6 7 1 chunk +101 lines, -0 lines 0 comments Download
A ppapi/api/private/ppb_image_capture_private.idl View 1 2 3 4 5 6 7 1 chunk +259 lines, -0 lines 0 comments Download
A ppapi/c/private/ppb_camera_capabilities_private.h View 1 2 3 4 5 6 7 8 1 chunk +106 lines, -0 lines 0 comments Download
A ppapi/c/private/ppb_image_capture_config_private.h View 1 2 3 4 5 6 7 1 chunk +115 lines, -0 lines 0 comments Download
A ppapi/c/private/ppb_image_capture_private.h View 1 2 3 4 5 6 7 1 chunk +282 lines, -0 lines 0 comments Download
A ppapi/cpp/private/camera_capabilities_private.h View 1 2 3 4 5 6 7 8 9 1 chunk +83 lines, -0 lines 0 comments Download
A ppapi/cpp/private/image_capture_config_private.h View 1 2 3 4 5 6 7 8 9 1 chunk +99 lines, -0 lines 0 comments Download
A ppapi/cpp/private/image_capture_private.h View 1 2 3 4 5 6 7 8 9 1 chunk +179 lines, -0 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 8 chunks +66 lines, -0 lines 0 comments Download
M ppapi/tests/all_c_includes.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/tests/all_cpp_includes.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_camera_capabilities_private_thunk.cc View 1 2 3 4 5 6 7 1 chunk +70 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_image_capture_config_private_thunk.cc View 1 2 3 4 5 6 7 1 chunk +84 lines, -0 lines 2 comments Download
A ppapi/thunk/ppb_image_capture_private_thunk.cc View 1 2 3 4 5 6 7 1 chunk +115 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (0 generated)
wuchengli
This is a draft. Please take a look before I go deep down the road. ...
6 years, 5 months ago (2014-07-16 06:27:13 UTC) #1
chromium-reviews
Are you planning to send an API proposal out for this? Thanks! To unsubscribe from ...
6 years, 5 months ago (2014-07-16 06:56:32 UTC) #2
wuchengli
On 2014/07/16 06:56:32, chromium-reviews wrote: > Are you planning to send an API proposal out ...
6 years, 5 months ago (2014-07-16 07:45:55 UTC) #3
Owen Lin
https://codereview.chromium.org/391323002/diff/40001/ppapi/api/ppb_image_capture.idl File ppapi/api/ppb_image_capture.idl (right): https://codereview.chromium.org/391323002/diff/40001/ppapi/api/ppb_image_capture.idl#newcode42 ppapi/api/ppb_image_capture.idl:42: * Sets the configuration of the photos and the ...
6 years, 5 months ago (2014-07-16 08:20:45 UTC) #4
dmichael (off chromium)
The extra resources for Capabilities and Config might be overkill. You could consider just PP_ ...
6 years, 5 months ago (2014-07-16 23:10:54 UTC) #5
wuchengli
On 2014/07/16 23:10:54, dmichael wrote: > The extra resources for Capabilities and Config might be ...
6 years, 5 months ago (2014-07-17 14:05:23 UTC) #6
wuchengli
https://codereview.chromium.org/391323002/diff/100001/ppapi/api/ppb_image_capture.idl File ppapi/api/ppb_image_capture.idl (right): https://codereview.chromium.org/391323002/diff/100001/ppapi/api/ppb_image_capture.idl#newcode28 ppapi/api/ppb_image_capture.idl:28: PP_Resource Create([in] PP_Resource media_stream_video_track); On 2014/07/16 23:10:54, dmichael wrote: ...
6 years, 5 months ago (2014-07-17 14:05:47 UTC) #7
dmichael (off chromium)
I wanted to let you know that I'm starting to talk to some people about ...
6 years, 5 months ago (2014-07-18 03:05:06 UTC) #8
wuchengli
On 2014/07/18 03:05:06, dmichael wrote: > I wanted to let you know that I'm starting ...
6 years, 5 months ago (2014-07-18 03:21:06 UTC) #9
dmichael (off chromium)
On 2014/07/18 03:21:06, wuchengli wrote: > On 2014/07/18 03:05:06, dmichael wrote: > > I wanted ...
6 years, 5 months ago (2014-07-18 22:04:32 UTC) #10
Justin Chuang
https://codereview.chromium.org/391323002/diff/100001/ppapi/api/ppb_image_capture.idl File ppapi/api/ppb_image_capture.idl (right): https://codereview.chromium.org/391323002/diff/100001/ppapi/api/ppb_image_capture.idl#newcode24 ppapi/api/ppb_image_capture.idl:24: * What happens if the video track is Close()-ed? ...
6 years, 5 months ago (2014-07-21 17:34:56 UTC) #11
wuchengli
PTAL https://codereview.chromium.org/391323002/diff/100001/ppapi/api/ppb_image_capture.idl File ppapi/api/ppb_image_capture.idl (right): https://codereview.chromium.org/391323002/diff/100001/ppapi/api/ppb_image_capture.idl#newcode24 ppapi/api/ppb_image_capture.idl:24: * On 2014/07/21 17:34:56, Justin Chuang wrote: > ...
6 years, 4 months ago (2014-07-29 03:24:50 UTC) #12
Owen Lin
https://codereview.chromium.org/391323002/diff/100001/ppapi/api/ppb_image_capture.idl File ppapi/api/ppb_image_capture.idl (right): https://codereview.chromium.org/391323002/diff/100001/ppapi/api/ppb_image_capture.idl#newcode24 ppapi/api/ppb_image_capture.idl:24: * I think we need stream on to take ...
6 years, 4 months ago (2014-07-29 03:34:43 UTC) #13
wuchengli
https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode52 ppapi/api/private/ppb_camera_capabilities_private.idl:52: [out] PP_Size[] jpeg_sizes); dmichael@ When I ran generator.py, there ...
6 years, 4 months ago (2014-07-29 05:34:27 UTC) #14
dmichael (off chromium)
https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode52 ppapi/api/private/ppb_camera_capabilities_private.idl:52: [out] PP_Size[] jpeg_sizes); On 2014/07/29 05:34:27, wuchengli wrote: > ...
6 years, 4 months ago (2014-07-29 23:07:05 UTC) #15
Pawel Osciak
https://chromiumcodereview.appspot.com/391323002/diff/140001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://chromiumcodereview.appspot.com/391323002/diff/140001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode39 ppapi/api/private/ppb_camera_capabilities_private.idl:39: * GetSupportedJpegSize() returns the supported Jpeg sizes for the ...
6 years, 4 months ago (2014-08-03 08:34:39 UTC) #16
Justin Chuang
https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppb_image_capture_config_private.idl File ppapi/api/private/ppb_image_capture_config_private.idl (right): https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppb_image_capture_config_private.idl#newcode60 ppapi/api/private/ppb_image_capture_config_private.idl:60: */ Can this method returns fail on wrong photo_size? ...
6 years, 4 months ago (2014-08-03 09:45:46 UTC) #17
Justin Chuang
Pawel, please check old Patch Set 2, ppb_image_capture.idl: Wucheng and Owen were discussing if we ...
6 years, 4 months ago (2014-08-03 10:46:45 UTC) #18
Justin Chuang
https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppb_image_capture_private.idl File ppapi/api/private/ppb_image_capture_private.idl (right): https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppb_image_capture_private.idl#newcode127 ppapi/api/private/ppb_image_capture_private.idl:127: [inout] int64_t sequence_id); Need a Close() method here.
6 years, 4 months ago (2014-08-03 11:12:48 UTC) #19
wuchengli
All done. PTAL. https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode39 ppapi/api/private/ppb_camera_capabilities_private.idl:39: * GetSupportedJpegSize() returns the supported Jpeg ...
6 years, 4 months ago (2014-08-06 08:14:58 UTC) #20
wuchengli
Hi Dave. PTAL.
6 years, 4 months ago (2014-08-06 08:23:16 UTC) #21
Justin Chuang
https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppp_image_capture_private.idl File ppapi/api/private/ppp_image_capture_private.idl (right): https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppp_image_capture_private.idl#newcode60 ppapi/api/private/ppp_image_capture_private.idl:60: [in] PP_Resource postview, On 2014/08/06 08:14:58, wuchengli wrote: > ...
6 years, 4 months ago (2014-08-07 03:34:46 UTC) #22
Justin Chuang
https://codereview.chromium.org/391323002/diff/260001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://codereview.chromium.org/391323002/diff/260001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode46 ppapi/api/private/ppb_camera_capabilities_private.idl:46: * @return An array of <code>PP_Size</code> corresondping to typo ...
6 years, 4 months ago (2014-08-07 04:27:28 UTC) #23
Justin Chuang
https://codereview.chromium.org/391323002/diff/260001/ppapi/c/private/ppb_camera_capabilities_private.h File ppapi/c/private/ppb_camera_capabilities_private.h (right): https://codereview.chromium.org/391323002/diff/260001/ppapi/c/private/ppb_camera_capabilities_private.h#newcode65 ppapi/c/private/ppb_camera_capabilities_private.h:65: struct PP_Size (*GetSupportedPreviewSizes[])(PP_Resource capabilities, The prototype is not generated ...
6 years, 4 months ago (2014-08-07 04:30:28 UTC) #24
Pawel Osciak
On 2014/07/29 03:34:43, Owen Lin wrote: > https://codereview.chromium.org/391323002/diff/100001/ppapi/api/ppb_image_capture.idl > File ppapi/api/ppb_image_capture.idl (right): > > https://codereview.chromium.org/391323002/diff/100001/ppapi/api/ppb_image_capture.idl#newcode24 ...
6 years, 4 months ago (2014-08-07 06:19:17 UTC) #25
Pawel Osciak
On 2014/07/29 03:24:50, wuchengli wrote: > PTAL > > https://codereview.chromium.org/391323002/diff/100001/ppapi/api/ppb_image_capture.idl > File ppapi/api/ppb_image_capture.idl (right): > ...
6 years, 4 months ago (2014-08-07 06:21:36 UTC) #26
Pawel Osciak
https://codereview.chromium.org/391323002/diff/260001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://codereview.chromium.org/391323002/diff/260001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode39 ppapi/api/private/ppb_camera_capabilities_private.idl:39: * GetSupportedPreviewSize() returns the supported preview sizes for the ...
6 years, 4 months ago (2014-08-07 06:22:46 UTC) #27
Owen Lin
https://codereview.chromium.org/391323002/diff/260001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://codereview.chromium.org/391323002/diff/260001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode18 ppapi/api/private/ppb_camera_capabilities_private.idl:18: * The <code>PPB_CameraCapabilities_Private</code> interface contains pointers to line too ...
6 years, 4 months ago (2014-08-07 07:45:05 UTC) #28
wuchengli
All done. PTAL. https://codereview.chromium.org/391323002/diff/260001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://codereview.chromium.org/391323002/diff/260001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode18 ppapi/api/private/ppb_camera_capabilities_private.idl:18: * The <code>PPB_CameraCapabilities_Private</code> interface contains pointers ...
6 years, 4 months ago (2014-08-07 15:33:56 UTC) #29
wuchengli
On 2014/08/07 03:34:46, Justin Chuang wrote: > https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppp_image_capture_private.idl > File ppapi/api/private/ppp_image_capture_private.idl (right): > > https://codereview.chromium.org/391323002/diff/140001/ppapi/api/private/ppp_image_capture_private.idl#newcode60 ...
6 years, 4 months ago (2014-08-07 15:47:07 UTC) #30
wuchengli
Dave. Please take a look. Since there's no c++ wrappers generator, I'll address most comments ...
6 years, 4 months ago (2014-08-08 09:29:55 UTC) #31
dmichael (off chromium)
lgtm: I think this is good enough to start implementing to. I did have a ...
6 years, 4 months ago (2014-08-08 21:13:06 UTC) #32
dmichael (off chromium)
By the way... what's the plan for displaying a continuous preview... i.e., so that the ...
6 years, 4 months ago (2014-08-08 21:23:07 UTC) #33
Justin Chuang
Looking good. Please check a bug in C interface. https://codereview.chromium.org/391323002/diff/280001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://codereview.chromium.org/391323002/diff/280001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode1 ppapi/api/private/ppb_camera_capabilities_private.idl:1: ...
6 years, 4 months ago (2014-08-11 08:32:36 UTC) #34
Justin Chuang
On 2014/08/11 08:32:36, Justin Chuang wrote: > I guess you want to generate something like: ...
6 years, 4 months ago (2014-08-11 08:40:15 UTC) #35
wuchengli
All done. PTAL. FYI. Autofocus will be added in a future CL. https://codereview.chromium.org/391323002/diff/280001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl ...
6 years, 4 months ago (2014-08-12 07:27:02 UTC) #36
wuchengli
If everything looks good, I'll add C++ wrapper in the next patchset. There's no C++ ...
6 years, 4 months ago (2014-08-12 07:28:14 UTC) #37
wuchengli
https://codereview.chromium.org/391323002/diff/300001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://codereview.chromium.org/391323002/diff/300001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode52 ppapi/api/private/ppb_camera_capabilities_private.idl:52: [out] PP_Size[] preview_sizes); As we discussed, [out] PP_Size[] (that ...
6 years, 4 months ago (2014-08-12 10:16:42 UTC) #38
Justin Chuang
I have no more comments from my side. (Leave l_g_t_m to others because I don't ...
6 years, 4 months ago (2014-08-12 11:44:12 UTC) #39
wuchengli
PTAL. I added c++ wrappers and removed message loop. Message loop looks complicated to use. ...
6 years, 4 months ago (2014-08-13 09:52:11 UTC) #40
Justin Chuang
Haven't finished C++ review. Some nits for C parts https://codereview.chromium.org/391323002/diff/340001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://codereview.chromium.org/391323002/diff/340001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode34 ppapi/api/private/ppb_camera_capabilities_private.idl:34: ...
6 years, 4 months ago (2014-08-14 03:23:46 UTC) #41
Justin Chuang
> Since the array is owned by PP_*Capabilities_Preview my typo s/_Preview/_Private/
6 years, 4 months ago (2014-08-14 03:24:44 UTC) #42
wuchengli
All done. PTAL. https://codereview.chromium.org/391323002/diff/340001/ppapi/api/private/ppb_camera_capabilities_private.idl File ppapi/api/private/ppb_camera_capabilities_private.idl (right): https://codereview.chromium.org/391323002/diff/340001/ppapi/api/private/ppb_camera_capabilities_private.idl#newcode34 ppapi/api/private/ppb_camera_capabilities_private.idl:34: On 2014/08/14 03:23:46, Justin Chuang wrote: ...
6 years, 4 months ago (2014-08-14 03:44:48 UTC) #43
Justin Chuang
https://codereview.chromium.org/391323002/diff/360001/ppapi/cpp/private/camera_capabilities_private.h File ppapi/cpp/private/camera_capabilities_private.h (right): https://codereview.chromium.org/391323002/diff/360001/ppapi/cpp/private/camera_capabilities_private.h#newcode40 ppapi/cpp/private/camera_capabilities_private.h:40: /// frames to a new video track, which will ...
6 years, 4 months ago (2014-08-14 16:33:46 UTC) #44
wuchengli
All done. PTAL. https://codereview.chromium.org/391323002/diff/360001/ppapi/cpp/private/camera_capabilities_private.h File ppapi/cpp/private/camera_capabilities_private.h (right): https://codereview.chromium.org/391323002/diff/360001/ppapi/cpp/private/camera_capabilities_private.h#newcode40 ppapi/cpp/private/camera_capabilities_private.h:40: /// frames to a new video ...
6 years, 4 months ago (2014-08-15 08:18:01 UTC) #45
Justin Chuang
lgtm lgtm May need to *_api.h https://codereview.chromium.org/391323002/diff/400001/ppapi/thunk/ppb_image_capture_config_private_thunk.cc File ppapi/thunk/ppb_image_capture_config_private_thunk.cc (right): https://codereview.chromium.org/391323002/diff/400001/ppapi/thunk/ppb_image_capture_config_private_thunk.cc#newcode13 ppapi/thunk/ppb_image_capture_config_private_thunk.cc:13: #include "ppapi/thunk/ppb_image_capture_config_api.h" Missing ...
6 years, 4 months ago (2014-08-15 09:39:39 UTC) #46
Justin Chuang
lgtm May need to *_api.h
6 years, 4 months ago (2014-08-15 09:39:42 UTC) #47
wuchengli
Submitting. https://codereview.chromium.org/391323002/diff/400001/ppapi/thunk/ppb_image_capture_config_private_thunk.cc File ppapi/thunk/ppb_image_capture_config_private_thunk.cc (right): https://codereview.chromium.org/391323002/diff/400001/ppapi/thunk/ppb_image_capture_config_private_thunk.cc#newcode13 ppapi/thunk/ppb_image_capture_config_private_thunk.cc:13: #include "ppapi/thunk/ppb_image_capture_config_api.h" On 2014/08/15 09:39:38, Justin Chuang wrote: ...
6 years, 4 months ago (2014-08-17 07:07:09 UTC) #48
wuchengli
The CQ bit was checked by wuchengli@chromium.org
6 years, 4 months ago (2014-08-17 07:07:15 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wuchengli@chromium.org/391323002/400001
6 years, 4 months ago (2014-08-17 07:08:16 UTC) #50
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-17 08:16:13 UTC) #51
Justin Chuang
On 2014/08/17 07:07:09, wuchengli wrote: > Submitting. > > https://codereview.chromium.org/391323002/diff/400001/ppapi/thunk/ppb_image_capture_config_private_thunk.cc > File ppapi/thunk/ppb_image_capture_config_private_thunk.cc (right): > ...
6 years, 4 months ago (2014-08-17 11:41:53 UTC) #52
commit-bot: I haz the power
6 years, 4 months ago (2014-08-17 17:20:35 UTC) #53
Message was sent while issue was closed.
Committed patchset #10 (400001) as 290186

Powered by Google App Engine
This is Rietveld 408576698