| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // A VideoEncodeAccelerator implementation that uses VA-API | 22 // A VideoEncodeAccelerator implementation that uses VA-API |
| 23 // (http://www.freedesktop.org/wiki/Software/vaapi) for HW-accelerated | 23 // (http://www.freedesktop.org/wiki/Software/vaapi) for HW-accelerated |
| 24 // video encode. | 24 // video encode. |
| 25 class CONTENT_EXPORT VaapiVideoEncodeAccelerator | 25 class CONTENT_EXPORT VaapiVideoEncodeAccelerator |
| 26 : public media::VideoEncodeAccelerator { | 26 : public media::VideoEncodeAccelerator { |
| 27 public: | 27 public: |
| 28 VaapiVideoEncodeAccelerator(); | 28 VaapiVideoEncodeAccelerator(); |
| 29 ~VaapiVideoEncodeAccelerator() override; | 29 ~VaapiVideoEncodeAccelerator() override; |
| 30 | 30 |
| 31 // media::VideoEncodeAccelerator implementation. | 31 // media::VideoEncodeAccelerator implementation. |
| 32 std::vector<media::VideoEncodeAccelerator::SupportedProfile> | 32 media::VideoEncodeAccelerator::SupportedProfiles GetSupportedProfiles() |
| 33 GetSupportedProfiles() override; | 33 override; |
| 34 bool Initialize(media::VideoFrame::Format format, | 34 bool Initialize(media::VideoFrame::Format format, |
| 35 const gfx::Size& input_visible_size, | 35 const gfx::Size& input_visible_size, |
| 36 media::VideoCodecProfile output_profile, | 36 media::VideoCodecProfile output_profile, |
| 37 uint32 initial_bitrate, | 37 uint32 initial_bitrate, |
| 38 Client* client) override; | 38 Client* client) override; |
| 39 void Encode(const scoped_refptr<media::VideoFrame>& frame, | 39 void Encode(const scoped_refptr<media::VideoFrame>& frame, |
| 40 bool force_keyframe) override; | 40 bool force_keyframe) override; |
| 41 void UseOutputBitstreamBuffer(const media::BitstreamBuffer& buffer) override; | 41 void UseOutputBitstreamBuffer(const media::BitstreamBuffer& buffer) override; |
| 42 void RequestEncodingParametersChange(uint32 bitrate, | 42 void RequestEncodingParametersChange(uint32 bitrate, |
| 43 uint32 framerate) override; | 43 uint32 framerate) override; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // thread (it's a member of this class). | 251 // thread (it's a member of this class). |
| 252 base::WeakPtr<VaapiVideoEncodeAccelerator> weak_this_; | 252 base::WeakPtr<VaapiVideoEncodeAccelerator> weak_this_; |
| 253 base::WeakPtrFactory<VaapiVideoEncodeAccelerator> weak_this_ptr_factory_; | 253 base::WeakPtrFactory<VaapiVideoEncodeAccelerator> weak_this_ptr_factory_; |
| 254 | 254 |
| 255 DISALLOW_COPY_AND_ASSIGN(VaapiVideoEncodeAccelerator); | 255 DISALLOW_COPY_AND_ASSIGN(VaapiVideoEncodeAccelerator); |
| 256 }; | 256 }; |
| 257 | 257 |
| 258 } // namespace content | 258 } // namespace content |
| 259 | 259 |
| 260 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ | 260 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_ENCODE_ACCELERATOR_H_ |
| OLD | NEW |