Class: ID3Tag::Frames::V2::PictureFrame
Constant Summary
collapse
- LINK_SYMBOL =
'-->'
- IMPLIED_MIME_TYPE =
'image/'
- TYPES =
{
0x00 => :other, 0x01 => :file_icon_png32, 0x02 => :file_icon, 0x03 => :cover_front, 0x04 => :cover_back, 0x05 => :leaflet_page, 0x06 => :media, 0x07 => :lead_artist, 0x08 => :artist, 0x09 => :conductor, 0x0a => :band, 0x0b => :composer, 0x0c => :lyricist, 0x0d => :recording_location, 0x0e => :during_recording, 0x0f => :during_performance, 0x10 => :movie_screen_capture, 0x11 => :fish, 0x12 => :illustration, 0x13 => :band_logotype, 0x14 => :publisher_logotype }
Constants inherited
from BasicFrame
BasicFrame::DECOMPRESSED_SIZE_BYTE_COUNT, BasicFrame::GROUP_BYTE_COUNT
Instance Attribute Summary
Attributes inherited from BasicFrame
#id, #raw_content
Instance Method Summary
collapse
Methods inherited from BasicFrame
#compressed?, #data_length_indicator?, #encrypted?, #encryption_id, #final_size, #group_id, #grouped?, #initialize, #inspect, #inspectable_content, #preserve_on_file_alteration?, #preserve_on_tag_alteration?, #read_additional_info_byte, #read_only?, #unsynchronised?, #usable_content
Instance Method Details
#content ⇒ Object
62
63
64
|
# File 'lib/id3tag/frames/v2/picture_frame.rb', line 62
def content
data
end
|
#data ⇒ Object
66
67
68
|
# File 'lib/id3tag/frames/v2/picture_frame.rb', line 66
def data
parts[:data]
end
|
#description ⇒ Object
57
58
59
60
|
# File 'lib/id3tag/frames/v2/picture_frame.rb', line 57
def description
encoding = get_encoding
EncodingUtil.encode(parts[:description], encoding)
end
|
#link? ⇒ Boolean
49
50
51
|
# File 'lib/id3tag/frames/v2/picture_frame.rb', line 49
def link?
mime_type == LINK_SYMBOL
end
|
#type ⇒ Object
53
54
55
|
# File 'lib/id3tag/frames/v2/picture_frame.rb', line 53
def type
TYPES[parts[:picture_type_byte]]
end
|