gemfield
gemfield

Reputation: 3388

what is the difference between Qt painting and video player?

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

Answers (1)

Blender
Blender

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

Related Questions