Merge lp://staging/~michihenning/thumbnailer/vs-thumb-refactor into lp://staging/thumbnailer/devel
Status: | Merged |
---|---|
Approved by: | James Henstridge |
Approved revision: | 309 |
Merged at revision: | 289 |
Proposed branch: | lp://staging/~michihenning/thumbnailer/vs-thumb-refactor |
Merge into: | lp://staging/thumbnailer/devel |
Prerequisite: | lp://staging/~michihenning/thumbnailer/qt-rate-limiter |
Diff against target: |
1439 lines (+512/-335) 14 files modified
CMakeLists.txt (+3/-1) debian/control (+1/-0) include/internal/imageextractor.h (+2/-3) src/imageextractor.cpp (+25/-14) src/thumbnailer.cpp (+1/-1) src/trace.cpp (+1/-1) src/vs-thumb/CMakeLists.txt (+25/-13) src/vs-thumb/thumbnailextractor.cpp (+244/-205) src/vs-thumb/thumbnailextractor.h (+32/-3) src/vs-thumb/vs-thumb.cpp (+18/-42) tests/testsetup.h.in (+2/-0) tests/thumbnailer/thumbnailer_test.cpp (+14/-3) tests/vs-thumb/CMakeLists.txt (+7/-3) tests/vs-thumb/vs-thumb_test.cpp (+137/-46) |
To merge this branch: | bzr merge lp://staging/~michihenning/thumbnailer/vs-thumb-refactor |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Henstridge | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email:
|
Commit message
Partially refactored vs-thumb. Better performance, tracing, and error messages.
Description of the change
Stage 1 of vs-thumb refactoring.
Changed thumbnail extraction to return tiff image via a pipe. This speeds up MP3 extraction by 60%.
Bundled vs-thumb code into a static library because compiling the extractor source separately for vs-thumb and the tests caused gcovr to get confused.
Changed cover art extraction to a non-member function for clarity.
Un-pimpled thumbnail extractor class.
Better tracing with timestamps and more informative error messages.
More tests and much improved test coverage.
Many minor style fixes.
Still to do for stage 2:
- Re-factor code some more. (Some functions are rather large; could possibly use virtual base methods instead of if-then-else in some places.)
- We are still doing more image conversions than strictly necessary. It would be better to write a header into the pipe that describes the encoding for the image, so we don't needlessly encode from jpg to tiff, and then back to jpg in calling process, for example).
FAILED: Continuous integration, rev:307 /code.launchpad .net/~michihenn ing/thumbnailer /vs-thumb- refactor/ +merge/ 274346/ +edit-commit- message
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http:// jenkins. qa.ubuntu. com/job/ thumbnailer- devel-ci/ 490/ jenkins. qa.ubuntu. com/job/ thumbnailer- devel-vivid- amd64-ci/ 195/console jenkins. qa.ubuntu. com/job/ thumbnailer- devel-vivid- armhf-ci/ 194/console jenkins. qa.ubuntu. com/job/ thumbnailer- devel-vivid- i386-ci/ 196/console jenkins. qa.ubuntu. com/job/ thumbnailer- devel-wily- amd64-ci/ 300/console jenkins. qa.ubuntu. com/job/ thumbnailer- devel-wily- armhf-ci/ 305/console jenkins. qa.ubuntu. com/job/ thumbnailer- devel-wily- i386-ci/ 299/console
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/thumbnailer -devel- ci/490/ rebuild
http://