|
JubeatPlus 3.9.11
|
A one-shot loader for a single tune's artwork. More...
#include <ArtworkLoader.h>


Instance Methods | |
| (instancetype) | - initWithPath:tuneID:indexRow:size:bigArtwork: |
| Builds a loader that remembers which row asked. | |
| (instancetype) | - initWithPath:tuneID:size:bigArtwork: |
| Builds a loader with no row. | |
| (nullable UIImage *) | - shrinkImage: |
| Redraws an image at this loader's size. | |
| (void) | - loadArtwork |
| Unzips, deciphers and decodes the artwork, then tells the delegate. | |
Properties | |
| UIImage * | image |
The decoded artwork, once -loadArtwork has run. | |
| id< ArtworkLoaderDelegate > | delegate |
| The object told when the artwork is ready. | |
| unsigned int | tuneID |
| Which tune this artwork belongs to. | |
| int | indexRow |
| Which row asked for it. | |
A one-shot loader for a single tune's artwork.
| - (instancetype) initWithPath: | (nullable NSString *) | path | |
| tuneID: | (unsigned int) | tuneID | |
| indexRow: | (int) | indexRow | |
| size: | (CGSize) | size | |
| bigArtwork: | (BOOL) | bigArtwork |
Builds a loader that remembers which row asked.
| path | The archive's path. |
| tuneID | The tune. |
| indexRow | The requesting row. |
| size | The largest size the caller wants. Anything wider is shrunk. |
| bigArtwork | Whether to read the large entry rather than the small one. |
| - (instancetype) initWithPath: | (nullable NSString *) | path | |
| tuneID: | (unsigned int) | tuneID | |
| size: | (CGSize) | size | |
| bigArtwork: | (BOOL) | bigArtwork |
Builds a loader with no row.
Identical to the longer initialiser but for the row, which it does not set at all — so indexRow reads as zero rather than as anything meaningful.
| path | The archive's path. |
| tuneID | The tune. |
| size | The largest size the caller wants. |
| bigArtwork | Whether to read the large entry rather than the small one. |
| - (void) loadArtwork |
Unzips, deciphers and decodes the artwork, then tells the delegate.
Synchronous, and wrapped in its own autorelease pool — the whole body sits between objc_autoreleasePoolPush and …Pop , which is what a caller running it off the main thread would need.
| - (nullable UIImage *) shrinkImage: | (nullable UIImage *) | image |
Redraws an image at this loader's size.
The new context copies the source's bit depth, row stride, colour space and bitmap info, so only the dimensions change.
| image | The image to shrink. |
|
readwritenonatomicstrong |
The decoded artwork, once -loadArtwork has run.
|
readnonatomicassign |
Which row asked for it.
Carried for the delegate to read back.
|
readnonatomicassign |
Which tune this artwork belongs to.
Carried for the delegate to read back.