OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "media/base/media_export.h" |
| 12 |
11 class FilePath; | 13 class FilePath; |
12 | 14 |
13 namespace media { | 15 namespace media { |
14 | 16 |
15 // Attempts to initialize the media library (loading DLLs, DSOs, etc.). | 17 // Attempts to initialize the media library (loading DLLs, DSOs, etc.). |
16 // | 18 // |
17 // If |module_dir| is the emptry string, then the system default library paths | 19 // If |module_dir| is the emptry string, then the system default library paths |
18 // are searched for the dynamic libraries. If a |module_dir| is provided, then | 20 // are searched for the dynamic libraries. If a |module_dir| is provided, then |
19 // only the specified |module_dir| will be searched for the dynamic libraries. | 21 // only the specified |module_dir| will be searched for the dynamic libraries. |
20 // | 22 // |
21 // If multiple initializations are attempted with different |module_dir|s | 23 // If multiple initializations are attempted with different |module_dir|s |
22 // specified then the first one to succeed remains effective for the lifetime | 24 // specified then the first one to succeed remains effective for the lifetime |
23 // of the process. | 25 // of the process. |
24 // | 26 // |
25 // Returns true if everything was successfully initialized, false otherwise. | 27 // Returns true if everything was successfully initialized, false otherwise. |
26 bool InitializeMediaLibrary(const FilePath& module_dir); | 28 MEDIA_EXPORT bool InitializeMediaLibrary(const FilePath& module_dir); |
27 | 29 |
28 // Use this if you need to check whether the media library is initialized | 30 // Use this if you need to check whether the media library is initialized |
29 // for the this process, without actually trying to initialize it. | 31 // for the this process, without actually trying to initialize it. |
30 bool IsMediaLibraryInitialized(); | 32 MEDIA_EXPORT bool IsMediaLibraryInitialized(); |
31 | 33 |
32 // Attempts to initialize OpenMAX library. | 34 // Attempts to initialize OpenMAX library. |
33 // | 35 // |
34 // Returns true if OpenMAX was successfully initialized and loaded. | 36 // Returns true if OpenMAX was successfully initialized and loaded. |
35 bool InitializeOpenMaxLibrary(const FilePath& module_dir); | 37 bool InitializeOpenMaxLibrary(const FilePath& module_dir); |
36 | 38 |
37 } // namespace media | 39 } // namespace media |
38 | 40 |
39 #endif // MEDIA_BASE_MEDIA_H_ | 41 #endif // MEDIA_BASE_MEDIA_H_ |
OLD | NEW |