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. |
slan
2015/10/06 19:34:00
Even though each MediaPipelineBackend must be able
kmackay
2015/10/06 21:44:55
Updated the comments. This function is called once
slan
2015/10/06 22:15:05
Thanks, much clearer.
| |
47 // must instantiate a new factory object | |
48 static MediaPipelineBackend* CreateMediaPipelineBackend( | 47 static MediaPipelineBackend* CreateMediaPipelineBackend( |
49 const MediaPipelineDeviceParams& params); | 48 const MediaPipelineDeviceParams& params); |
50 }; | 49 }; |
51 | 50 |
52 } // namespace media | 51 } // namespace media |
53 } // namespace chromecast | 52 } // namespace chromecast |
54 | 53 |
55 #endif // CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_ | 54 #endif // CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_ |
OLD | NEW |