| 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_; |
nothing calls this directly
no test coverage detected