OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ppapi/proxy/audio_encoder_resource.h" |
| 6 |
| 7 namespace ppapi { |
| 8 namespace proxy { |
| 9 |
| 10 AudioEncoderResource::AudioEncoderResource(Connection connection, |
| 11 PP_Instance instance) |
| 12 : PluginResource(connection, instance) { |
| 13 } |
| 14 |
| 15 AudioEncoderResource::~AudioEncoderResource() { |
| 16 } |
| 17 |
| 18 thunk::PPB_AudioEncoder_API* AudioEncoderResource::AsPPB_AudioEncoder_API() { |
| 19 return this; |
| 20 } |
| 21 |
| 22 int32_t AudioEncoderResource::GetSupportedProfiles( |
| 23 const PP_ArrayOutput& output, |
| 24 const scoped_refptr<TrackedCallback>& callback) { |
| 25 return PP_ERROR_NOTSUPPORTED; |
| 26 } |
| 27 |
| 28 int32_t AudioEncoderResource::Initialize( |
| 29 uint32_t channels, |
| 30 PP_AudioBuffer_SampleRate input_sample_rate, |
| 31 PP_AudioBuffer_SampleSize input_sample_size, |
| 32 PP_AudioProfile output_profile, |
| 33 uint32_t initial_bitrate, |
| 34 PP_HardwareAcceleration acceleration, |
| 35 const scoped_refptr<TrackedCallback>& callback) { |
| 36 return PP_ERROR_NOTSUPPORTED; |
| 37 } |
| 38 |
| 39 int32_t AudioEncoderResource::GetNumberOfSamples() { |
| 40 return PP_ERROR_NOTSUPPORTED; |
| 41 } |
| 42 |
| 43 int32_t AudioEncoderResource::GetBuffer( |
| 44 PP_Resource* audio_buffer, |
| 45 const scoped_refptr<TrackedCallback>& callback) { |
| 46 return PP_ERROR_NOTSUPPORTED; |
| 47 } |
| 48 |
| 49 int32_t AudioEncoderResource::Encode( |
| 50 PP_Resource audio_buffer, |
| 51 const scoped_refptr<TrackedCallback>& callback) { |
| 52 return PP_ERROR_NOTSUPPORTED; |
| 53 } |
| 54 |
| 55 int32_t AudioEncoderResource::GetBitstreamBuffer( |
| 56 PP_AudioBitstreamBuffer* bitstream_buffer, |
| 57 const scoped_refptr<TrackedCallback>& callback) { |
| 58 return PP_ERROR_NOTSUPPORTED; |
| 59 } |
| 60 |
| 61 void AudioEncoderResource::RecycleBitstreamBuffer( |
| 62 const PP_AudioBitstreamBuffer* bitstream_buffer) { |
| 63 } |
| 64 |
| 65 void AudioEncoderResource::RequestBitrateChange(uint32_t bitrate) { |
| 66 } |
| 67 |
| 68 void AudioEncoderResource::Close() { |
| 69 } |
| 70 |
| 71 } // namespace proxy |
| 72 } // namespace ppapi |
OLD | NEW |