/*------------------------------------------------------------------------------
 src/plugin/djImageIoExr/base.h
 
 Copyright (c) 2004-2006 Darby Johnston.
 All rights reserved.
 Use is subject to license terms.
 
 Requirements:
 
 * OpenEXR - http://www.openexr.com
 
 Supported:
 
 * Channels: l, la, rgb, rgba.
 * Bit depths: f32.
 * Attributes: data compression.
------------------------------------------------------------------------------*/

#ifndef DJ_IMAGE_IO_EXR_BASE_H
#define DJ_IMAGE_IO_EXR_BASE_H
#include <djBase.h>

namespace djImageIoExr {
using namespace dj;

// Plugin name.
//
inline const Str name() { return "EXR"; }

// File extensions.
//
inline const StrList extensionList() { return StrList() + Str(".exr"); }

// Image tags.
//
enum TAG {
  TAG_LONGITUDE, TAG_LATITUDE, TAG_ALTITUDE,
  TAG_FOCUS, TAG_EXPOSURE, TAG_APERTURE, TAG_ISO_SPEED,
  TAG_CHROMATICITIES, TAG_WHITE_LUMINANCE, TAG_X_DENSITY
};

// Labels.
//
inline const StrList tagStr()
  { return StrList() + Str("Longitude") + Str("Latitude") + Str("Altitude") +
    Str("Focus") + Str("Exposure") + Str("Aperture") + Str("ISO Speed") +
    Str("Chromaticities") + Str("White Luminance") + Str("X Density"); }

}

#endif
