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 |
(...skipping 23 matching lines...) Expand all Loading... |
34 MEDIA_EXPORT bool PlatformHasVp9Support(); | 34 MEDIA_EXPORT bool PlatformHasVp9Support(); |
35 | 35 |
36 // Returns true if the unified media pipeline is enabled; the pipeline may still | 36 // Returns true if the unified media pipeline is enabled; the pipeline may still |
37 // not work for all codecs if HasPlatformDecoderSupport() is false. Please see | 37 // not work for all codecs if HasPlatformDecoderSupport() is false. Please see |
38 // MimeUtil for an exhaustive listing of supported codecs. | 38 // MimeUtil for an exhaustive listing of supported codecs. |
39 // | 39 // |
40 // TODO(dalecurtis): These methods are temporary and should be removed once the | 40 // TODO(dalecurtis): These methods are temporary and should be removed once the |
41 // unified media pipeline is supported everywhere. http://crbug.com/580626. | 41 // unified media pipeline is supported everywhere. http://crbug.com/580626. |
42 MEDIA_EXPORT bool IsUnifiedMediaPipelineEnabled(); | 42 MEDIA_EXPORT bool IsUnifiedMediaPipelineEnabled(); |
43 | 43 |
| 44 // Similar to IsUnifiedMediaPipelineEnabled() but will also return true if |
| 45 // MediaCodec is not available (allowing the unified pipeline to take over for |
| 46 // cases where existing pipeline has no support). As above, codecs requiring |
| 47 // platform support may not be available. |
| 48 MEDIA_EXPORT bool IsUnifiedMediaPipelineEnabledForMse(); |
| 49 |
44 // Returns whether the platform decoders are available for use. | 50 // Returns whether the platform decoders are available for use. |
45 // This includes decoders being available on the platform and accessible, such | 51 // This includes decoders being available on the platform and accessible, such |
46 // as via the GPU process. Should only be used for actual decoders | 52 // as via the GPU process. Should only be used for actual decoders |
47 // (e.g. MediaCodec) and not full-featured players (e.g. MediaPlayer). | 53 // (e.g. MediaCodec) and not full-featured players (e.g. MediaPlayer). |
48 MEDIA_EXPORT bool ArePlatformDecodersAvailable(); | 54 MEDIA_EXPORT bool ArePlatformDecodersAvailable(); |
49 #endif | 55 #endif |
50 | 56 |
51 } // namespace media | 57 } // namespace media |
52 | 58 |
53 #endif // MEDIA_BASE_MEDIA_H_ | 59 #endif // MEDIA_BASE_MEDIA_H_ |
OLD | NEW |