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 // This file contains an implementation of VideoDecoderAccelerator | 5 // This file contains an implementation of VideoDecoderAccelerator |
6 // that utilizes hardware video decoder present on Intel CPUs. | 6 // that utilizes hardware video decoder present on Intel CPUs. |
7 | 7 |
8 #ifndef MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 8 #ifndef MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
9 #define MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 9 #define MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 gpu_memory_buffer_handles) override; | 73 gpu_memory_buffer_handles) override; |
74 #endif | 74 #endif |
75 void ReusePictureBuffer(int32_t picture_buffer_id) override; | 75 void ReusePictureBuffer(int32_t picture_buffer_id) override; |
76 void Flush() override; | 76 void Flush() override; |
77 void Reset() override; | 77 void Reset() override; |
78 void Destroy() override; | 78 void Destroy() override; |
79 bool TryToSetupDecodeOnSeparateThread( | 79 bool TryToSetupDecodeOnSeparateThread( |
80 const base::WeakPtr<Client>& decode_client, | 80 const base::WeakPtr<Client>& decode_client, |
81 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) | 81 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) |
82 override; | 82 override; |
| 83 VideoPixelFormat GetOutputFormat() const override; |
83 | 84 |
84 static media::VideoDecodeAccelerator::SupportedProfiles | 85 static media::VideoDecodeAccelerator::SupportedProfiles |
85 GetSupportedProfiles(); | 86 GetSupportedProfiles(); |
86 | 87 |
87 private: | 88 private: |
88 class VaapiH264Accelerator; | 89 class VaapiH264Accelerator; |
89 class VaapiVP8Accelerator; | 90 class VaapiVP8Accelerator; |
90 class VaapiVP9Accelerator; | 91 class VaapiVP9Accelerator; |
91 | 92 |
92 // Notify the client that an error has occurred and decoding cannot continue. | 93 // Notify the client that an error has occurred and decoding cannot continue. |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 320 |
320 // The WeakPtrFactory for |weak_this_|. | 321 // The WeakPtrFactory for |weak_this_|. |
321 base::WeakPtrFactory<VaapiVideoDecodeAccelerator> weak_this_factory_; | 322 base::WeakPtrFactory<VaapiVideoDecodeAccelerator> weak_this_factory_; |
322 | 323 |
323 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); | 324 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); |
324 }; | 325 }; |
325 | 326 |
326 } // namespace media | 327 } // namespace media |
327 | 328 |
328 #endif // MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 329 #endif // MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |