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