OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 bool is_encrypted = false; | 115 bool is_encrypted = false; |
116 | 116 |
117 // The flag indicating whether the client supports deferred initialization | 117 // The flag indicating whether the client supports deferred initialization |
118 // or not. | 118 // or not. |
119 bool is_deferred_initialization_allowed = false; | 119 bool is_deferred_initialization_allowed = false; |
120 | 120 |
121 // An optional graphics surface that the VDA should render to. For setting | 121 // An optional graphics surface that the VDA should render to. For setting |
122 // an output SurfaceView on Android. It's only valid when not equal to | 122 // an output SurfaceView on Android. It's only valid when not equal to |
123 // |kNoSurfaceID|. | 123 // |kNoSurfaceID|. |
124 int surface_id = kNoSurfaceID; | 124 int surface_id = kNoSurfaceID; |
| 125 |
| 126 // Coded size of the video frame hint, subject to change. |
| 127 gfx::Size initial_expected_coded_size; |
125 }; | 128 }; |
126 | 129 |
127 // Interface for collaborating with picture interface to provide memory for | 130 // Interface for collaborating with picture interface to provide memory for |
128 // output picture and blitting them. These callbacks will not be made unless | 131 // output picture and blitting them. These callbacks will not be made unless |
129 // Initialize() has returned successfully. | 132 // Initialize() has returned successfully. |
130 // This interface is extended by the various layers that relay messages back | 133 // This interface is extended by the various layers that relay messages back |
131 // to the plugin, through the PPP_VideoDecoder_Dev interface the plugin | 134 // to the plugin, through the PPP_VideoDecoder_Dev interface the plugin |
132 // implements. | 135 // implements. |
133 class MEDIA_EXPORT Client { | 136 class MEDIA_EXPORT Client { |
134 public: | 137 public: |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> | 307 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> |
305 // uses "Destroy()" instead of trying to use the destructor. | 308 // uses "Destroy()" instead of trying to use the destructor. |
306 template <> | 309 template <> |
307 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { | 310 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { |
308 void operator()(media::VideoDecodeAccelerator* vda) const; | 311 void operator()(media::VideoDecodeAccelerator* vda) const; |
309 }; | 312 }; |
310 | 313 |
311 } // namespace std | 314 } // namespace std |
312 | 315 |
313 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 316 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |