Concept number one: You can't manufacture detail that isn't there in the image in the first place. So most of the TV stunt-technology you see has a grain of truth but is way overblown - like extracting the licence plate of a car around the corner and down the block by enlarging and enhancing a dime-sized reflection on the chrome bumper of another car... Nah. Unless the camera was like, 300 Megapixels and the bumper was a perfect mirror. Any details that are below the pixel size of the image capturing device (pixels on a digital camera, silver grains on film) cannot be recovered.
When you enlarge an image, you get the same detail, in larger pixels. The number of pixels doesn't change, unless you use interpolation. This is using math to estimate what the intervening pixels would have been coloured if they existed. Example: You want to blow up an image to double its size. So a 1 Megapixel image will become 4 megapixels -- the other three million pixels don't exist and they have to be manufactured.
ACG The original information (letters stand for colour values)
A_C_G Now stretched out to 2x size, leaving blank spaces
AbCeG Interpolated by averaging the colour difference in the "spaces"
and inserting new pixels
(of course this has to work in two dimensions)
Interpolation works well for areas of little detail and smooth colour, it works less well for contrasty images and sharp edges. This is a simplistic explanation, the math that Photoshop uses is much more complex.
LizardTech has a fractal mathematics software Genuine Fractals that does a better job than Photoshop can on its own.
http://www.lizardtech.com/products/gf/
Thanks
Trevor
CanadaRAM.com