| 30 | } |
| 31 | |
| 32 | bool GrVideoEncoderPlugin::Init(const EncoderConfig& config, const std::string& monitor_name) { |
| 33 | LOGI("GrVideoEncoderPlugin Init, {}x{}", config.encode_width, config.encode_height); |
| 34 | encoder_configs_[monitor_name] = config; |
| 35 | out_width_ = config.encode_width; |
| 36 | out_height_ = config.encode_height; |
| 37 | refresh_rate_ = config.fps; |
| 38 | return true; |
| 39 | } |
| 40 | |
| 41 | VideoEncoderError GrVideoEncoderPlugin::Encode(const Microsoft::WRL::ComPtr<ID3D11Texture2D>& tex2d, uint64_t frame_index, const std::any& extra) { |
| 42 | return VideoEncoderError::NotImplemented(); |
nothing calls this directly
no outgoing calls
no test coverage detected