musikr: reformat
This commit is contained in:
parent
6705e869da
commit
7429dd5174
4 changed files with 12 additions and 12 deletions
|
@ -31,8 +31,8 @@ import org.oxycblt.musikr.metadata.Metadata
|
|||
* This is useful for when you want to try multiple sources for a cover, such as first embedded and
|
||||
* then filesystem-based covers.
|
||||
*
|
||||
* This implementation will return the first hit from the provided [Covers] instances.
|
||||
* It's assumed that there is no ID overlap between [Covers] outputs.
|
||||
* This implementation will return the first hit from the provided [Covers] instances. It's assumed
|
||||
* that there is no ID overlap between [Covers] outputs.
|
||||
*
|
||||
* See [MutableChainedCovers] for the mutable variant.
|
||||
*
|
||||
|
@ -59,8 +59,8 @@ class ChainedCovers<R : Cover, T : R>(vararg many: Covers<out T>) : Covers<R> {
|
|||
* then filesystem-based covers.
|
||||
*
|
||||
* This implementation will use the first hit from the provided [MutableCovers] instances, and
|
||||
* propagate cleanup across all [MutableCovers] instances.
|
||||
* It's assumed that there is no ID overlap between [MutableCovers] outputs.
|
||||
* propagate cleanup across all [MutableCovers] instances. It's assumed that there is no ID overlap
|
||||
* between [MutableCovers] outputs.
|
||||
*
|
||||
* See [ChainedCovers] for the immutable variant.
|
||||
*
|
||||
|
|
|
@ -36,8 +36,8 @@ import org.oxycblt.musikr.metadata.Metadata
|
|||
* - Covers generated by this implementation will take up large amounts of memory, more or less
|
||||
* guaranteeing an OOM error if used with a large library.
|
||||
*
|
||||
* You are best to compose this with [org.oxycblt.musikr.covers.stored.MutableStoredCovers] to get
|
||||
* a full embedded cover repository.
|
||||
* You are best to compose this with [org.oxycblt.musikr.covers.stored.MutableStoredCovers] to get a
|
||||
* full embedded cover repository.
|
||||
*
|
||||
* @param coverIdentifier The [CoverIdentifier] to use to create identifiers for the cover data.
|
||||
*/
|
||||
|
|
|
@ -71,11 +71,11 @@ interface CoverStorage {
|
|||
|
||||
companion object {
|
||||
/**
|
||||
* Create a [CoverStorage] implementation at some directory. Covers will be written
|
||||
* in that location.
|
||||
* Create a [CoverStorage] implementation at some directory. Covers will be written in that
|
||||
* location.
|
||||
*
|
||||
* Note that in the context of Android's scoped storage, the given [File] will need to be
|
||||
* in the app's internal storage
|
||||
* Note that in the context of Android's scoped storage, the given [File] will need to be in
|
||||
* the app's internal storage
|
||||
*
|
||||
* @param dir The directory to store the covers in.
|
||||
* @return A [CoverStorage] instance.
|
||||
|
|
|
@ -64,8 +64,8 @@ object NoTranscoding : Transcoding {
|
|||
* A [Transcoding] implementation that compresses the cover data into a specific format, size, and
|
||||
* quality.
|
||||
*
|
||||
* This is useful if you want to standardize the covers to a specific format and minimize
|
||||
* the size of the cover data to save space.
|
||||
* This is useful if you want to standardize the covers to a specific format and minimize the size
|
||||
* of the cover data to save space.
|
||||
*
|
||||
* @param format The [Bitmap.CompressFormat] to use to compress the cover data.
|
||||
* @param resolution The resolution to use for the cover data.
|
||||
|
|
Loading…
Reference in a new issue