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

Method MakeVideoFrameMsg

src/render/network/net_message_maker.cpp:177–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 }
176
177 std::shared_ptr<Data> NetMessageMaker::MakeVideoFrameMsg(const tc::VideoType& vt, const std::shared_ptr<Data>& data,
178 uint64_t frame_index, int frame_width, int frame_height, bool key,
179 const std::string& display_name, int mon_left,
180 int mon_top, int mon_right, int mon_bottom, const tc::EImageFormat& img_format, int mon_index) {
181 auto msg = std::make_shared<Message>();
182 msg->set_type(tc::kVideoFrame);
183 auto frame = new VideoFrame();
184 frame->set_type(vt);
185 frame->set_data(data->AsString());
186 frame->set_frame_index(frame_index);
187 frame->set_key(key);
188 frame->set_frame_width(frame_width);
189 frame->set_frame_height(frame_height);
190 frame->set_mon_name(display_name);
191 frame->set_mon_left(mon_left);
192 frame->set_mon_top(mon_top);
193 frame->set_mon_right(mon_right);
194 frame->set_mon_bottom(mon_bottom);
195 frame->set_mon_index(mon_index);
196 frame->set_image_format(img_format);
197 msg->set_allocated_video_frame(frame);
198 return ProtoAsData(msg);
199 }
200
201 std::shared_ptr<Data> NetMessageMaker::MakeAudioFrameMsg(const std::shared_ptr<Data>& data,
202 int samples, int channels, int bits, int frame_size) {

Callers

nothing calls this directly

Calls 1

AsStringMethod · 0.45

Tested by

no test coverage detected