Merge lp://staging/~jamesh/thumbnailer/gif-first-frame into lp://staging/thumbnailer/devel

Proposed by James Henstridge
Status: Merged
Approved by: Michi Henning
Approved revision: 346
Merged at revision: 340
Proposed branch: lp://staging/~jamesh/thumbnailer/gif-first-frame
Merge into: lp://staging/thumbnailer/devel
Diff against target: 195 lines (+68/-40)
4 files modified
src/image.cpp (+25/-4)
src/thumbnailer.cpp (+0/-24)
tests/image/image_test.cpp (+37/-0)
tests/thumbnailer/thumbnailer_test.cpp (+6/-12)
To merge this branch: bzr merge lp://staging/~jamesh/thumbnailer/gif-first-frame
Reviewer Review Type Date Requested Status
Michi Henning (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+283175@code.staging.launchpad.net

Commit message

When reading a potentially animated image, stop processing chunks once we've fully decoded the first frame. This reduces the IO and CPU load when thumbnailing large animated GIF files.

Description of the change

When reading a potentially animated image, stop processing chunks once we've fully decoded the first frame. This reduces the IO and CPU load when thumbnailing large animated GIF files.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michi Henning (michihenning) wrote :

Very nice, thank you!

review: Approve
Revision history for this message
James Henstridge (jamesh) wrote :

It seems that loading plus scaling stops this from working, leading to the entire animation being loaded.

344. By James Henstridge

Add a test for loading a scaled animated gif.

345. By James Henstridge

When loading a scaled animation, the area-prepared signal may be delayed
until the loader is closed. So instead, try to create the
PixbufAnimationIter after feeding each chunk to the loader.

346. By James Henstridge

Simplify logic a little.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michi Henning (michihenning) wrote :

Awesome!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: