Index: ppapi/cpp/private/image_capture_private.h |
diff --git a/ppapi/cpp/private/image_capture_private.h b/ppapi/cpp/private/image_capture_private.h |
index 3230c6244a8c94615dc47da6dd2d8a2c1e24d89a..cea20c7ad8029a2821e526ad5f3c14713ffb62c9 100644 |
--- a/ppapi/cpp/private/image_capture_private.h |
+++ b/ppapi/cpp/private/image_capture_private.h |
@@ -17,7 +17,6 @@ namespace pp { |
class CameraCapabilities_Private; |
class CompletionCallback; |
-class ImageCaptureConfig_Private; |
class InstanceHandle; |
template <typename T> |
@@ -85,29 +84,6 @@ class ImageCapture_Private : public Resource { |
/// effect. |
void Close(); |
- /// Sets the configuration of the image capture. |
- /// If <code>SetConfig()</code> is not called, default settings will be used. |
- /// |
- /// @param[in] config A <code>ImageCaptureConfig_Private</code> object. |
- /// @param[in] callback <code>CompletionCallback</code> to be called upon |
- /// completion of <code>SetConfig()</code>. |
- /// |
- /// @return An int32_t containing a result code from <code>pp_errors.h</code>. |
- /// Returns <code>PP_ERROR_INPROGRESS</code> if there is a pending call of |
- /// <code>SetConfig()</code> or <code>CaptureStillImage()</code>. |
- /// If an error is returned, the configuration will not be changed. |
- int32_t SetConfig(const ImageCaptureConfig_Private& config, |
- const CompletionCallback& callback); |
- |
- /// Gets the configuration of the image capture. |
- /// |
- /// @param[in] callback A <code>CompletionCallbackWithOutput</code> |
- /// to be called upon completion. |
- /// |
- /// @return An int32_t containing a result code from <code>pp_errors.h</code>. |
- int32_t GetConfig( |
- const CompletionCallbackWithOutput<ImageCaptureConfig_Private>& callback); |
- |
/// Gets the camera capabilities. |
/// |
/// The camera capabilities do not change for a given camera source. |
@@ -119,57 +95,6 @@ class ImageCapture_Private : public Resource { |
int32_t GetCameraCapabilities( |
const CompletionCallbackWithOutput<CameraCapabilities_Private>& callback); |
- /// Captures a still JPEG image from the camera. |
- /// |
- /// Triggers an asynchronous image capture. The camera will initiate a series |
- /// of callbacks to the application as the image capture progresses. The |
- /// callbacks will be invoked in the order of shutter callback, preview |
- /// callback, and JPEG callback. The shutter callback occurs after the image |
- /// is captured. This can be used to trigger a sound to let the user know that |
- /// image has been captured. The preview callback occurs when a scaled, fully |
- /// processed preview image is available. The JPEG callback occurs when the |
- /// compressed image is available. If there is an error after the capture is |
- /// in progress, the error callback passed to <code> |
- /// ImageCapture_Private.Create()</code> will be invoked. All the callbacks |
- /// are invoked by the thread that calls this function. |
- /// |
- /// The size of the preview image in preview callback is determined by |
- /// <code>ImageCaptureConfig_Private.SetPreviewSize</code>. The format is |
- /// decided by the camera and can be got from <code>VideoFrame.GetFormat |
- /// </code>. The size of the JPEG image is determined by <code> |
- /// ImageCaptureConfig_Private.SetJpegSize</code>. |
- /// |
- /// The camera may need to stop and re-start streaming during image capture. |
- /// If some MediaStreamVideoTrack are associated with the camera source, they |
- /// will receive mute and unmute events. The mute event will be received |
- /// before all the callbacks. The unmute event will be received after all the |
- /// callbacks. The preview image will not be sent to the video tracks |
- /// associated with the camera. |
- /// |
- /// @param[in] shutter_callback A <code> |
- /// ImageCapture_Private_ShutterCallback</code> callback to indicate the |
- /// image has been taken. |
- /// @param[in] preview_callback A <code> |
- /// ImageCapture_Private_PreviewCallback</code> callback to return a |
- /// preview of the captured image. |
- /// @param[in] jpeg_callback A <code> |
- /// ImageCapture_Private_JpegCallback</code> callback to return captured |
- /// JPEG image. |
- /// @param[in] error_callback A <code>PPB_ImageCapture_Private_ErrorCallback |
- /// </code> callback to indicate <code>CaptureStillImage()</code> has failed. |
- /// @param[out] sequence_id The sequence ID is a unique monotonically |
- /// increasing value starting from 0, incremented every time a new request |
- /// like image capture is submitted. |
- /// |
- /// @return An int32_t containing a result code from <code>pp_errors.h</code>. |
- /// PP_OK means the callbacks will be triggered. Other values mean the |
- /// callbacks will not be triggered. |
- int32_t CaptureStillImage( |
- PPB_ImageCapture_Private_ShutterCallback shutter_callback, |
- PPB_ImageCapture_Private_PreviewCallback preview_callback, |
- PPB_ImageCapture_Private_JpegCallback jpeg_callback, |
- int64_t* sequence_id); |
- |
/// Determines if a resource is an image capture resource. |
/// |
/// @param[in] resource The <code>Resource</code> to test. |