def old_convert_integers_by_ratio(ratio, num_inputs, src_offset=0, dest_offset=0):
    max_taken = -1
    for in_frame in xrange(0, num_inputs):
        out_frame = int(math.floor((in_frame + 1) * ratio)) - 1
        if out_frame > max_taken:
            for copy in xrange(max_taken + 1, out_frame + 1):
                yield (in_frame + src_offset, copy + dest_offset)
            max_taken = out_frame
Given an out:in ratio and a number of inputs, give the reassignments
dataset/ETHPy150Open robmoggach/python-moshion/moshion/extractframes/rateconverter.py/old_convert_integers_by_ratio