OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Contains code that should be used for initializing, or querying the state | 5 // Contains code that should be used for initializing, or querying the state |
6 // of the media library as a whole. | 6 // of the media library as a whole. |
7 | 7 |
8 #ifndef MEDIA_BASE_MEDIA_H_ | 8 #ifndef MEDIA_BASE_MEDIA_H_ |
9 #define MEDIA_BASE_MEDIA_H_ | 9 #define MEDIA_BASE_MEDIA_H_ |
10 | 10 |
11 #include "build/build_config.h" | |
11 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 class FilePath; | 15 class FilePath; |
15 } | 16 } |
16 | 17 |
17 namespace media { | 18 namespace media { |
18 | 19 |
19 // Initializes media libraries (e.g. ffmpeg) as well as CPU specific media | 20 // Initializes media libraries (e.g. ffmpeg) as well as CPU specific media |
20 // features. | 21 // features. |
21 MEDIA_EXPORT void InitializeMediaLibrary(); | 22 MEDIA_EXPORT void InitializeMediaLibrary(); |
22 | 23 |
24 // Tells the media library it has support for OS level decoders. | |
25 MEDIA_EXPORT void EnablePlatformDecoderSupport(); | |
ddorwin
2016/02/16 20:34:37
This is only called for Android. Should these be i
DaleCurtis
2016/02/17 03:01:05
Done.
| |
26 MEDIA_EXPORT bool HasPlatformDecoderSupport(); | |
27 | |
28 #if defined(OS_ANDROID) | |
29 // TODO(dalecurtis): These methods are temporary and should be removed once the | |
30 // unified media pipeline is supported everywhere. http://crbug.com/580626. | |
31 MEDIA_EXPORT bool IsUnifiedMediaPipelineEnabled(); | |
ddorwin
2016/02/16 20:34:37
// Returns only whether the pipeline is enabled. I
DaleCurtis
2016/02/17 03:01:05
Done.
| |
32 MEDIA_EXPORT bool IsUnifiedMediaPipelineEnabledForMse(); | |
33 #endif | |
34 | |
23 } // namespace media | 35 } // namespace media |
24 | 36 |
25 #endif // MEDIA_BASE_MEDIA_H_ | 37 #endif // MEDIA_BASE_MEDIA_H_ |
OLD | NEW |