P
P
Pavel K2017-12-17 01:32:10
Qt
Pavel K, 2017-12-17 01:32:10

How to directly convert AVFrame to QVideoFrame?

Greetings!
I get a decoded AVFrame in YUV420P format, I need to put it in QVideoFrame
I found how to do it through sw_scale and QImage, but there is a conversion first to RGB32, which in my opinion is overkill, because QVideoFrame itself supports the YUV420P format. Can you please tell me how to convert?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question