class MovieMasher::ChainBlend

a merger chain supporting blend filter

Public Instance Methods

chain_labels(label, i) click to toggle source
# File lib/graphs/chains.rb, line 153
def chain_labels(label, i)
  label_1 = "#{label}#{i}"
  label_2 = "#{label}#{1 == i ? '' : 'ed'}#{i - 1}"
  cmds = []
  cmds << "[#{label_1}]format=pix_fmts=rgba[#{label_1}_rgba]"
  cmds << "[#{label_2}]format=pix_fmts=rgba[#{label_2}_rgba]"
  cmds << "[#{label_1}_rgba][#{label_2}_rgba]"
  puts "CHAIN_LABELS #{cmds.join(';')}"
  cmds.join(';')
end