| OLD | NEW |
| 1 // Copyright (c) 2010 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 class FilePath; | 11 class FilePath; |
| 12 | 12 |
| 13 namespace media { | 13 namespace media { |
| 14 | 14 |
| 15 // Attempts to initialize the media library (loading DLLs, DSOs, etc.). | 15 // Attempts to initialize the media library (loading DLLs, DSOs, etc.). |
| 16 // |
| 16 // 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 |
| 17 // 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 |
| 18 // 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. |
| 19 // | 20 // |
| 20 // Returns true if everything was successfully initialized, false otherwise. | 21 // Returns true if everything was successfully initialized, false otherwise. |
| 21 bool InitializeMediaLibrary(const FilePath& module_dir); | 22 bool InitializeMediaLibrary(const FilePath& module_dir); |
| 22 | 23 |
| 23 // Attempts to initialize OpenMAX library. | 24 // Attempts to initialize OpenMAX library. |
| 24 // | 25 // |
| 25 // Returns true if OpenMAX was successfully initialized and loaded. | 26 // Returns true if OpenMAX was successfully initialized and loaded. |
| 26 bool InitializeOpenMaxLibrary(const FilePath& module_dir); | 27 bool InitializeOpenMaxLibrary(const FilePath& module_dir); |
| 27 | 28 |
| 28 } // namespace media | 29 } // namespace media |
| 29 | 30 |
| 30 #endif // MEDIA_BASE_MEDIA_H_ | 31 #endif // MEDIA_BASE_MEDIA_H_ |
| OLD | NEW |