MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / GetBufferFromQImage

Method GetBufferFromQImage

Plugins/RabbitVNC/Service/Connection.cpp:374–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374QSharedPointer<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
389void CConnection::writeNoDataUpdate()
390{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected