Reputation: 3388
A video player can interpret a file(mp4,avi...)to picture on screen. Qt can draw lines,rectangles,pixmap...to picture on screen. What is the difference between them?
Upvotes: 0
Views: 202
Reputation: 298246
You're comparing apples to oranges. They are completely different.
A video player reads a video stream from a file and decodes it using a decoder (DivX, XviD, x.264, etc.), displaying the output on your screen.
Qt4's object painting allows you to paint pixels onto a QObject
. That's basically it.
Video decoders are heavily optimized and some even use GPU acceleration. Qt4's object painting isn't made for rapidly-changing frames and is used do draw basic things.
Upvotes: 1