This mechanism uses a cam to move a shaft containing one worm gear. Since the displacement caused by the cam is the same made by the worm in half a turn, during the first half both movements null each other, and during the other half they sum, doubling the displacement.
Video at https://youtu.be/xjw5aq2LFpU.