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

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 Pawel's comment, ptal. 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 |mime_type|.
85 // The mapping of color format name and its value refers to
86 // MediaCodecInfo.CodecCapabilities.
87 static std::set<int> GetEncoderColorFormats(const std::string& mime_type);
88
84 virtual ~MediaCodecBridge(); 89 virtual ~MediaCodecBridge();
85 90
86 // Resets both input and output, all indices previously returned in calls to 91 // Resets both input and output, all indices previously returned in calls to
87 // DequeueInputBuffer() and DequeueOutputBuffer() become invalid. 92 // DequeueInputBuffer() and DequeueOutputBuffer() become invalid.
88 // Please note that this clears all the inputs in the media codec. In other 93 // 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. 94 // 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 95 // Returns MEDIA_CODEC_ERROR if an unexpected error happens, or Media_CODEC_OK
91 // otherwise. 96 // otherwise.
92 MediaCodecStatus Reset(); 97 MediaCodecStatus Reset();
93 98
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 VideoCodecBridge(const std::string& mime, 293 VideoCodecBridge(const std::string& mime,
289 bool is_secure, 294 bool is_secure,
290 MediaCodecDirection direction); 295 MediaCodecDirection direction);
291 296
292 int adaptive_playback_supported_for_testing_; 297 int adaptive_playback_supported_for_testing_;
293 }; 298 };
294 299
295 } // namespace media 300 } // namespace media
296 301
297 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_BRIDGE_H_ 302 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_BRIDGE_H_
OLDNEW
« no previous file with comments | « media/base/android/java/src/org/chromium/media/MediaCodecBridge.java ('k') | media/base/android/media_codec_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698