I am learning how to create an application to display gray scale byte data from a digital camera. The data is one dimensional array of unsigned char pixel values such that a value of 0 is black and 255 is white. I also know the dimensions of the camera CCD device, NX by NY pixels, so I know how to interpret the data array.
Looking at the QT Video Player example, I think I should be able to use QMovie, QAbstractVideoSurface, QByteArray, QVideoFrame classes to put together such an application. I see that QVideoFrame::Format_Y8 might represent the format of my data.. What I am stumped by is how to tell one of these classes (probably QMovie) that the pixel data in QByteArray is organized in NY lines of NX pixels in each line. I hope someone will answer these questions: Given the nature of the data is the approach following the video player example the right way to go? and How do I inform the "video" classes that the QByteArray represents a 2D image of fixed dimensions? Any help and suggestion are greatly appreciated, Zen
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest