Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Unified Diff: ppapi/thunk/ppb_audio_encoder_api.h

Issue 1151973003: ppapi: implement PPB_AudioEncoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More Windows fixes in proxy code Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/thunk/ppb_audio_buffer_thunk.cc ('k') | ppapi/thunk/ppb_audio_encoder_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_audio_encoder_api.h
diff --git a/ppapi/thunk/ppb_audio_encoder_api.h b/ppapi/thunk/ppb_audio_encoder_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..68e13788c8f13b56db560bf35e16fdda6b3281ae
--- /dev/null
+++ b/ppapi/thunk/ppb_audio_encoder_api.h
@@ -0,0 +1,46 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_THUNK_AUDIO_ENCODER_API_H_
+#define PPAPI_THUNK_AUDIO_ENCODER_API_H_
+
+#include "ppapi/c/ppb_audio_encoder.h"
+#include "ppapi/thunk/ppapi_thunk_export.h"
+
+namespace ppapi {
+namespace thunk {
+
+class PPAPI_THUNK_EXPORT PPB_AudioEncoder_API {
+ public:
+ virtual ~PPB_AudioEncoder_API() {}
+
+ virtual int32_t GetSupportedProfiles(
+ const PP_ArrayOutput& output,
+ const scoped_refptr<TrackedCallback>& callback) = 0;
+ virtual int32_t Initialize(
+ uint32_t channels,
+ PP_AudioBuffer_SampleRate input_sample_rate,
+ PP_AudioBuffer_SampleSize input_sample_size,
+ PP_AudioProfile output_profile,
+ uint32_t initial_bitrate,
+ PP_HardwareAcceleration acceleration,
+ const scoped_refptr<TrackedCallback>& callback) = 0;
+ virtual int32_t GetNumberOfSamples() = 0;
+ virtual int32_t GetBuffer(PP_Resource* audio_buffer,
+ const scoped_refptr<TrackedCallback>& callback) = 0;
+ virtual int32_t Encode(PP_Resource audio_buffer,
+ const scoped_refptr<TrackedCallback>& callback) = 0;
+ virtual int32_t GetBitstreamBuffer(
+ PP_AudioBitstreamBuffer* bitstream_buffer,
+ const scoped_refptr<TrackedCallback>& callback) = 0;
+ virtual void RecycleBitstreamBuffer(
+ const PP_AudioBitstreamBuffer* bitstream_buffer) = 0;
+ virtual void RequestBitrateChange(uint32_t bitrate) = 0;
+ virtual void Close() = 0;
+};
+
+} // namespace thunk
+} // namespace ppapi
+
+#endif // PPAPI_THUNK_AUDIO_ENCODER_API_H_
« no previous file with comments | « ppapi/thunk/ppb_audio_buffer_thunk.cc ('k') | ppapi/thunk/ppb_audio_encoder_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698