Esempio n. 1
0
 /**
  * Gets the next encoded bitstream buffer from the encoder.
  *
  * @param[in] audio_encoder A <code>PP_Resource</code> identifying the audio
  * encoder.
  * @param[out] bitstream_buffer A <code>PP_BitstreamBuffer</code> containing
  * encoded audio data.
  * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
  * completion. The plugin can call GetBitstreamBuffer from the callback in
  * order to continuously "pull" bitstream buffers from the encoder.
  *
  * @return An int32_t containing an error code from <code>pp_errors.h</code>.
  * Returns PP_ERROR_FAILED if Initialize() has not successfully completed.
  * Returns PP_ERROR_INPROGRESS if a prior call to GetBitstreamBuffer() has
  * not completed.
  */
 public static int GetBitstreamBuffer(
     PPResource audio_encoder,
     out PPAudioBitstreamBuffer bitstream_buffer,
     PPCompletionCallback callback)
 {
     return(_GetBitstreamBuffer(audio_encoder, out bitstream_buffer, callback));
 }
Esempio n. 2
0
 /**
  * Recycles a bitstream buffer back to the encoder.
  *
  * @param[in] audio_encoder A <code>PP_Resource</code> identifying the audio
  * encoder.
  * @param[in] bitstream_buffer A <code>PP_BitstreamBuffer</code> that is no
  * longer needed by the plugin.
  */
 public static void RecycleBitstreamBuffer(
     PPResource audio_encoder,
     PPAudioBitstreamBuffer bitstream_buffer)
 {
     _RecycleBitstreamBuffer(audio_encoder, bitstream_buffer);
 }
Esempio n. 3
0
 extern static void _RecycleBitstreamBuffer(
     PPResource audio_encoder,
     PPAudioBitstreamBuffer bitstream_buffer);
Esempio n. 4
0
 extern static int _GetBitstreamBuffer(
     PPResource audio_encoder,
     out PPAudioBitstreamBuffer bitstream_buffer,
     PPCompletionCallback callback);