Method: Timecode#to_uint

Defined in:
lib/timecode.rb

#to_uintObject

get the timecode as bit-packed unsigned 32 bit int (suitable for DPX and SGI)



258
259
260
261
262
263
264
265
# File 'lib/timecode.rb', line 258

def to_uint
  elements = (("%02d" * 4) % [hours,minutes,seconds,frames]).split(//).map{|e| e.to_i }
  uint = 0
  elements.reverse.each_with_index do | p, i |
    uint |= p << 4 * i 
  end
  uint
end