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

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

Issue 2681643006: Remove kDisableUnifiedMediaPipeline (Closed)
Patch Set: Addressed comments Created 3 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
OLDNEW
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 "build/build_config.h"
12 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
13 13
14 namespace media { 14 namespace media {
15 15
16 // Initializes media libraries (e.g. ffmpeg) as well as CPU specific media 16 // Initializes media libraries (e.g. ffmpeg) as well as CPU specific media
17 // features. 17 // features.
18 MEDIA_EXPORT void InitializeMediaLibrary(); 18 MEDIA_EXPORT void InitializeMediaLibrary();
19 19
20 #if defined(OS_ANDROID) 20 #if defined(OS_ANDROID)
21 // Tells the media library it has support for OS level decoders. Should only be 21 // Tells the media library it has support for OS level decoders. Should only be
22 // used for actual decoders (e.g. MediaCodec) and not full-featured players 22 // used for actual decoders (e.g. MediaCodec) and not full-featured players
23 // (e.g. MediaPlayer). 23 // (e.g. MediaPlayer).
24 MEDIA_EXPORT void EnablePlatformDecoderSupport(); 24 MEDIA_EXPORT void EnablePlatformDecoderSupport();
25 MEDIA_EXPORT bool HasPlatformDecoderSupport(); 25 MEDIA_EXPORT bool HasPlatformDecoderSupport();
26 26
27 // Indicates if the platform supports Opus. Determined *ONLY* by the platform 27 // Indicates if the platform supports Opus. Determined *ONLY* by the platform
28 // version, so does not guarantee that either can actually be played. 28 // version, so does not guarantee that either can actually be played.
29 MEDIA_EXPORT bool PlatformHasOpusSupport(); 29 MEDIA_EXPORT bool PlatformHasOpusSupport();
30
31 // Returns true if the unified media pipeline is enabled; the pipeline may still
32 // not work for all codecs if HasPlatformDecoderSupport() is false. Please see
33 // MimeUtil for an exhaustive listing of supported codecs.
34 //
35 // TODO(dalecurtis): These methods are temporary and should be removed once the
36 // unified media pipeline is supported everywhere. http://crbug.com/580626.
37 MEDIA_EXPORT bool IsUnifiedMediaPipelineEnabled();
38
39 // Returns whether the platform decoders are available for use.
40 // This includes decoders being available on the platform and accessible, such
41 // as via the GPU process. Should only be used for actual decoders
42 // (e.g. MediaCodec) and not full-featured players (e.g. MediaPlayer).
43 MEDIA_EXPORT bool ArePlatformDecodersAvailable();
44 #endif 30 #endif
45 31
46 } // namespace media 32 } // namespace media
47 33
48 #endif // MEDIA_BASE_MEDIA_H_ 34 #endif // MEDIA_BASE_MEDIA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698