Fix easyaccess-test

main
Miloš Komarčević 5 years ago
parent 95c0df6c14
commit 5e92d5e078

@ -19,7 +19,7 @@ struct EasyAccess {
static const EasyAccess easyAccess[] = {
{ "Orientation", Exiv2::orientation },
{ "ISO speed", Exiv2::isoSpeed },
{ "Date & time (original)", Exiv2::dateTimeOriginal },
{ "Date & time original", Exiv2::dateTimeOriginal },
{ "Flash bias", Exiv2::flashBias },
{ "Exposure mode", Exiv2::exposureMode },
{ "Scene mode", Exiv2::sceneMode },
@ -70,7 +70,7 @@ try {
for (unsigned int i = 0; i < EXV_COUNTOF(easyAccess); ++i) {
Exiv2::ExifData::const_iterator pos = easyAccess[i].findFct_(ed);
std::cout << std::setw(20) << std::left << easyAccess[i].label_;
std::cout << std::setw(21) << std::left << easyAccess[i].label_;
if (pos != ed.end()) {
std::cout << " (" << std::setw(35) << pos->key() << ") : "
<< pos->print(&ed) << "\n";

@ -186,7 +186,7 @@ namespace Exiv2 {
ExifData::const_iterator dateTimeOriginal(const ExifData& ed)
{
static const char* keys[] = {
"Exif.Photo.DateTimeOriginal"
"Exif.Photo.DateTimeOriginal",
"Exif.Image.DateTimeOriginal"
};
return findMetadatum(ed, keys, EXV_COUNTOF(keys));

@ -18,6 +18,7 @@ Set Exif.Image.Make "Samsung" (Ascii)
""",
"""Orientation ( ) :
ISO speed ( ) :
Date & time original ( ) :
Flash bias ( ) :
Exposure mode ( ) :
Scene mode ( ) :
@ -34,9 +35,20 @@ Camera make (Exif.Image.Make ) : Samsung
Camera model ( ) :
Exposure time ( ) :
FNumber ( ) :
Shutter speed value ( ) :
Aperture value ( ) :
Brightness value ( ) :
Exposure bias ( ) :
Max aperture value ( ) :
Subject distance ( ) :
Light source ( ) :
Flash ( ) :
Camera serial number ( ) :
Focal length ( ) :
Subject location/area ( ) :
Flash energy ( ) :
Exposure index ( ) :
Sensing method ( ) :
AF point ( ) :
"""
]

Loading…
Cancel
Save