parse GPano:PosePitchDegrees and GPano:PoseRollDegrees (#8)
This commit is contained in:
13
TinyEXIF.cpp
13
TinyEXIF.cpp
@@ -1092,6 +1092,8 @@ int EXIFInfo::parseFromXMPSegmentXML(const char* szXML, unsigned len) {
|
||||
ParseXMP::Value(document, "drone-parrot:CameraYawDegree", GeoLocation.YawDegree);
|
||||
ParseXMP::Value(document, "Camera:AboveGroundAltitude", GeoLocation.RelativeAltitude);
|
||||
}
|
||||
ParseXMP::Value(document, "GPano:PosePitchDegrees", GPano.PosePitchDegrees);
|
||||
ParseXMP::Value(document, "GPano:PoseRollDegrees", GPano.PoseRollDegrees);
|
||||
|
||||
return PARSE_SUCCESS;
|
||||
}
|
||||
@@ -1143,6 +1145,13 @@ bool EXIFInfo::Geolocation_t::hasSpeed() const {
|
||||
return SpeedX != DBL_MAX && SpeedY != DBL_MAX && SpeedZ != DBL_MAX;
|
||||
}
|
||||
|
||||
bool EXIFInfo::GPano_t::hasPosePitchDegrees() const {
|
||||
return PosePitchDegrees != DBL_MAX;
|
||||
}
|
||||
|
||||
bool EXIFInfo::GPano_t::hasPoseRollDegrees() const {
|
||||
return PoseRollDegrees != DBL_MAX;
|
||||
}
|
||||
|
||||
void EXIFInfo::clear() {
|
||||
Fields = FIELD_NA;
|
||||
@@ -1230,6 +1239,10 @@ void EXIFInfo::clear() {
|
||||
GeoLocation.LonComponents.minutes = 0;
|
||||
GeoLocation.LonComponents.seconds = 0;
|
||||
GeoLocation.LonComponents.direction = 0;
|
||||
|
||||
// GPano
|
||||
GPano.PosePitchDegrees = DBL_MAX;
|
||||
GPano.PoseRollDegrees = DBL_MAX;
|
||||
}
|
||||
|
||||
} // namespace TinyEXIF
|
||||
|
||||
Reference in New Issue
Block a user