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 // If |module_dir| is the emptry string, then the system default library paths | 16 // 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 | 17 // 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. | 18 // only the specified |module_dir| will be searched for the dynamic libraries. |
19 // | 19 // |
20 // Returns true if everything was successfully initialized, false otherwise. | 20 // Returns true if everything was successfully initialized, false otherwise. |
21 bool InitializeMediaLibrary(const FilePath& module_dir); | 21 bool InitializeMediaLibrary(const FilePath& module_dir); |
22 | 22 |
23 // Attempts to initialize OpenMAX library. | 23 // Attempts to initialize OpenMAX library. |
24 // | 24 // |
25 // Returns true if OpenMAX was successfully initialized and loaded. | 25 // Returns true if OpenMAX was successfully initialized and loaded. |
26 bool InitializeOpenMaxLibrary(const FilePath& module_dir); | 26 bool InitializeOpenMaxLibrary(const FilePath& module_dir); |
27 | 27 |
| 28 // This is temporary to get the address of vpx_codec_vp8_cx_algo in FFmpeg. |
| 29 // This method should only be called after media library is loaded. |
| 30 |
| 31 // TODO(hclam): Remove this after we have a getter function for the same |
| 32 // purpose in libvpx. |
| 33 // See bug: http://code.google.com/p/webm/issues/detail?id=169 |
| 34 void* GetVp8CxAlgoAddress(); |
| 35 |
28 } // namespace media | 36 } // namespace media |
29 | 37 |
30 #endif // MEDIA_BASE_MEDIA_H_ | 38 #endif // MEDIA_BASE_MEDIA_H_ |
OLD | NEW |