| 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_SDK_MEDIA_CODEC_BRIDGE_H_ | 5 #ifndef MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ |
| 6 #define MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ | 6 #define MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "ui/gfx/geometry/size.h" | 22 #include "ui/gfx/geometry/size.h" |
| 23 | 23 |
| 24 namespace media { | 24 namespace media { |
| 25 | 25 |
| 26 // This class implements MediaCodecBridge using android MediaCodec SDK APIs. | 26 // This class implements MediaCodecBridge using android MediaCodec SDK APIs. |
| 27 class MEDIA_EXPORT SdkMediaCodecBridge : public MediaCodecBridge { | 27 class MEDIA_EXPORT SdkMediaCodecBridge : public MediaCodecBridge { |
| 28 public: | 28 public: |
| 29 ~SdkMediaCodecBridge() override; | 29 ~SdkMediaCodecBridge() override; |
| 30 | 30 |
| 31 // MediaCodecBridge implementations. | 31 // MediaCodecBridge implementations. |
| 32 MediaCodecStatus Reset() override; | |
| 33 bool Start() override; | 32 bool Start() override; |
| 34 void Stop() override; | 33 void Stop() override; |
| 34 MediaCodecStatus Flush() override; |
| 35 MediaCodecStatus GetOutputSize(gfx::Size* size) override; | 35 MediaCodecStatus GetOutputSize(gfx::Size* size) override; |
| 36 MediaCodecStatus GetOutputSamplingRate(int* sampling_rate) override; | 36 MediaCodecStatus GetOutputSamplingRate(int* sampling_rate) override; |
| 37 MediaCodecStatus GetOutputChannelCount(int* channel_count) override; | 37 MediaCodecStatus GetOutputChannelCount(int* channel_count) override; |
| 38 MediaCodecStatus QueueInputBuffer( | 38 MediaCodecStatus QueueInputBuffer( |
| 39 int index, | 39 int index, |
| 40 const uint8_t* data, | 40 const uint8_t* data, |
| 41 size_t data_size, | 41 size_t data_size, |
| 42 const base::TimeDelta& presentation_time) override; | 42 const base::TimeDelta& presentation_time) override; |
| 43 using MediaCodecBridge::QueueSecureInputBuffer; | 43 using MediaCodecBridge::QueueSecureInputBuffer; |
| 44 MediaCodecStatus QueueSecureInputBuffer( | 44 MediaCodecStatus QueueSecureInputBuffer( |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 VideoCodecBridge(const std::string& mime, | 203 VideoCodecBridge(const std::string& mime, |
| 204 bool is_secure, | 204 bool is_secure, |
| 205 MediaCodecDirection direction); | 205 MediaCodecDirection direction); |
| 206 | 206 |
| 207 int adaptive_playback_supported_for_testing_; | 207 int adaptive_playback_supported_for_testing_; |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 } // namespace media | 210 } // namespace media |
| 211 | 211 |
| 212 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ | 212 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ |
| OLD | NEW |