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

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

Issue 1681613002: Remove MediaCodecBridge::GetOutputBuffersCount() and GetOutputBuffersCapacity() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments Created 4 years, 10 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
« no previous file with comments | « media/base/android/media_codec_bridge.cc ('k') | media/base/android/sdk_media_codec_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 MediaCodecStatus DequeueInputBuffer(const base::TimeDelta& timeout, 53 MediaCodecStatus DequeueInputBuffer(const base::TimeDelta& timeout,
54 int* index) override; 54 int* index) override;
55 MediaCodecStatus DequeueOutputBuffer(const base::TimeDelta& timeout, 55 MediaCodecStatus DequeueOutputBuffer(const base::TimeDelta& timeout,
56 int* index, 56 int* index,
57 size_t* offset, 57 size_t* offset,
58 size_t* size, 58 size_t* size,
59 base::TimeDelta* presentation_time, 59 base::TimeDelta* presentation_time,
60 bool* end_of_stream, 60 bool* end_of_stream,
61 bool* key_frame) override; 61 bool* key_frame) override;
62 void ReleaseOutputBuffer(int index, bool render) override; 62 void ReleaseOutputBuffer(int index, bool render) override;
63 int GetOutputBuffersCount() override;
64 size_t GetOutputBuffersCapacity() override;
65 void GetInputBuffer(int input_buffer_index, 63 void GetInputBuffer(int input_buffer_index,
66 uint8_t** data, 64 uint8_t** data,
67 size_t* capacity) override; 65 size_t* capacity) override;
68 bool CopyFromOutputBuffer(int index, 66 bool CopyFromOutputBuffer(int index,
69 size_t offset, 67 size_t offset,
70 void* dst, 68 void* dst,
71 int dst_size) override; 69 int dst_size) override;
72 70
73 static bool RegisterSdkMediaCodecBridge(JNIEnv* env); 71 static bool RegisterSdkMediaCodecBridge(JNIEnv* env);
74 72
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 VideoCodecBridge(const std::string& mime, 188 VideoCodecBridge(const std::string& mime,
191 bool is_secure, 189 bool is_secure,
192 MediaCodecDirection direction); 190 MediaCodecDirection direction);
193 191
194 int adaptive_playback_supported_for_testing_; 192 int adaptive_playback_supported_for_testing_;
195 }; 193 };
196 194
197 } // namespace media 195 } // namespace media
198 196
199 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ 197 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_
OLDNEW
« no previous file with comments | « media/base/android/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