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

Method RefreshImage

src/client/front_render/ct_video_widget.cpp:246–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 }
245
246 void VideoWidget::RefreshImage(const std::shared_ptr<RawImage> &image) {
247 if (image->Format() == RawImageFormat::kRawImageI420) {
248 this->RefreshI420Image(image);
249 }
250 else if (image->Format() == RawImageFormat::kRawImageI444) {
251 this->RefreshI444Image(image);
252 }
253 else if (image->Format() == RawImageFormat::kRawImageRGB) {
254 this->RefreshRGBBuffer(image->Data(), image->img_width, image->img_height, image->img_ch);
255 }
256 }
257
258 RawImageFormat VideoWidget::GetDisplayImageFormat() {
259 return raw_image_format_;

Callers

nothing calls this directly

Calls 3

RefreshI420ImageMethod · 0.95
RefreshI444ImageMethod · 0.95
RefreshRGBBufferMethod · 0.95

Tested by

no test coverage detected