Beispiel #1
0
 /**
  * Recycles a picture that the plugin has received from the decoder.
  * The plugin should call this as soon as it has finished using the texture so
  * the decoder can decode more pictures.
  *
  * @param[in] video_decoder A <code>PP_Resource</code> identifying the video
  * decoder.
  * @param[in] picture A <code>PP_VideoPicture</code> to return to
  * the decoder.
  */
 public static void RecyclePicture(PPResource video_decoder,
                                   PPVideoPicture picture)
 {
     _RecyclePicture(video_decoder, picture);
 }
Beispiel #2
0
 /**
  * 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.
  */
 public static int GetPicture(PPResource video_decoder,
                              out PPVideoPicture picture,
                              PPCompletionCallback callback)
 {
     return(_GetPicture(video_decoder, out picture, callback));
 }
Beispiel #3
0
 extern static void _RecyclePicture(PPResource video_decoder,
                                    PPVideoPicture picture);
Beispiel #4
0
 extern static int _GetPicture(PPResource video_decoder,
                               out PPVideoPicture picture,
                               PPCompletionCallback callback);