You are talking for two different kind of regulators,
LM317 is a linear regulator it can only provide a voltage lower than the input and the input/output current is almost the same at any output voltage,
think of it a a series resistor that automatically varies the resistance in order to keep the output voltage steady,
because of that fact the additional voltage will be consumed on that resistor (pass element) as heat.
On the other hand a switching regulator works like a switch that is either on or off, because of that the efficiency is high and the power consumed as heat is low,
there is also some king of energy storage in the output (coil) and depending on the topology it can either give more voltage than the input (step up) or less (step down),
the voltage level is controlled by controlling the time that the switch is on or off (varying duty cycle).
In any case you can never get more energy than the amount you give, so when you have a supply that can give a max of 1v/1A (=1W) to a regulator, you can only get an output that is less than that to about 90% (best case).
When you want 12v/1A (12W) you have to provide at least 13W input and if the input voltage is lower than the output voltage you have to use a switching regulator to step up the voltage.
Alex