OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_ | 5 #ifndef CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_ |
6 #define CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_ | 6 #define CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 // Tears down platform-specific media systems and returns to the uninitialized | 35 // Tears down platform-specific media systems and returns to the uninitialized |
36 // state. The implementation must release all media-related hardware | 36 // state. The implementation must release all media-related hardware |
37 // resources. | 37 // resources. |
38 static void Finalize(); | 38 static void Finalize(); |
39 | 39 |
40 // Gets the VideoPlane instance for managing the hardware video plane. | 40 // Gets the VideoPlane instance for managing the hardware video plane. |
41 // While an implementation is in an initialized state, this function may be | 41 // While an implementation is in an initialized state, this function may be |
42 // called at any time. The VideoPlane object must be destroyed in Finalize. | 42 // called at any time. The VideoPlane object must be destroyed in Finalize. |
43 static VideoPlane* GetVideoPlane(); | 43 static VideoPlane* GetVideoPlane(); |
44 | 44 |
45 // Creates a factory object for a media pipeline backend. Called in the | 45 // Creates a media pipeline backend. Called in the browser process for each |
46 // browser process, any number of times (once per media pipeline). Each call | 46 // media pipeline and raw audio stream. The caller owns the returned |
47 // must instantiate a new factory object | 47 // MediaPipelineBackend instance. |
48 static MediaPipelineBackend* CreateMediaPipelineBackend( | 48 static MediaPipelineBackend* CreateMediaPipelineBackend( |
49 const MediaPipelineDeviceParams& params); | 49 const MediaPipelineDeviceParams& params); |
50 }; | 50 }; |
51 | 51 |
52 } // namespace media | 52 } // namespace media |
53 } // namespace chromecast | 53 } // namespace chromecast |
54 | 54 |
55 #endif // CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_ | 55 #endif // CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_ |
OLD | NEW |