Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ppapi / api / ppb_video_decoder.idl
index 848543c..c8c6945 100644 (file)
@@ -12,7 +12,8 @@
 label Chrome {
   /** Though not labeled 'channel=dev', 0.1 is a still a 'Dev' only API. */
   M36 = 0.1,
-  M39 = 0.2
+  M39 = 0.2,
+  M40 = 1.0
 };
 
 /**
@@ -182,6 +183,33 @@ interface PPB_VideoDecoder {
    */
   int32_t GetPicture(
       [in] PP_Resource video_decoder,
+      [out] PP_VideoPicture_0_1 picture,
+      [in] PP_CompletionCallback callback);
+
+  /**
+   * Gets the next picture from the decoder. The picture is valid after the
+   * decoder signals completion by returning PP_OK or running |callback|. The
+   * plugin can call GetPicture() again after the decoder signals completion.
+   * When the plugin is finished using the picture, it should return it to the
+   * system by calling RecyclePicture().
+   *
+   * @param[in] video_decoder A <code>PP_Resource</code> identifying the video
+   * decoder.
+   * @param[out] picture A <code>PP_VideoPicture</code> to hold the decoded
+   * picture.
+   * @param[in] callback A <code>PP_CompletionCallback</code> to be called on
+   * completion.
+   *
+   * @return An int32_t containing an error code from <code>pp_errors.h</code>.
+   * Returns PP_ERROR_FAILED if the decoder isn't initialized or if a Reset()
+   * call is pending.
+   * Returns PP_ERROR_INPROGRESS if there is another GetPicture() call pending.
+   * Returns PP_ERROR_ABORTED when Reset() is called, or if a call to Flush()
+   * completes while GetPicture() is pending.
+   */
+  [version = 1.0]
+  int32_t GetPicture(
+      [in] PP_Resource video_decoder,
       [out] PP_VideoPicture picture,
       [in] PP_CompletionCallback callback);