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

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

Issue 1690063002: Fix mime type mappings when the unified media pipeline is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify, test, rebase on split. Created 4 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 "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 #if defined(OS_ANDROID)
25 // Tells the media library it has support for OS level decoders.
ddorwin 2016/02/17 21:18:38 This only applies to MediaCodec, not MediaPlayer.
DaleCurtis 2016/02/18 03:58:08 Done.
26 MEDIA_EXPORT void EnablePlatformDecoderSupport();
27 MEDIA_EXPORT bool HasPlatformDecoderSupport();
28
29 // Returns true if the unified media pipeline is enabled; the pipeline may still
30 // not work for all codecs if HasPlatformDecoderSupport() is false. Please see
31 // MimeUtil for an exhaustive listing of supported codecs.
32 //
33 // TODO(dalecurtis): These methods are temporary and should be removed once the
34 // unified media pipeline is supported everywhere. http://crbug.com/580626.
35 MEDIA_EXPORT bool IsUnifiedMediaPipelineEnabled();
36
37 // Similar to IsUnifiedMediaPipelineEnabled() but will also return true if
38 // MediaCodec is not available (allowing the unified pipeline to take over for
39 // cases where existing pipeline has no support). As above, codecs requiring
40 // platform support may not be available.
41 MEDIA_EXPORT bool IsUnifiedMediaPipelineEnabledForMse();
42 #endif
43
23 } // namespace media 44 } // namespace media
24 45
25 #endif // MEDIA_BASE_MEDIA_H_ 46 #endif // MEDIA_BASE_MEDIA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698