int MrwImage::pixelWidth() const
 {
     ExifData::const_iterator imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.Image.ImageWidth"));
     if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
         return imageWidth->toLong();
     }
     return 0;
 }
 int MrwImage::pixelHeight() const
 {
     ExifData::const_iterator imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.Image.ImageLength"));
     if (imageHeight != exifData_.end() && imageHeight->count() > 0) {
         return imageHeight->toLong();
     }
     return 0;
 }
示例#3
0
 int Cr2Image::pixelHeight() const
 {
     ExifData::const_iterator imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelYDimension"));
     if (imageHeight != exifData_.end() && imageHeight->count() > 0) {
         return imageHeight->toLong();
     }
     return 0;
 }
示例#4
0
 int Cr2Image::pixelWidth() const
 {
     ExifData::const_iterator imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelXDimension"));
     if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
         return imageWidth->toLong();
     }
     return 0;
 }
示例#5
0
 int Rw2Image::pixelHeight() const
 {
     ExifData::const_iterator imageHeight =
         exifData_.findKey(Exiv2::ExifKey("Exif.PanasonicRaw.SensorHeight"));
     if (imageHeight != exifData_.end() && imageHeight->count() > 0) {
         return imageHeight->toLong();
     }
     return 0;
 }
示例#6
0
 int Rw2Image::pixelWidth() const
 {
     ExifData::const_iterator imageWidth =
         exifData_.findKey(Exiv2::ExifKey("Exif.PanasonicRaw.SensorWidth"));
     if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
         return imageWidth->toLong();
     }
     return 0;
 }
示例#7
0
void exifPrint(const ExifData& exifData)
{
    ExifData::const_iterator i = exifData.begin();
    for (; i != exifData.end(); ++i) {
        std::cout << std::setw(44) << std::setfill(' ') << std::left
                  << i->key() << " "
                  << "0x" << std::setw(4) << std::setfill('0') << std::right
                  << std::hex << i->tag() << " "
                  << std::setw(9) << std::setfill(' ') << std::left
                  << i->typeName() << " "
                  << std::dec << std::setw(3)
                  << std::setfill(' ') << std::right
                  << i->count() << "  "
                  << std::dec << i->value()
                  << "\n";
    }
}