refinery
RAW file processor
|
Returns Camera instances. More...
#include <refinery/camera.h>
Public Member Functions | |
const Camera & | detectCamera (const ExifData &exifData) const |
Figures out which const Camera& applies to the given Exif data, and returns it. | |
Static Public Member Functions | |
static CameraFactory & | instance () |
The global CameraFactory. |
Returns Camera instances.
Call CameraFactory::instance().detectCamera(exifData) to return a Camera instance representing the camera model that shot the photo which includes exifData.
Each Camera is initialized once, statically. You can only pass Camera instances by reference.
If you want to find out anything about an actual photograph, you should look to CameraDataFactory, not CameraFactory.
Figures out which const Camera& applies to the given Exif data, and returns it.
The returned const Camera& should not be memory-managed. It will last the duration of the program execution.
If no known real-world camera could have produced the given Exif data (that is, if a computer program did it), a Camera will still be returned. It's called the NullCamera, and there's nothing special about it.
[in] | exifData | A photograph's Exif data. |