Gifs optimization using Qt on imx6ull

cancel
Showing results for 
Search instead for 
Did you mean: 

Gifs optimization using Qt on imx6ull

263 Views
Contributor I

Hello,

I have to reproduce a Gif in loop mode but i'm facing a problem: when the Gif is up and running the cpu usage goes to 80%.

The follow snippet of code shows the implementation details:

QMovie *movie = new QMovie(":path.gif"); QLabel *pLabel = new QLabel(this);
pLabel->setMovie(movie);
movie->start();

I'm wondering if there is a problem of graphics optimization or the imx6ull (running Linux compiled with Yocto-Release sumo) is not suited for handle this works load.

Gif specs:

  • Resolution: 480x800 (same as display size)
  • Frame Rate: 25 fps
  • Dimension: 300kb

Thank you in advance!

 

0 Kudos
2 Replies

244 Views
Contributor I

EDIT:

the snippet of code is the follow:

QMovie *movie = new QMovie(":path.gif");
movie->setCacheMode(QMovie::CacheAll);

QLabel *pLabel = new QLabel(this);
pLabel->setMovie(movie);

movie->start();
0 Kudos

174 Views
NXP TechSupport
NXP TechSupport

Hello kwroot,

 

The MX6ULL do not have GPU, QT will work on a CPU and will take time processing this images.

 

Regards

 

0 Kudos