Lines Matching refs:mGPSData
48 mEXIFData.mGPSData.mLatDeg,
49 mEXIFData.mGPSData.mLatMin,
50 mEXIFData.mGPSData.mLatSec,
51 mEXIFData.mGPSData.mLatSecDiv ) == NO_ERROR )
56 strncpy(mEXIFData.mGPSData.mLatRef, GPS_NORTH_REF, GPS_REF_SIZE);
60 strncpy(mEXIFData.mGPSData.mLatRef, GPS_SOUTH_REF, GPS_REF_SIZE);
63 mEXIFData.mGPSData.mLatValid = true;
67 mEXIFData.mGPSData.mLatValid = false;
72 mEXIFData.mGPSData.mLatValid = false;
80 mEXIFData.mGPSData.mLongDeg,
81 mEXIFData.mGPSData.mLongMin,
82 mEXIFData.mGPSData.mLongSec,
83 mEXIFData.mGPSData.mLongSecDiv) == NO_ERROR )
88 strncpy(mEXIFData.mGPSData.mLongRef, GPS_EAST_REF, GPS_REF_SIZE);
92 strncpy(mEXIFData.mGPSData.mLongRef, GPS_WEST_REF, GPS_REF_SIZE);
95 mEXIFData.mGPSData.mLongValid= true;
99 mEXIFData.mGPSData.mLongValid = false;
104 mEXIFData.mGPSData.mLongValid = false;
110 mEXIFData.mGPSData.mAltitude = floor(fabs(gpsPos));
112 mEXIFData.mGPSData.mAltitudeRef = 1;
114 mEXIFData.mGPSData.mAltitudeRef = 0;
116 mEXIFData.mGPSData.mAltitudeValid = true;
120 mEXIFData.mGPSData.mAltitudeValid= false;
129 mEXIFData.mGPSData.mTimeStampHour = timeinfo->tm_hour;
130 mEXIFData.mGPSData.mTimeStampMin = timeinfo->tm_min;
131 mEXIFData.mGPSData.mTimeStampSec = timeinfo->tm_sec;
132 mEXIFData.mGPSData.mTimeStampValid = true;
136 mEXIFData.mGPSData.mTimeStampValid = false;
141 mEXIFData.mGPSData.mTimeStampValid = false;
150 strftime(mEXIFData.mGPSData.mDatestamp, GPS_DATESTAMP_SIZE, "%Y:%m:%d", timeinfo);
151 mEXIFData.mGPSData.mDatestampValid = true;
155 mEXIFData.mGPSData.mDatestampValid = false;
160 mEXIFData.mGPSData.mDatestampValid = false;
165 strncpy(mEXIFData.mGPSData.mProcMethod, valstr, GPS_PROCESSING_SIZE-1);
166 mEXIFData.mGPSData.mProcMethodValid = true;
170 mEXIFData.mGPSData.mProcMethodValid = false;
175 strncpy(mEXIFData.mGPSData.mMapDatum, valstr, GPS_MAPDATUM_SIZE-1);
176 mEXIFData.mGPSData.mMapDatumValid = true;
180 mEXIFData.mGPSData.mMapDatumValid = false;
185 strncpy(mEXIFData.mGPSData.mVersionId, valstr, GPS_VERSION_SIZE-1);
186 mEXIFData.mGPSData.mVersionIdValid = true;
190 mEXIFData.mGPSData.mVersionIdValid = false;
379 ( mEXIFData.mGPSData.mLatValid ) )
381 exifTags->ulGpsLatitude[0] = abs(mEXIFData.mGPSData.mLatDeg);
382 exifTags->ulGpsLatitude[2] = abs(mEXIFData.mGPSData.mLatMin);
383 exifTags->ulGpsLatitude[4] = abs(mEXIFData.mGPSData.mLatSec);
386 exifTags->ulGpsLatitude[5] = abs(mEXIFData.mGPSData.mLatSecDiv);
391 ( mEXIFData.mGPSData.mLatValid ) )
393 exifTags->cGpslatitudeRef[0] = ( OMX_S8 ) mEXIFData.mGPSData.mLatRef[0];
399 ( mEXIFData.mGPSData.mLongValid ) )
401 exifTags->ulGpsLongitude[0] = abs(mEXIFData.mGPSData.mLongDeg);
402 exifTags->ulGpsLongitude[2] = abs(mEXIFData.mGPSData.mLongMin);
403 exifTags->ulGpsLongitude[4] = abs(mEXIFData.mGPSData.mLongSec);
406 exifTags->ulGpsLongitude[5] = abs(mEXIFData.mGPSData.mLongSecDiv);
411 ( mEXIFData.mGPSData.mLongValid ) )
413 exifTags->cGpsLongitudeRef[0] = ( OMX_S8 ) mEXIFData.mGPSData.mLongRef[0];
419 ( mEXIFData.mGPSData.mAltitudeValid) )
421 exifTags->ulGpsAltitude[0] = ( OMX_U32 ) mEXIFData.mGPSData.mAltitude;
427 ( mEXIFData.mGPSData.mAltitudeValid) )
429 exifTags->ucGpsAltitudeRef = (OMX_U8) mEXIFData.mGPSData.mAltitudeRef;
434 ( mEXIFData.mGPSData.mMapDatumValid ) )
436 memcpy(sharedPtr, mEXIFData.mGPSData.mMapDatum, GPS_MAPDATUM_SIZE);
445 ( mEXIFData.mGPSData.mProcMethodValid ) )
452 mEXIFData.mGPSData.mProcMethod,
460 ( mEXIFData.mGPSData.mVersionIdValid ) )
462 exifTags->ucGpsVersionId[0] = ( OMX_U8 ) mEXIFData.mGPSData.mVersionId[0];
463 exifTags->ucGpsVersionId[1] = ( OMX_U8 ) mEXIFData.mGPSData.mVersionId[1];
464 exifTags->ucGpsVersionId[2] = ( OMX_U8 ) mEXIFData.mGPSData.mVersionId[2];
465 exifTags->ucGpsVersionId[3] = ( OMX_U8 ) mEXIFData.mGPSData.mVersionId[3];
470 ( mEXIFData.mGPSData.mTimeStampValid ) )
472 exifTags->ulGpsTimeStamp[0] = mEXIFData.mGPSData.mTimeStampHour;
473 exifTags->ulGpsTimeStamp[2] = mEXIFData.mGPSData.mTimeStampMin;
474 exifTags->ulGpsTimeStamp[4] = mEXIFData.mGPSData.mTimeStampSec;
482 ( mEXIFData.mGPSData.mDatestampValid ) )
485 ( char * ) mEXIFData.mGPSData.mDatestamp,
575 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mLatValid)) {
580 abs(mEXIFData.mGPSData.mLatDeg), 1,
581 abs(mEXIFData.mGPSData.mLatMin), 1,
582 abs(mEXIFData.mGPSData.mLatSec), abs(mEXIFData.mGPSData.mLatSecDiv));
586 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mLatValid)) {
587 ret = exifTable->insertElement(TAG_GPS_LAT_REF, mEXIFData.mGPSData.mLatRef);
590 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mLongValid)) {
595 abs(mEXIFData.mGPSData.mLongDeg), 1,
596 abs(mEXIFData.mGPSData.mLongMin), 1,
597 abs(mEXIFData.mGPSData.mLongSec), abs(mEXIFData.mGPSData.mLongSecDiv));
601 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mLongValid)) {
602 ret = exifTable->insertElement(TAG_GPS_LONG_REF, mEXIFData.mGPSData.mLongRef);
605 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mAltitudeValid)) {
610 abs( mEXIFData.mGPSData.mAltitude), 1);
614 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mAltitudeValid)) {
618 "%d", mEXIFData.mGPSData.mAltitudeRef);
622 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mMapDatumValid)) {
623 ret = exifTable->insertElement(TAG_GPS_MAP_DATUM, mEXIFData.mGPSData.mMapDatum);
626 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mProcMethodValid)) {
631 mEXIFData.mGPSData.mProcMethod,
636 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mVersionIdValid)) {
641 mEXIFData.mGPSData.mVersionId[0],
642 mEXIFData.mGPSData.mVersionId[1],
643 mEXIFData.mGPSData.mVersionId[2],
644 mEXIFData.mGPSData.mVersionId[3]);
648 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mTimeStampValid)) {
653 mEXIFData.mGPSData.mTimeStampHour, 1,
654 mEXIFData.mGPSData.mTimeStampMin, 1,
655 mEXIFData.mGPSData.mTimeStampSec, 1);
659 if ((NO_ERROR == ret) && (mEXIFData.mGPSData.mDatestampValid) ) {
660 ret = exifTable->insertElement(TAG_GPS_DATESTAMP, mEXIFData.mGPSData.mDatestamp);