class FlameChannelParser::TimewarpExtractor::X
Constants
- FRAMECURVE_FORMAT
Public Instance Methods
find_channel_in(channels, channel_path)
click to toggle source
This one is overridden here since instead of looking for a particular channel we are looking for matches from a list
# File lib/timewarp_extractor.rb, line 13 def find_channel_in(channels, channel_path) # Ignore the passed channels, just override detected_channel = channels.find{|c| CHANNELS.include?(c.path) } return detected_channel if detected_channel raise ChannelNotFoundError, compose_channel_not_found_message(CHANNELS.join(' or '), channels) end
write_channel(interpolator, to_io, from_frame_i, to_frame_i)
click to toggle source
Overridden to write a framecurve header
Calls superclass method
FlameChannelParser::Extractor#write_channel
# File lib/timewarp_extractor.rb, line 28 def write_channel(interpolator, to_io, from_frame_i, to_frame_i) @c = Framecurve::Curve.new super Framecurve::Serializer.new.serialize(to_io, @c) end
write_frame(to_io, frame, value)
click to toggle source
Overridden to force CRLF line breaks as per Framecurve spec
# File lib/timewarp_extractor.rb, line 23 def write_frame(to_io, frame, value) @c.tuple!(frame, value) end