Displaying RGB frame effectively
Unsolved
General and Desktop
-
Hi All,
I have an RGB video frame in my c++ buffer. How do I display it in Qt5 effectively?
-
Hi,
How are you getting these frame ?
Where do they come from ?
How big are they ? -
Frames are decoded using ffmpeg and it's an RGB AVFrame structure(1280*720/ 8 bitdepth). I've seen some examples in stackoverflow, but those are doing copy paste of every pixel value from AVFrame to Qimage. Is there any way to directly feed AVFrame data [] pointer to Qimage.?
-
@Venkateswaran said in Displaying RGB frame effectively:
Is there any way to directly feed AVFrame data [] pointer to Qimage.?
Simply take a look at the various QImage ctors
-
Depending on the lifetime of the AVFrame and the QImage, you may not have a choice with regard to the copy.