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 <d3d9.h> | 8 #include <d3d9.h> |
9 // Work around bug in this header by disabling the relevant warning for it. | 9 // Work around bug in this header by disabling the relevant warning for it. |
10 // https://connect.microsoft.com/VisualStudio/feedback/details/911260/dxva2api-h -in-win8-sdk-triggers-c4201-with-w4 | 10 // https://connect.microsoft.com/VisualStudio/feedback/details/911260/dxva2api-h -in-win8-sdk-triggers-c4201-with-w4 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 Client* client) override; | 58 Client* client) override; |
59 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) override; | 59 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) override; |
60 virtual void AssignPictureBuffers( | 60 virtual void AssignPictureBuffers( |
61 const std::vector<media::PictureBuffer>& buffers) override; | 61 const std::vector<media::PictureBuffer>& buffers) override; |
62 virtual void ReusePictureBuffer(int32 picture_buffer_id) override; | 62 virtual void ReusePictureBuffer(int32 picture_buffer_id) override; |
63 virtual void Flush() override; | 63 virtual void Flush() override; |
64 virtual void Reset() override; | 64 virtual void Reset() override; |
65 virtual void Destroy() override; | 65 virtual void Destroy() override; |
66 virtual bool CanDecodeOnIOThread() override; | 66 virtual bool CanDecodeOnIOThread() override; |
67 | 67 |
68 unsigned GetSufaceInternalFormat() const; | |
Ken Russell (switch to Gerrit)
2014/12/05 20:53:43
typo: should be GetSurfaceInternalFormat
dshwang
2014/12/08 13:47:28
Oops, thx. Done.
| |
69 | |
68 private: | 70 private: |
69 typedef void* EGLConfig; | 71 typedef void* EGLConfig; |
70 typedef void* EGLSurface; | 72 typedef void* EGLSurface; |
71 // Creates and initializes an instance of the D3D device and the | 73 // Creates and initializes an instance of the D3D device and the |
72 // corresponding device manager. The device manager instance is eventually | 74 // corresponding device manager. The device manager instance is eventually |
73 // passed to the IMFTransform interface implemented by the decoder. | 75 // passed to the IMFTransform interface implemented by the decoder. |
74 bool CreateD3DDevManager(); | 76 bool CreateD3DDevManager(); |
75 | 77 |
76 // Creates, initializes and sets the media codec types for the decoder. | 78 // Creates, initializes and sets the media codec types for the decoder. |
77 bool InitDecoder(media::VideoCodecProfile profile); | 79 bool InitDecoder(media::VideoCodecProfile profile); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
224 // WeakPtrFactory for posting tasks back to |this|. | 226 // WeakPtrFactory for posting tasks back to |this|. |
225 base::WeakPtrFactory<DXVAVideoDecodeAccelerator> weak_this_factory_; | 227 base::WeakPtrFactory<DXVAVideoDecodeAccelerator> weak_this_factory_; |
226 | 228 |
227 // Which codec we are decoding with hardware acceleration. | 229 // Which codec we are decoding with hardware acceleration. |
228 media::VideoCodec codec_; | 230 media::VideoCodec codec_; |
229 }; | 231 }; |
230 | 232 |
231 } // namespace content | 233 } // namespace content |
232 | 234 |
233 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ | 235 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |