blob: fd3269ee9ff1ccf54eea7baf82fbf0ca05e1d042 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Contains code that should be used for initializing, or querying the state
// of the media library as a whole.
#ifndef MEDIA_BASE_MEDIA_H_
#define MEDIA_BASE_MEDIA_H_
class FilePath;
namespace media {
// Attempts to initialize the media library (loading DLLs, DSOs, etc.).
// If |module_dir| is the emptry string, then the system default library paths
// are searched for the dynamic libraries. If a |module_dir| is provided, then
// only the specified |module_dir| will be searched for the dynamic libraries.
//
// Returns true if everything was successfully initialized, false otherwise.
bool InitializeMediaLibrary(const FilePath& module_dir);
// Attempts to initialize OpenMAX library.
//
// Returns true if OpenMAX was successfully initialized and loaded.
bool InitializeOpenMaxLibrary(const FilePath& module_dir);
// This is temporary to get the address of vpx_codec_vp8_cx_algo in FFmpeg.
// This method should only be called after media library is loaded.
// TODO(hclam): Remove this after we have a getter function for the same
// purpose in libvpx.
// See bug: http://code.google.com/p/webm/issues/detail?id=169
void* GetVp8CxAlgoAddress();
} // namespace media
#endif // MEDIA_BASE_MEDIA_H_
|