extern static int _Initialize(PPResource video_encoder, PPVideoFrameFormat input_format, PPSize input_visible_size, PPVideoProfile output_profile, uint initial_bitrate, PPHardwareAcceleration acceleration, PPCompletionCallback callback);
/** * Initializes a video decoder resource. This should be called after Create() * and before any other functions. * * @param[in] video_decoder A <code>PP_Resource</code> identifying the video * decoder. * @param[in] graphics3d_context A <code>PPB_Graphics3D</code> resource to use * during decoding. * @param[in] profile A <code>PP_VideoProfile</code> specifying the video * codec profile. * @param[in] acceleration A <code>PP_HardwareAcceleration</code> specifying * whether to use a hardware accelerated or a software implementation. * @param[in] min_picture_count A count of pictures the plugin would like to * have in flight. This is effectively the number of times the plugin can * call GetPicture() and get a decoded frame without calling * RecyclePicture(). The decoder has its own internal minimum count, and will * take the larger of its internal and this value. A client that doesn't care * can therefore just pass in zero for this argument. * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon * completion. * * @return An int32_t containing an error code from <code>pp_errors.h</code>. * Returns PP_ERROR_NOTSUPPORTED if video decoding is not available, or the * requested profile is not supported. In this case, the client may call * Initialize() again with different parameters to find a good configuration. * Returns PP_ERROR_BADARGUMENT if the requested minimum picture count is * unreasonably large. */ public static int Initialize(PPResource video_decoder, PPResource graphics3d_context, PPVideoProfile profile, PPHardwareAcceleration acceleration, uint min_picture_count, PPCompletionCallback callback) { return(_Initialize(video_decoder, graphics3d_context, profile, acceleration, min_picture_count, callback)); }
/** * Initializes a video encoder resource. The plugin should call Initialize() * successfully before calling any of the functions below. * * @param[in] video_encoder A <code>PP_Resource</code> identifying the video * encoder. * @param[in] input_format The <code>PP_VideoFrame_Format</code> of the * frames which will be encoded. * @param[in] input_visible_size A <code>PP_Size</code> specifying the * dimensions of the visible part of the input frames. * @param[in] output_profile A <code>PP_VideoProfile</code> specifying the * codec profile of the encoded output stream. * @param[in] acceleration A <code>PP_HardwareAcceleration</code> specifying * whether to use a hardware accelerated or a software implementation. * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon * completion. * * @return An int32_t containing an error code from <code>pp_errors.h</code>. * Returns PP_ERROR_NOTSUPPORTED if video encoding is not available, or the * requested codec profile is not supported. */ public static int Initialize(PPResource video_encoder, PPVideoFrameFormat input_format, PPSize input_visible_size, PPVideoProfile output_profile, uint initial_bitrate, PPHardwareAcceleration acceleration, PPCompletionCallback callback) { return(_Initialize(video_encoder, input_format, input_visible_size, output_profile, initial_bitrate, acceleration, callback)); }
extern static int _Initialize(PPResource video_decoder, PPResource graphics3d_context, PPVideoProfile profile, PPHardwareAcceleration acceleration, uint min_picture_count, PPCompletionCallback callback);