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_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 5 #ifndef MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
7 | 7 |
8 #include <d3d11_1.h> | 8 #include <d3d11_1.h> |
9 #include <d3d9.h> | 9 #include <d3d9.h> |
10 #include <initguid.h> | 10 #include <initguid.h> |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 // Notifies the client that the decoder was reset. | 235 // Notifies the client that the decoder was reset. |
236 void NotifyResetDone(); | 236 void NotifyResetDone(); |
237 | 237 |
238 // Requests picture buffers from the client. | 238 // Requests picture buffers from the client. |
239 void RequestPictureBuffers(int width, int height); | 239 void RequestPictureBuffers(int width, int height); |
240 | 240 |
241 // Notifies the client about the availability of a picture. | 241 // Notifies the client about the availability of a picture. |
242 void NotifyPictureReady(int picture_buffer_id, | 242 void NotifyPictureReady(int picture_buffer_id, |
243 int input_buffer_id, | 243 int input_buffer_id, |
244 const gfx::ColorSpace& color_space); | 244 const gfx::ColorSpace& color_space, |
| 245 bool allow_overlay); |
245 | 246 |
246 // Sends pending input buffer processed acks to the client if we don't have | 247 // Sends pending input buffer processed acks to the client if we don't have |
247 // output samples waiting to be processed. | 248 // output samples waiting to be processed. |
248 void NotifyInputBuffersDropped(const PendingInputs& input_buffers); | 249 void NotifyInputBuffersDropped(const PendingInputs& input_buffers); |
249 | 250 |
250 // Decodes pending input buffers. | 251 // Decodes pending input buffers. |
251 void DecodePendingInputBuffers(); | 252 void DecodePendingInputBuffers(); |
252 | 253 |
253 // Helper for handling the Flush operation. | 254 // Helper for handling the Flush operation. |
254 void FlushInternal(); | 255 void FlushInternal(); |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 | 563 |
563 // Function pointer for the MFCreateDXGIDeviceManager API. | 564 // Function pointer for the MFCreateDXGIDeviceManager API. |
564 static CreateDXGIDeviceManager create_dxgi_device_manager_; | 565 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
565 | 566 |
566 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); | 567 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); |
567 }; | 568 }; |
568 | 569 |
569 } // namespace media | 570 } // namespace media |
570 | 571 |
571 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 572 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
OLD | NEW |