| 372 | } |
| 373 | |
| 374 | QSharedPointer<rfb::PixelBuffer> CConnection::GetBufferFromQImage(QImage &img) |
| 375 | { |
| 376 | if(img.isNull()) |
| 377 | return nullptr; |
| 378 | |
| 379 | QSharedPointer<rfb::PixelBuffer> pb( |
| 380 | new rfb::FullFramePixelBuffer(m_PixelFormat, |
| 381 | img.width(), |
| 382 | img.height(), |
| 383 | img.bits(), |
| 384 | img.bytesPerLine() |
| 385 | / (m_PixelFormat.bpp / 8))); |
| 386 | return pb; |
| 387 | } |
| 388 | |
| 389 | void CConnection::writeNoDataUpdate() |
| 390 | { |
nothing calls this directly
no outgoing calls
no test coverage detected