Lines Matching refs:mGPSData
45 mEXIFData.mGPSData.mLatDeg,
46 mEXIFData.mGPSData.mLatMin,
47 mEXIFData.mGPSData.mLatSec,
48 mEXIFData.mGPSData.mLatSecDiv ) == NO_ERROR )
53 strncpy(mEXIFData.mGPSData.mLatRef, GPS_NORTH_REF, GPS_REF_SIZE);
57 strncpy(mEXIFData.mGPSData.mLatRef, GPS_SOUTH_REF, GPS_REF_SIZE);
60 mEXIFData.mGPSData.mLatValid = true;
64 mEXIFData.mGPSData.mLatValid = false;
69 mEXIFData.mGPSData.mLatValid = false;
77 mEXIFData.mGPSData.mLongDeg,
78 mEXIFData.mGPSData.mLongMin,
79 mEXIFData.mGPSData.mLongSec,
80 mEXIFData.mGPSData.mLongSecDiv) == NO_ERROR )
85 strncpy(mEXIFData.mGPSData.mLongRef, GPS_EAST_REF, GPS_REF_SIZE);
89 strncpy(mEXIFData.mGPSData.mLongRef, GPS_WEST_REF, GPS_REF_SIZE);
92 mEXIFData.mGPSData.mLongValid= true;
96 mEXIFData.mGPSData.mLongValid = false;
101 mEXIFData.mGPSData.mLongValid = false;
107 mEXIFData.mGPSData.mAltitude = floor(fabs(gpsPos));
109 mEXIFData.mGPSData.mAltitudeRef = 1;
111 mEXIFData.mGPSData.mAltitudeRef = 0;
113 mEXIFData.mGPSData.mAltitudeValid = true;
117 mEXIFData.mGPSData.mAltitudeValid= false;
126 mEXIFData.mGPSData.mTimeStampHour = timeinfo->tm_hour;
127 mEXIFData.mGPSData.mTimeStampMin = timeinfo->tm_min;
128 mEXIFData.mGPSData.mTimeStampSec = timeinfo->tm_sec;
129 mEXIFData.mGPSData.mTimeStampValid = true;
133 mEXIFData.mGPSData.mTimeStampValid = false;
138 mEXIFData.mGPSData.mTimeStampValid = false;
147 strftime(mEXIFData.mGPSData.mDatestamp, GPS_DATESTAMP_SIZE, "%Y:%m:%d", timeinfo);
148 mEXIFData.mGPSData.mDatestampValid = true;
152 mEXIFData.mGPSData.mDatestampValid = false;
157 mEXIFData.mGPSData.mDatestampValid = false;
162 strncpy(mEXIFData.mGPSData.mProcMethod, valstr, GPS_PROCESSING_SIZE-1);
163 mEXIFData.mGPSData.mProcMethodValid = true;
167 mEXIFData.mGPSData.mProcMethodValid = false;
172 strncpy(mEXIFData.mGPSData.mMapDatum, valstr, GPS_MAPDATUM_SIZE-1);
173 mEXIFData.mGPSData.mMapDatumValid = true;
177 mEXIFData.mGPSData.mMapDatumValid = false;
182 strncpy(mEXIFData.mGPSData.mVersionId, valstr, GPS_VERSION_SIZE-1);
183 mEXIFData.mGPSData.mVersionIdValid = true;
187 mEXIFData.mGPSData.mVersionIdValid = false;
377 ( mEXIFData.mGPSData.mLatValid ) )
379 exifTags->ulGpsLatitude[0] = abs(mEXIFData.mGPSData.mLatDeg);
380 exifTags->ulGpsLatitude[2] = abs(mEXIFData.mGPSData.mLatMin);
381 exifTags->ulGpsLatitude[4] = abs(mEXIFData.mGPSData.mLatSec);
384 exifTags->ulGpsLatitude[5] = abs(mEXIFData.mGPSData.mLatSecDiv);
389 ( mEXIFData.mGPSData.mLatValid ) )
391 exifTags->cGpslatitudeRef[0] = ( OMX_S8 ) mEXIFData.mGPSData.mLatRef[0];
397 ( mEXIFData.mGPSData.mLongValid ) )
399 exifTags->ulGpsLongitude[0] = abs(mEXIFData.mGPSData.mLongDeg);
400 exifTags->ulGpsLongitude[2] = abs(mEXIFData.mGPSData.mLongMin);
401 exifTags->ulGpsLongitude[4] = abs(mEXIFData.mGPSData.mLongSec);
404 exifTags->ulGpsLongitude[5] = abs(mEXIFData.mGPSData.mLongSecDiv);
409 ( mEXIFData.mGPSData.mLongValid ) )
411 exifTags->cGpsLongitudeRef[0] = ( OMX_S8 ) mEXIFData.mGPSData.mLongRef[0];
417 ( mEXIFData.mGPSData.mAltitudeValid) )
419 exifTags->ulGpsAltitude[0] = ( OMX_U32 ) mEXIFData.mGPSData.mAltitude;
425 ( mEXIFData.mGPSData.mAltitudeValid) )
427 exifTags->ucGpsAltitudeRef = (OMX_U8) mEXIFData.mGPSData.mAltitudeRef;
432 ( mEXIFData.mGPSData.mMapDatumValid ) )
434 memcpy(sharedPtr, mEXIFData.mGPSData.mMapDatum, GPS_MAPDATUM_SIZE);
443 ( mEXIFData.mGPSData.mProcMethodValid ) )
450 mEXIFData.mGPSData.mProcMethod,
458 ( mEXIFData.mGPSData.mVersionIdValid ) )
460 exifTags->ucGpsVersionId[0] = ( OMX_U8 ) mEXIFData.mGPSData.mVersionId[0];
461 exifTags->ucGpsVersionId[1] = ( OMX_U8 ) mEXIFData.mGPSData.mVersionId[1];
462 exifTags->ucGpsVersionId[2] = ( OMX_U8 ) mEXIFData.mGPSData.mVersionId[2];
463 exifTags->ucGpsVersionId[3] = ( OMX_U8 ) mEXIFData.mGPSData.mVersionId[3];
468 ( mEXIFData.mGPSData.mTimeStampValid ) )
470 exifTags->ulGpsTimeStamp[0] = mEXIFData.mGPSData.mTimeStampHour;
471 exifTags->ulGpsTimeStamp[2] = mEXIFData.mGPSData.mTimeStampMin;
472 exifTags->ulGpsTimeStamp[4] = mEXIFData.mGPSData.mTimeStampSec;
480 ( mEXIFData.mGPSData.mDatestampValid ) )
483 ( char * ) mEXIFData.mGPSData.mDatestamp,
573 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mLatValid)) {
578 abs(mEXIFData.mGPSData.mLatDeg), 1,
579 abs(mEXIFData.mGPSData.mLatMin), 1,
580 abs(mEXIFData.mGPSData.mLatSec), abs(mEXIFData.mGPSData.mLatSecDiv));
584 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mLatValid)) {
585 ret = exifTable->insertElement(TAG_GPS_LAT_REF, mEXIFData.mGPSData.mLatRef);
588 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mLongValid)) {
593 abs(mEXIFData.mGPSData.mLongDeg), 1,
594 abs(mEXIFData.mGPSData.mLongMin), 1,
595 abs(mEXIFData.mGPSData.mLongSec), abs(mEXIFData.mGPSData.mLongSecDiv));
599 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mLongValid)) {
600 ret = exifTable->insertElement(TAG_GPS_LONG_REF, mEXIFData.mGPSData.mLongRef);
603 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mAltitudeValid)) {
608 abs( mEXIFData.mGPSData.mAltitude), 1);
612 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mAltitudeValid)) {
616 "%d", mEXIFData.mGPSData.mAltitudeRef);
620 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mMapDatumValid)) {
621 ret = exifTable->insertElement(TAG_GPS_MAP_DATUM, mEXIFData.mGPSData.mMapDatum);
624 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mProcMethodValid)) {
629 mEXIFData.mGPSData.mProcMethod,
634 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mVersionIdValid)) {
639 mEXIFData.mGPSData.mVersionId[0],
640 mEXIFData.mGPSData.mVersionId[1],
641 mEXIFData.mGPSData.mVersionId[2],
642 mEXIFData.mGPSData.mVersionId[3]);
646 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mTimeStampValid)) {
651 mEXIFData.mGPSData.mTimeStampHour, 1,
652 mEXIFData.mGPSData.mTimeStampMin, 1,
653 mEXIFData.mGPSData.mTimeStampSec, 1);
657 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mDatestampValid) ) {
658 ret = exifTable->insertElement(TAG_GPS_DATESTAMP, mEXIFData.mGPSData.mDatestamp);