Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
| 2 * Use of this source code is governed by a BSD-style license that can be | |
| 3 * found in the LICENSE file. | |
| 4 */ | |
| 5 | |
| 6 /** | |
| 7 * This file defines the <code>PPP_ImageCapture_Private</code> interface. | |
| 8 */ | |
| 9 | |
| 10 [generate_thunk] | |
| 11 | |
| 12 label Chrome { | |
| 13 M39 = 0.1 | |
| 14 }; | |
| 15 | |
| 16 /** | |
| 17 * PPP_ImageCapture_Private structure contains the function pointers that the | |
| 18 * plugin MUST implement to provide services needed by the image capture | |
| 19 * implementation. | |
|
Justin Chuang
2014/08/03 10:46:45
I am not familiar with PPAPI, but I suspect it sho
wuchengli
2014/08/06 08:14:58
Good idea. This patchset is similar to PPP_VideoDe
| |
| 20 * | |
| 21 * See PPB_ImageCapture_Private for general usage tips. | |
| 22 */ | |
| 23 interface PPP_ImageCapture_Private { | |
| 24 /** | |
| 25 * Callback function for <code>PPB_ImageCapture_Private.TakePhoto</code>. | |
| 26 * Called as near as possible to the moment when a photo is captured from the | |
| 27 * sensor. This is a good opportunity to play a shutter sound or give other | |
| 28 * feedback of camera operation. This may be some time after the photo was | |
|
Pawel Osciak
2014/08/03 08:34:38
s/may be some time/will occur/
wuchengli
2014/08/06 08:14:58
Done.
| |
| 29 * triggered, but some time before the actual data is available. | |
|
Pawel Osciak
2014/08/03 08:34:38
s/some time//
Pawel Osciak
2014/08/03 08:34:39
s/triggered/captured/ I assume?
wuchengli
2014/08/06 08:14:58
Done.
wuchengli
2014/08/06 08:14:58
Done.
| |
| 30 * | |
| 31 * Parameters: | |
| 32 * |instance| the plugin instance to which the callback is responding. | |
| 33 * |image_capture| the PPB_ImageCapture_Private resource. | |
| 34 * |sequence_id| The sequence ID of the image capture, same as the one from | |
| 35 * TakePhoto. | |
| 36 */ | |
| 37 void OnShutter( | |
| 38 [in] PP_Instance instance, | |
| 39 [in] PP_Resource image_capture, | |
| 40 [in] int64_t sequence_id); | |
| 41 | |
| 42 /** | |
| 43 * Callback function for <code>PPB_ImageCapture_Private.TakePhoto</code>. | |
| 44 * Called for the camera to deliver a postview picture. The client can use | |
| 45 * this to show the captured photo. The format and the size are decided | |
| 46 * by the associated MediaStream video tracks. Call | |
| 47 * <code>PPB_VideoFrame</code> functions to know the exact format and size. | |
| 48 * | |
| 49 * Parameters: | |
| 50 * |instance| the plugin instance to which the callback is responding. | |
| 51 * |image_capture| the PPB_ImageCapture_Private resource. | |
| 52 * |postview| A <code>PP_Resource</code> corresponding to a VideoFrame | |
| 53 * resource used to store the postview picture. | |
| 54 * |sequence_id| The sequence ID of the image capture, same as the one from | |
| 55 * TakePhoto. | |
| 56 */ | |
| 57 void OnPostviewPicture( | |
| 58 [in] PP_Instance instance, | |
| 59 [in] PP_Resource image_capture, | |
| 60 [in] PP_Resource postview, | |
|
Pawel Osciak
2014/08/03 08:34:38
What's the format? How is this returned after use?
Justin Chuang
2014/08/03 10:46:45
The format should be similar to PPB_MediaStreamVid
wuchengli
2014/08/06 08:14:58
Several media stream video tracks can be associate
Justin Chuang
2014/08/07 03:34:46
Can you elaborate the relationship between the *Pr
| |
| 61 [in] int64_t sequence_id); | |
| 62 | |
| 63 /** | |
| 64 * Callback function for <code>PPB_ImageCapture_Private.TakePhoto</code>. | |
| 65 * Called for the camera to deliver a Jpeg picture. | |
| 66 * | |
| 67 * Parameters: | |
| 68 * |instance| the plugin instance to which the callback is responding. | |
| 69 * |image_capture| the PPB_ImageCapture_Private resource. | |
| 70 * |jpeg| A <code>PP_Resource</code> corresponding to a VideoFrame | |
| 71 * resource used to store the postview picture. | |
| 72 * |sequence_id| The sequence ID of the image capture, same as the one from | |
| 73 * TakePhoto. | |
| 74 */ | |
| 75 void OnJpegPicture( | |
| 76 [in] PP_Instance instance, | |
| 77 [in] PP_Resource image_capture, | |
| 78 [in] PP_Resource jpeg, | |
| 79 [in] int64_t sequence_id); | |
| 80 }; | |
| OLD | NEW |