OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_ANDROID_WEBAUDIO_MEDIA_CODEC_BRIDGE_H_ | 5 #ifndef MEDIA_BASE_ANDROID_WEBAUDIO_MEDIA_CODEC_BRIDGE_H_ |
6 #define MEDIA_BASE_ANDROID_WEBAUDIO_MEDIA_CODEC_BRIDGE_H_ | 6 #define MEDIA_BASE_ANDROID_WEBAUDIO_MEDIA_CODEC_BRIDGE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/file_descriptor_posix.h" | 12 #include "base/file_descriptor_posix.h" |
| 13 #include "base/macros.h" |
13 #include "base/memory/shared_memory.h" | 14 #include "base/memory/shared_memory.h" |
14 #include "media/base/media_export.h" | 15 #include "media/base/media_export.h" |
15 | 16 |
16 namespace media { | 17 namespace media { |
17 | 18 |
18 // This class serves as a bridge for native code to call Java | 19 // This class serves as a bridge for native code to call Java |
19 // functions in the Android MediaCodec class. See | 20 // functions in the Android MediaCodec class. See |
20 // http://developer.android.com/reference/android/media/MediaCodec.html. | 21 // http://developer.android.com/reference/android/media/MediaCodec.html. |
21 class MEDIA_EXPORT WebAudioMediaCodecBridge { | 22 class MEDIA_EXPORT WebAudioMediaCodecBridge { |
22 public: | 23 public: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 int pcm_output_; | 77 int pcm_output_; |
77 | 78 |
78 // The length of the encoded data. | 79 // The length of the encoded data. |
79 uint32_t data_size_; | 80 uint32_t data_size_; |
80 | 81 |
81 DISALLOW_COPY_AND_ASSIGN(WebAudioMediaCodecBridge); | 82 DISALLOW_COPY_AND_ASSIGN(WebAudioMediaCodecBridge); |
82 }; | 83 }; |
83 | 84 |
84 } // namespace media | 85 } // namespace media |
85 #endif // MEDIA_BASE_ANDROID_WEBAUDIO_MEDIA_CODEC_BRIDGE_H_ | 86 #endif // MEDIA_BASE_ANDROID_WEBAUDIO_MEDIA_CODEC_BRIDGE_H_ |
OLD | NEW |