Quote Originally Posted by kroenecker
So, out of curiosity, if I wanted to make an application that streams video content in QT3, how do I start? (ie what classes would be appropriate etc)
Nothing easier, here is an example of my QVideo plugin for 32 bit rgb frames:
Qt Code:
  1. /** No descriptions */
  2. void QVideo::showRGB32(unsigned int *buff){
  3. int buffSize = width()*height()*sizeof(unsigned int);
  4.  
  5. if(!m_image32)
  6. m_image32 = new QImage(width(),height(),32);
  7. if(m_image32->width() != width() || m_image32->height() != height())
  8. {
  9. delete m_image32;
  10. m_image32 = new QImage(width(),height(),32);
  11. }
  12.  
  13. memcpy(m_image32->bits(),buff,buffSize);
  14. if(!m_image32->isNull())
  15. bitBlt(this,0,0,m_image32);
  16. // m_lastImage = m_image32; //<--this is not thread safe
  17.  
  18. }
To copy to clipboard, switch view to plain text mode