PictureFrame
@UnstableApi
public final class PictureFrame implements Metadata.Entry
A picture parsed from a Vorbis Comment or a FLAC picture block.
Summary
Public fields |
|
|---|---|
final int |
For indexed-color pictures (e.g. GIF), the number of colors used. |
final int |
The color depth of the picture in bits-per-pixel. |
final String |
A description of the picture. |
final int |
The height of the picture in pixels. |
final String |
The MIME type of the picture. |
final byte[] |
The encoded picture data. |
final int |
The type of the picture. |
final int |
The width of the picture in pixels. |
Public constructors |
|---|
PictureFrame( |
Public methods |
|
|---|---|
boolean |
|
static PictureFrame |
fromPictureBlock(ParsableByteArray pictureBlock)Parses a |
int |
hashCode() |
void |
Updates the |
String |
toString() |
Inherited methods |
||||
|---|---|---|---|---|
|
Public fields
colors
public final int colors
For indexed-color pictures (e.g. GIF), the number of colors used. 0 otherwise.
Public constructors
PictureFrame
public PictureFrame(
int pictureType,
String mimeType,
String description,
int width,
int height,
int depth,
int colors,
byte[] pictureData
)
Public methods
fromPictureBlock
public static PictureFrame fromPictureBlock(ParsableByteArray pictureBlock)
Parses a METADATA_BLOCK_PICTURE into a PictureFrame instance.
pictureBlock may be read directly from a FLAC file, or decoded from the base64 content of a Vorbis Comment.
| Parameters | |
|---|---|
ParsableByteArray pictureBlock |
The data of the |
| Returns | |
|---|---|
PictureFrame |
A |
populateMediaMetadata
public void populateMediaMetadata(MediaMetadata.Builder builder)
Updates the MediaMetadata.Builder with the type-specific values stored in this
Entry.
| Parameters | |
|---|---|
MediaMetadata.Builder builder |
The builder to be updated. |