MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / Init

Method Init

src/render/plugin_interface/gr_video_encoder_plugin.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected