Lines Matching refs:mEXIFData
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;
196 strncpy(mEXIFData.mModel, valstr, EXIF_MODEL_SIZE - 1);
197 mEXIFData.mModelValid= true;
201 mEXIFData.mModelValid= false;
207 strncpy(mEXIFData.mMake, valstr, EXIF_MAKE_SIZE - 1);
208 mEXIFData.mMakeValid = true;
212 mEXIFData.mMakeValid= false;
219 &mEXIFData.mFocalNum,
220 &mEXIFData.mFocalDen);
222 mEXIFData.mFocalNum = 0;
223 mEXIFData.mFocalDen = 0;
307 ( mEXIFData.mModelValid ) )
310 mEXIFData.mModel,
320 ( mEXIFData.mMakeValid ) )
323 mEXIFData.mMake,
334 if (mEXIFData.mFocalNum || mEXIFData.mFocalDen ) {
335 exifTags->ulFocalLength[0] = (OMX_U32) mEXIFData.mFocalNum;
336 exifTags->ulFocalLength[1] = (OMX_U32) mEXIFData.mFocalDen;
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,
525 if ((NO_ERROR == ret) && (mEXIFData.mModelValid)) {
526 ret = exifTable->insertElement(TAG_MODEL, mEXIFData.mModel);
529 if ((NO_ERROR == ret) && (mEXIFData.mMakeValid)) {
530 ret = exifTable->insertElement(TAG_MAKE, mEXIFData.mMake);
534 if (mEXIFData.mFocalNum || mEXIFData.mFocalDen) {
539 mEXIFData.mFocalNum,
540 mEXIFData.mFocalDen);
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);