| 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; | |
| 84 | 83 |
| 85 static media::VideoDecodeAccelerator::SupportedProfiles | 84 static media::VideoDecodeAccelerator::SupportedProfiles |
| 86 GetSupportedProfiles(); | 85 GetSupportedProfiles(); |
| 87 | 86 |
| 88 private: | 87 private: |
| 89 class VaapiH264Accelerator; | 88 class VaapiH264Accelerator; |
| 90 class VaapiVP8Accelerator; | 89 class VaapiVP8Accelerator; |
| 91 class VaapiVP9Accelerator; | 90 class VaapiVP9Accelerator; |
| 92 | 91 |
| 93 // Notify the client that an error has occurred and decoding cannot continue. | 92 // 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... |
| 320 | 319 |
| 321 // The WeakPtrFactory for |weak_this_|. | 320 // The WeakPtrFactory for |weak_this_|. |
| 322 base::WeakPtrFactory<VaapiVideoDecodeAccelerator> weak_this_factory_; | 321 base::WeakPtrFactory<VaapiVideoDecodeAccelerator> weak_this_factory_; |
| 323 | 322 |
| 324 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); | 323 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); |
| 325 }; | 324 }; |
| 326 | 325 |
| 327 } // namespace media | 326 } // namespace media |
| 328 | 327 |
| 329 #endif // MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 328 #endif // MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |