| 1 | #include "benchmark.h" |
| 2 | #include "vaapi/vaapi_encoder_factory.h" |
| 3 | |
| 4 | class VaapiBenchmark : public Benchmark { |
| 5 | public: |
| 6 | VaapiBenchmark(); |
| 7 | VaapiBenchmark(std::string name, std::string description); |
| 8 | VaapiBenchmark(std::string name, |
| 9 | std::string description, |
| 10 | std::string resultsFileName); |
| 11 | |
| 12 | ~VaapiBenchmark() {} |
| 13 | |
| 14 | bool IsSupported() override { |
| 15 | return webrtc::VAAPIVideoEncoderFactory::IsSupported(); |
| 16 | } |
| 17 | |
| 18 | protected: |
| 19 | webrtc::VideoEncoder* GetNewEncoder(webrtc::Environment &env) override; |
| 20 | |
| 21 | private: |
| 22 | std::unique_ptr<webrtc::VideoEncoder> _encoder; |
| 23 | std::unique_ptr<webrtc::VAAPIVideoEncoderFactory> _factory; |
| 24 | }; |