| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // The flag indicating whether the client supports deferred initialization | 129 // The flag indicating whether the client supports deferred initialization |
| 130 // or not. | 130 // or not. |
| 131 bool is_deferred_initialization_allowed = false; | 131 bool is_deferred_initialization_allowed = false; |
| 132 | 132 |
| 133 // An optional graphics surface that the VDA should render to. For setting | 133 // An optional graphics surface that the VDA should render to. For setting |
| 134 // an output SurfaceView on Android. It's only valid when not equal to | 134 // an output SurfaceView on Android. It's only valid when not equal to |
| 135 // |kNoSurfaceID|. | 135 // |kNoSurfaceID|. |
| 136 int surface_id = kNoSurfaceID; | 136 int surface_id = kNoSurfaceID; |
| 137 | 137 |
| 138 // Coded size of the video frame hint, subject to change. | 138 // Coded size of the video frame hint, subject to change. |
| 139 gfx::Size initial_expected_coded_size; | 139 gfx::Size initial_expected_coded_size = gfx::Size(320, 240); |
| 140 | 140 |
| 141 OutputMode output_mode = OutputMode::ALLOCATE; | 141 OutputMode output_mode = OutputMode::ALLOCATE; |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 // Interface for collaborating with picture interface to provide memory for | 144 // Interface for collaborating with picture interface to provide memory for |
| 145 // output picture and blitting them. These callbacks will not be made unless | 145 // output picture and blitting them. These callbacks will not be made unless |
| 146 // Initialize() has returned successfully. | 146 // Initialize() has returned successfully. |
| 147 // This interface is extended by the various layers that relay messages back | 147 // This interface is extended by the various layers that relay messages back |
| 148 // to the plugin, through the PPP_VideoDecoder_Dev interface the plugin | 148 // to the plugin, through the PPP_VideoDecoder_Dev interface the plugin |
| 149 // implements. | 149 // implements. |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> | 338 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> |
| 339 // uses "Destroy()" instead of trying to use the destructor. | 339 // uses "Destroy()" instead of trying to use the destructor. |
| 340 template <> | 340 template <> |
| 341 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { | 341 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { |
| 342 void operator()(media::VideoDecodeAccelerator* vda) const; | 342 void operator()(media::VideoDecodeAccelerator* vda) const; |
| 343 }; | 343 }; |
| 344 | 344 |
| 345 } // namespace std | 345 } // namespace std |
| 346 | 346 |
| 347 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 347 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |