lib/chunky_png/canvas/adam7_interlacing.rb
# Returns an array with the x-shift, x-offset, y-shift and y-offset for the requested pass.
# @param [Integer] pass The pass number, should be in 0..6.
Returns an array with the x-shift, x-offset, y-shift and y-offset for the requested pass.
Returns an array with the x - shift x - offset y - shift and y - offset for the requested pass .
def adam7_multiplier_offset(pass)
        [
          3 - (pass >> 1),
          pass & 1 == 0 ? 0 : 8 >> ((pass + 1) >> 1),
          pass == 0 ? 3 : 3 - ((pass - 1) >> 1),
          pass == 0 || pass & 1 == 1 ? 0 : 8 >> (pass >> 1),
        ]
      end
def adam7_multiplier_offset ( pass ) [ 3 - ( pass >> 1 ) , pass & 1 == 0 ? 0 : 8 >> ( ( pass + 1 ) >> 1 ) , pass == 0 ? 3 : 3 - ( ( pass - 1 ) >> 1 ) , pass == 0 || pass & 1 == 1 ? 0 : 8 >> ( pass >> 1 ) , ] end
Returns an array with the x-shift, x-offset, y-shift and y-offset for the requested pass.
Returns an array with the x - shift x - offset y - shift and y - offset for the requested pass .
pass
<not_specific>
<not_specific>
pass The pass number, should be in 0..6.
pass The pass number should be in 0 .. 6 .