| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 int surface_id = kNoSurfaceID; | 149 int surface_id = kNoSurfaceID; |
| 150 | 150 |
| 151 // Coded size of the video frame hint, subject to change. | 151 // Coded size of the video frame hint, subject to change. |
| 152 gfx::Size initial_expected_coded_size = gfx::Size(320, 240); | 152 gfx::Size initial_expected_coded_size = gfx::Size(320, 240); |
| 153 | 153 |
| 154 OutputMode output_mode = OutputMode::ALLOCATE; | 154 OutputMode output_mode = OutputMode::ALLOCATE; |
| 155 | 155 |
| 156 // The list of picture buffer formats that the client knows how to use. An | 156 // The list of picture buffer formats that the client knows how to use. An |
| 157 // empty list means any format is supported. | 157 // empty list means any format is supported. |
| 158 std::vector<VideoPixelFormat> supported_output_formats; | 158 std::vector<VideoPixelFormat> supported_output_formats; |
| 159 |
| 160 // Optional codec configuration. For example, for H264 this is the AVCC. |
| 161 std::vector<uint8_t> extra_data; |
| 159 }; | 162 }; |
| 160 | 163 |
| 161 // Interface for collaborating with picture interface to provide memory for | 164 // Interface for collaborating with picture interface to provide memory for |
| 162 // output picture and blitting them. These callbacks will not be made unless | 165 // output picture and blitting them. These callbacks will not be made unless |
| 163 // Initialize() has returned successfully. | 166 // Initialize() has returned successfully. |
| 164 // This interface is extended by the various layers that relay messages back | 167 // This interface is extended by the various layers that relay messages back |
| 165 // to the plugin, through the PPP_VideoDecoder_Dev interface the plugin | 168 // to the plugin, through the PPP_VideoDecoder_Dev interface the plugin |
| 166 // implements. | 169 // implements. |
| 167 class MEDIA_EXPORT Client { | 170 class MEDIA_EXPORT Client { |
| 168 public: | 171 public: |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 // std::unique_ptr<VideoDecodeAccelerator> uses "Destroy()" instead of trying to | 347 // std::unique_ptr<VideoDecodeAccelerator> uses "Destroy()" instead of trying to |
| 345 // use the destructor. | 348 // use the destructor. |
| 346 template <> | 349 template <> |
| 347 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { | 350 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { |
| 348 void operator()(media::VideoDecodeAccelerator* vda) const; | 351 void operator()(media::VideoDecodeAccelerator* vda) const; |
| 349 }; | 352 }; |
| 350 | 353 |
| 351 } // namespace std | 354 } // namespace std |
| 352 | 355 |
| 353 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 356 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |