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 CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <d3d11.h> | 8 #include <d3d11.h> |
9 #include <d3d9.h> | 9 #include <d3d9.h> |
10 // Work around bug in this header by disabling the relevant warning for it. | 10 // Work around bug in this header by disabling the relevant warning for it. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; | 68 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; |
69 void AssignPictureBuffers( | 69 void AssignPictureBuffers( |
70 const std::vector<media::PictureBuffer>& buffers) override; | 70 const std::vector<media::PictureBuffer>& buffers) override; |
71 void ReusePictureBuffer(int32 picture_buffer_id) override; | 71 void ReusePictureBuffer(int32 picture_buffer_id) override; |
72 void Flush() override; | 72 void Flush() override; |
73 void Reset() override; | 73 void Reset() override; |
74 void Destroy() override; | 74 void Destroy() override; |
75 bool CanDecodeOnIOThread() override; | 75 bool CanDecodeOnIOThread() override; |
76 GLenum GetSurfaceInternalFormat() const override; | 76 GLenum GetSurfaceInternalFormat() const override; |
77 | 77 |
| 78 static std::vector<media::VideoDecodeAccelerator::SupportedProfile> |
| 79 GetSupportedProfiles(); |
| 80 |
78 private: | 81 private: |
79 typedef void* EGLConfig; | 82 typedef void* EGLConfig; |
80 typedef void* EGLSurface; | 83 typedef void* EGLSurface; |
81 | 84 |
82 // Creates and initializes an instance of the D3D device and the | 85 // Creates and initializes an instance of the D3D device and the |
83 // corresponding device manager. The device manager instance is eventually | 86 // corresponding device manager. The device manager instance is eventually |
84 // passed to the IMFTransform interface implemented by the decoder. | 87 // passed to the IMFTransform interface implemented by the decoder. |
85 bool CreateD3DDevManager(); | 88 bool CreateD3DDevManager(); |
86 | 89 |
87 // Creates and initializes an instance of the DX11 device and the | 90 // Creates and initializes an instance of the DX11 device and the |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 // The GLContext to be used by the decoder. | 367 // The GLContext to be used by the decoder. |
365 scoped_refptr<gfx::GLContext> gl_context_; | 368 scoped_refptr<gfx::GLContext> gl_context_; |
366 | 369 |
367 // Function pointer for the MFCreateDXGIDeviceManager API. | 370 // Function pointer for the MFCreateDXGIDeviceManager API. |
368 static CreateDXGIDeviceManager create_dxgi_device_manager_; | 371 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
369 }; | 372 }; |
370 | 373 |
371 } // namespace content | 374 } // namespace content |
372 | 375 |
373 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ | 376 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |