canonmn.hpp File Reference

Canon MakerNote.References: EXIF MakerNote of Canon by David Burren Canon makernote tags by Phil Harvey. More...

#include "types.hpp"
#include "makernote.hpp"
#include "tags.hpp"
#include <string>
#include <iosfwd>
#include <memory>

Include dependency graph for canonmn.hpp:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Namespaces

namespace  Exiv2

Classes

class  Exiv2::CanonMakerNote
 MakerNote for Canon cameras. More...
struct  Exiv2::CanonMakerNote::RegisterMn
 IGNORE More...

Functions

MakerNote::AutoPtr createCanonMakerNote (bool alloc, const byte *buf, long len, ByteOrder byteOrder, long offset)
 Return an auto-pointer to a newly created empty MakerNote initialized to operate in the memory management model indicated. The caller owns this copy and the auto-pointer ensures that it will be deleted.
float canonEv (long val)
 Convert Canon hex-based EV (modulo 0x20) to real number Ported from Phil Harvey's Image::ExifTool::Canon::CanonEv by Will Stokes.

Detailed Description

Canon MakerNote.References: EXIF MakerNote of Canon by David Burren Canon makernote tags by Phil Harvey.

Version:
Rev
986
Author:
Andreas Huggel (ahu)
David Cannings (dc)
Date:
18-Feb-04, ahu: created
07-Mar-04, ahu: isolated as a separate component
12-Aug-06, dc: started updating all tags

Function Documentation

float canonEv long  val  ) 
 

Convert Canon hex-based EV (modulo 0x20) to real number Ported from Phil Harvey's Image::ExifTool::Canon::CanonEv by Will Stokes.

0x00 -> 0 0x0c -> 0.33333 0x10 -> 0.5 0x14 -> 0.66666 0x20 -> 1 .. 160 -> 5 128 -> 4 143 -> 4.46875

MakerNote::AutoPtr createCanonMakerNote bool  alloc,
const byte buf,
long  len,
ByteOrder  byteOrder,
long  offset
 

Return an auto-pointer to a newly created empty MakerNote initialized to operate in the memory management model indicated. The caller owns this copy and the auto-pointer ensures that it will be deleted.

Parameters:
alloc Memory management model for the new MakerNote. Determines if memory required to store data should be allocated and deallocated (true) or not (false). If false, only pointers to the buffer provided to read() will be kept. See Ifd for more background on this concept.
buf Pointer to the makernote character buffer (not used).
len Length of the makernote character buffer (not used).
byteOrder Byte order in which the Exif data (and possibly the makernote) is encoded (not used).
offset Offset from the start of the TIFF header of the makernote buffer (not used).
Returns:
An auto-pointer to a newly created empty MakerNote. The caller owns this copy and the auto-pointer ensures that it will be deleted.


Generated on Wed Dec 20 19:43:18 2006 for Exiv2 by  doxygen 1.3.9.1