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

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

Issue 1918623002: Use the MediaCodec flush workaround in more cases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TargetApi annotation Created 4 years, 5 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 bool* end_of_stream, 61 bool* end_of_stream,
62 bool* key_frame) override; 62 bool* key_frame) override;
63 void ReleaseOutputBuffer(int index, bool render) override; 63 void ReleaseOutputBuffer(int index, bool render) override;
64 MediaCodecStatus GetInputBuffer(int input_buffer_index, 64 MediaCodecStatus GetInputBuffer(int input_buffer_index,
65 uint8_t** data, 65 uint8_t** data,
66 size_t* capacity) override; 66 size_t* capacity) override;
67 MediaCodecStatus GetOutputBufferAddress(int index, 67 MediaCodecStatus GetOutputBufferAddress(int index,
68 size_t offset, 68 size_t offset,
69 const uint8_t** addr, 69 const uint8_t** addr,
70 size_t* capacity) override; 70 size_t* capacity) override;
71 std::string GetName() override;
71 72
72 static bool RegisterSdkMediaCodecBridge(JNIEnv* env); 73 static bool RegisterSdkMediaCodecBridge(JNIEnv* env);
73 74
74 protected: 75 protected:
75 SdkMediaCodecBridge(const std::string& mime, 76 SdkMediaCodecBridge(const std::string& mime,
76 bool is_secure, 77 bool is_secure,
77 MediaCodecDirection direction, 78 MediaCodecDirection direction,
78 bool require_software_codec); 79 bool require_software_codec);
79 80
80 jobject media_codec() { return j_media_codec_.obj(); } 81 jobject media_codec() { return j_media_codec_.obj(); }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 bool is_secure, 206 bool is_secure,
206 MediaCodecDirection direction, 207 MediaCodecDirection direction,
207 bool require_software_codec); 208 bool require_software_codec);
208 209
209 int adaptive_playback_supported_for_testing_; 210 int adaptive_playback_supported_for_testing_;
210 }; 211 };
211 212
212 } // namespace media 213 } // namespace media
213 214
214 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ 215 #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