Advertisement
john987

a22

Apr 29th, 2011
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. if(CameraN900::buffer!=NULL) {
  2. unsigned char* data=(unsigned char *) GST_BUFFER_DATA (CameraN900::buffer);
  3. // 2 pixels width, 2 pixels height, 6 bytes per line, RGB888 format
  4. QImage img(data, GLWidget::buffer_width, GLWidget::buffer_height,3*GLWidget::buffer_width, QImage::Format_RGB888);
  5. painter->drawImage(0, 0, img.scaled(800,480));
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement