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

Side by Side Diff: media/base/android/sdk_media_codec_bridge.h

Issue 2047003003: Rename MediaCodecBridge::Reset() to Flush() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed a couple Created 4 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 unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « media/base/android/ndk_media_codec_bridge.cc ('k') | media/base/android/sdk_media_codec_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698