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