Class: JXL::Frame

Inherits:
Object
  • Object
show all
Defined in:
lib/jxl/image.rb,
lib/jxl/frame/toc.rb

Defined Under Namespace

Classes: TOC

Constant Summary collapse

TOC_DISTRIBUTIONS =
[Bit::Field.bits(10), Bit::Field.bits_offset(14, 1024),
Bit::Field.bits_offset(22, 17_408), Bit::Field.bits_offset(30, 4_211_712)].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(planes:, duration:, timecode:, name:, blend_info:) ⇒ Frame

Returns a new instance of Frame.



7
8
9
10
11
12
13
# File 'lib/jxl/image.rb', line 7

def initialize(planes:, duration:, timecode:, name:, blend_info:)
  @planes = planes
  @duration = duration
  @timecode = timecode
  @name = name
  @blend_info = blend_info
end

Instance Attribute Details

#blend_infoObject (readonly)

Returns the value of attribute blend_info.



5
6
7
# File 'lib/jxl/image.rb', line 5

def blend_info
  @blend_info
end

#durationObject (readonly)

Returns the value of attribute duration.



5
6
7
# File 'lib/jxl/image.rb', line 5

def duration
  @duration
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/jxl/image.rb', line 5

def name
  @name
end

#planesObject (readonly)

Returns the value of attribute planes.



5
6
7
# File 'lib/jxl/image.rb', line 5

def planes
  @planes
end

#timecodeObject (readonly)

Returns the value of attribute timecode.



5
6
7
# File 'lib/jxl/image.rb', line 5

def timecode
  @timecode
end