You have posted two pictures of catapults there, the first one is a mangonel, the second one is a trebuchet.Catapult :
View attachment 1430763
Trebuchet :
View attachment 1430764
(Musée de l'Armement Médiéval - Château de Castelnaud France)
The principle of operation and the size of the machine are very different