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

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

Issue 648613003: Add support for color formats negotiation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update per mcasas's comments. Created 6 years, 2 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_MEDIA_CODEC_BRIDGE_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_CODEC_BRIDGE_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_BRIDGE_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 MediaCodecDirection direction; 74 MediaCodecDirection direction;
75 }; 75 };
76 76
77 // Get a list of supported codecs. 77 // Get a list of supported codecs.
78 static std::vector<CodecsInfo> GetCodecsInfo(); 78 static std::vector<CodecsInfo> GetCodecsInfo();
79 79
80 // Get default codec name for |mime_type|. 80 // Get default codec name for |mime_type|.
81 static std::string GetDefaultCodecName(const std::string& mime_type, 81 static std::string GetDefaultCodecName(const std::string& mime_type,
82 MediaCodecDirection direction); 82 MediaCodecDirection direction);
83 83
84 // Get a list of encoder supported color formats for specified mime type.
xhwang 2014/10/13 17:37:35 nit: |mime_type| Can you add comments about how a
changbin 2014/10/15 02:17:10 Done.
85 static std::vector<int> GetEncoderColorFormats(const std::string& mime_type);
86
84 virtual ~MediaCodecBridge(); 87 virtual ~MediaCodecBridge();
85 88
86 // Resets both input and output, all indices previously returned in calls to 89 // Resets both input and output, all indices previously returned in calls to
87 // DequeueInputBuffer() and DequeueOutputBuffer() become invalid. 90 // DequeueInputBuffer() and DequeueOutputBuffer() become invalid.
88 // Please note that this clears all the inputs in the media codec. In other 91 // Please note that this clears all the inputs in the media codec. In other
89 // words, there will be no outputs until new input is provided. 92 // words, there will be no outputs until new input is provided.
90 // Returns MEDIA_CODEC_ERROR if an unexpected error happens, or Media_CODEC_OK 93 // Returns MEDIA_CODEC_ERROR if an unexpected error happens, or Media_CODEC_OK
91 // otherwise. 94 // otherwise.
92 MediaCodecStatus Reset(); 95 MediaCodecStatus Reset();
93 96
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 VideoCodecBridge(const std::string& mime, 291 VideoCodecBridge(const std::string& mime,
289 bool is_secure, 292 bool is_secure,
290 MediaCodecDirection direction); 293 MediaCodecDirection direction);
291 294
292 int adaptive_playback_supported_for_testing_; 295 int adaptive_playback_supported_for_testing_;
293 }; 296 };
294 297
295 } // namespace media 298 } // namespace media
296 299
297 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_BRIDGE_H_ 300 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698