Gifs optimization using Qt on imx6ull

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Gifs optimization using Qt on imx6ull

1,646 Views
kwroot
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

1,627 Views
kwroot
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

1,557 Views
Bio_TICFSL
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