-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cover art support #278
Merged
Merged
Cover art support #278
Changes from all commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
92247eb
Move CoverArtCache::extractEmbeddedCover to a utility class.
rryan 34d48aa
Minor test cleanups.
rryan af707e4
Prevent deep-copy of QImage while checksumming it and move calculateHash
rryan f987621
Move CoverArtCache::cropImage to CoverArtUtils.
rryan 5d2fa92
Move CoverArtCache::rescaleBigImage to CoverArtUtils.
rryan eb265df
Some NULL-safety changes.
rryan 0f3f844
Remove 'widget' from method / var names.
rryan 8cf9b8a
Move CoverArtCache::searchInTrackDirectory to CoverArtUtils.
rryan 1af2430
Misc. fixes.
rryan f3eff5c
Remove default cover handling from CoverArtCache.
rryan 32d9da9
More misc.
rryan 08edc49
Avoid doing file I/O in the main thread.
rryan 1ecde90
Move CoverInfo to coverart.h. Add CoverArt struct.
rryan 7bbb903
Refactor to use the common structures in coverart.h.
rryan 7c199cb
Cache-key improvements.
rryan 107f9f9
Hash the full-sized image, not the cropped or size-capped image.
rryan 807f621
Only check QPixmapCache if we have a non-empty cover hash.
rryan 679f786
Add a debugging flag to CoverArtCache.
rryan b1b0f5e
Pull file extension regex generator into a utility file.
rryan 2057607
Add source and type fields to CoverInfo and equality operators.
rryan cdf1a03
Add CoverArt property to TrackInfoObject.
rryan 8183dc0
Add CoverArt widget to Deere.
rryan 672111c
Add loadCover and selectCoverArtForTrack helper methods to CoverArtUt…
rryan 42c8155
Massive cover art refactor.
rryan a5f2fc5
Avoid hard-coding size policies.
rryan 5ef00f4
Rework WCoverArt <-> WTrackTableView signal flow.
rryan 0477ae7
Remove hard-coded layout and sizes from WCoverArt.
rryan 7000a9b
Add deck cover art to Deere.
rryan 8572aa4
Remove unused BaseTrackCache update signals/slots.
rryan 59ee4e5
Support drag and drop to/from WCoverArt.
rryan ae905d5
Use util/time.h instead of GuiTick for user action timing.
rryan cd4b3c8
Rename issueRepaint to signalWhenDone and remove update of WTrackTabl…
rryan 9c0c1bb
Delete CoverAndAlbumInfo since album info is unused now.
rryan 587ee29
Remove CoverArtCache use from WCoverArtMenu.
rryan 946cb34
Remove unused member variable from TrackCollection.
rryan 356d48c
Get supported cover extensions from CoverArtUtils.
rryan afdeb96
Add qDebug helpers for CoverArt and CoverInfo.
rryan 0855f56
Early exit in CoverArtCache::requestCover if CoverInfo type is NONE.
rryan 60c5853
Add CoverArtUtils::guessCoverArt helper method.
rryan e9aa413
No need to manually update() DlgTrackInfo.
rryan 9bbbea5
Improve connection between WCoverArtMenu, WCoverArtLabel, WCoverArt, …
rryan 31991b8
Disconnect TIO changed signals while applying track info edits.
rryan fb7570e
Don't crop cached pixmaps anymore.
rryan 8e11ac5
Add coverArtUpdated signal to TrackInfoObject.
rryan da949ae
Fix test.
rryan 8b77640
Allow segregation of multiple users of CoverArtCache.
rryan 359dade
Move cover art to the Deere track text row.
rryan 139a05a
Make a CoverArtUtils::selectCoverArtForTrack variant that doesn't
rryan c0cd784
Load the player's loaded track into WCoverArt upon creation.
rryan abf7eca
Use QStylePainter in WCoverArt so we can style the widget with CSS.
rryan a4132de
Default coverart_source and coverart_type to 0 instead of NULL.
rryan b90c5c6
Add first pass at cover art scan for UNKNOWN tracks.
rryan ea87686
Slight phrase tweaking.
rryan 33509d1
Add warning about user data.
rryan 29777ea
Merge remote-tracking branch 'cardinot/coverArtSupport' into
rryan 49fee52
Fix issue where files on disk aren't picked up during existing-tracks…
rryan 43cde9e
Fix QSet<int> signal queueing errors.
rryan d081ff7
Remove trackId from CoverInfo.
rryan 1d4105c
When a library row's cover art is ready explictly refresh that row.
rryan dc82b07
Use foreach instead of C++-style iterator.
rryan 94e511e
Address review comments.
rryan 06b1952
Remove unnecessary use of CoverArt.
rryan 0c48c06
Fix UTF-8 test.
rryan 320a803
Change CoverInfo hash to an integer.
rryan dbe9811
Use cover hash as request reference in CoverArtDelegate.
rryan f9e9148
Support sorting by cover art.
rryan 343f7c0
Delay trackSelected signal until the user interaction timeout.
rryan 07fd51f
Only repaint cells that were cache misses when we hit the user
rryan 0425bc4
Double-check that we are not overwriting USER_SELECTED covers.
rryan 3d0f864
Delete unused method.
rryan fa683d8
Switch CoverArt use to CoverInfo.
rryan 3468571
Revert DlgTrackInfo parentage change.
rryan 8dea56a
Call activateWindow on DlgCoverArtFullSize.
rryan e394457
Compare potential cover filenames case-insensitively.
rryan dddeb3b
Handle COVER_NONE covers in WCoverArtMenu::slotChange.
rryan 0980b6b
Support multiple-selection for cover art menu in WTrackTableView.
rryan cf7c539
Show cover art progress on the library scanner dialog.
rryan a7329e9
Update BaseTrackCache once cover art processing is done.
rryan 4ad6b5d
Only pick non-matching cover files if there is only one option.
rryan f3e2c5c
Create a security token for files chosen via WCoverArtMenu.
rryan 24874c5
Acquire sandbox tokens in various places for cover art.
rryan b95c452
Only save images in TIO if it is not NULL
09b16a3
Reduce code duplication in finding possible Covers
46fbd24
Move CoverArtUtil tests to own class
82085f3
Codying style clean up coverartcache
76113d0
Use COSlave instead of COThread
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be a Singleton -- I see why it's easier to make it one but this is a GUI widget. It increases the risk of lifetime issues -- for example it depends on CoverArtCache yet it is destroyed after CoverArtCache is destroyed.