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 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)); }