| 1 | #include "benchmark.h" |
| 2 | #include "nvidia/nvidia_encoder_factory.h" |
| 3 | |
| 4 | class NvidiaBenchmark : public Benchmark { |
| 5 | public: |
| 6 | NvidiaBenchmark(); |
| 7 | NvidiaBenchmark(std::string name, std::string description); |
| 8 | NvidiaBenchmark(std::string name, |
| 9 | std::string description, |
| 10 | std::string resultsFileName); |
| 11 | |
| 12 | ~NvidiaBenchmark() {} |
| 13 | |
| 14 | bool IsSupported() override { |
| 15 | return webrtc::NvidiaVideoEncoderFactory::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::NvidiaVideoEncoderFactory> _factory; |
| 24 | }; |