Home | History | Annotate | Download | only in jhead

Lines Matching refs:ImageInfo

87     memset(&ImageInfo, 0, sizeof(ImageInfo));
88 ImageInfo.FlashUsed = -1;
89 ImageInfo.MeteringMode = -1;
90 ImageInfo.Whitebalance = -1;
96 ImageInfo.FileDateTime = st.st_mtime;
97 ImageInfo.FileSize = st.st_size;
101 strncpy(ImageInfo.FileName, FileName, PATH_MAX);
177 int NewExifSize = ImageInfo.ThumbnailOffset+8+thumbnailLen;
182 uchar* ThumbnailPointer = ExifSection->Data+ImageInfo.ThumbnailOffset+8;
186 ImageInfo.ThumbnailSize = thumbnailLen;
188 Put32u(ExifSection->Data+ImageInfo.ThumbnailSizeOffset+8, thumbnailLen);
310 int thumbnailLength = ImageInfo.ThumbnailSize;
311 if (ImageInfo.ThumbnailOffset) {
314 uchar* thumbnailPointer = ExifSection->Data + ImageInfo.ThumbnailOffset + 8;
315 thumbnailData = (uchar*)malloc(ImageInfo.ThumbnailSize);
447 if (ExifSection == NULL || ImageInfo.ThumbnailSize == 0) {
453 uchar* thumbnailPointer = ExifSection->Data + ImageInfo.ThumbnailOffset + 8;
455 jbyteArray byteArray = (*env)->NewByteArray(env, ImageInfo.ThumbnailSize);
462 (*env)->SetByteArrayRegion(env, byteArray, 0, ImageInfo.ThumbnailSize, thumbnailPointer);
464 ALOGE("thumbnail size %d\n", ImageInfo.ThumbnailSize);
484 if (ExifSection == NULL || ImageInfo.ThumbnailSize == 0) {
489 result[0] = ExifSection->Offset + ImageInfo.ThumbnailOffset + 8;
490 result[1] = ImageInfo.ThumbnailSize;
589 ImageInfo.ThumbnailOffset == 0 || ImageInfo.ThumbnailAtEnd == FALSE || ImageInfo.ThumbnailSize == 0 ?
593 if (ImageInfo.CameraMake[0]) {
594 bufLen = addKeyValueString(&buf, bufLen, "Make", ImageInfo.CameraMake);
597 if (ImageInfo.CameraModel[0]) {
598 bufLen = addKeyValueString(&buf, bufLen, "Model", ImageInfo.CameraModel);
601 if (ImageInfo.DateTime[0]) {
602 bufLen = addKeyValueString(&buf, bufLen, "DateTime", ImageInfo.DateTime);
605 if (ImageInfo.DigitizedTime[0]) {
606 bufLen = addKeyValueString(&buf, bufLen, "DateTimeDigitized", ImageInfo.DigitizedTime);
609 if (ImageInfo.SubSecTime[0]) {
610 bufLen = addKeyValueString(&buf, bufLen, "SubSecTime", ImageInfo.SubSecTime);
613 if (ImageInfo.SubSecTimeOrig[0]) {
614 bufLen = addKeyValueString(&buf, bufLen, "SubSecTimeOriginal", ImageInfo.SubSecTimeOrig);
617 if (ImageInfo.SubSecTimeDig[0]) {
618 bufLen = addKeyValueString(&buf, bufLen, "SubSecTimeDigitized", ImageInfo.SubSecTimeDig);
622 bufLen = addKeyValueInt(&buf, bufLen, "ImageWidth", ImageInfo.Width);
625 bufLen = addKeyValueInt(&buf, bufLen, "ImageLength", ImageInfo.Height);
628 bufLen = addKeyValueInt(&buf, bufLen, "Orientation", ImageInfo.Orientation);
631 if (ImageInfo.FlashUsed >= 0) {
632 bufLen = addKeyValueInt(&buf, bufLen, "Flash", ImageInfo.FlashUsed);
636 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0) {
637 bufLen = addKeyValueRational(&buf, bufLen, "FocalLength", ImageInfo.FocalLength);
641 if (ImageInfo.DigitalZoomRatio > 1.0){
643 bufLen = addKeyValueDouble(&buf, bufLen, "DigitalZoomRatio", ImageInfo.DigitalZoomRatio, "%1.3f");
647 if (ImageInfo.ExposureTime){
649 if (ImageInfo.ExposureTime < 0.010){
655 bufLen = addKeyValueDouble(&buf, bufLen, "ExposureTime", (double)ImageInfo.ExposureTime, format);
659 if (ImageInfo.ApertureFNumber){
660 bufLen = addKeyValueDouble(&buf, bufLen, "FNumber", (double)ImageInfo.ApertureFNumber, "%3.1f");
664 if (ImageInfo.Distance){
665 bufLen = addKeyValueDouble(&buf, bufLen, "SubjectDistance", (double)ImageInfo.Distance, "%4.2f");
669 if (ImageInfo.ISOequivalent){
670 bufLen = addKeyValueInt(&buf, bufLen, "ISOSpeedRatings", ImageInfo.ISOequivalent);
674 if (ImageInfo.ExposureBias){
677 bufLen = addKeyValueDouble(&buf, bufLen, "ExposureBiasValue", (double)ImageInfo.ExposureBias, "%4.2f");
681 if (ImageInfo.Whitebalance >= 0) {
682 bufLen = addKeyValueInt(&buf, bufLen, "WhiteBalance", ImageInfo.Whitebalance);
686 bufLen = addKeyValueInt(&buf, bufLen, "LightSource", ImageInfo.LightSource);
690 if (ImageInfo.MeteringMode) {
691 bufLen = addKeyValueInt(&buf, bufLen, "MeteringMode", ImageInfo.MeteringMode);
695 if (ImageInfo.ExposureProgram) {
696 bufLen = addKeyValueInt(&buf, bufLen, "ExposureProgram", ImageInfo.ExposureProgram);
700 if (ImageInfo.ExposureMode) {
701 bufLen = addKeyValueInt(&buf, bufLen, "ExposureMode", ImageInfo.ExposureMode);
705 if (ImageInfo.GpsInfoPresent) {
706 if (ImageInfo.GpsLatRaw[0]) {
707 bufLen = addKeyValueString(&buf, bufLen, "GPSLatitude", ImageInfo.GpsLatRaw);
710 if (ImageInfo.GpsLatRef[0]) {
711 bufLen = addKeyValueString(&buf, bufLen, "GPSLatitudeRef", ImageInfo.GpsLatRef);
714 if (ImageInfo.GpsLongRaw[0]) {
715 bufLen = addKeyValueString(&buf, bufLen, "GPSLongitude", ImageInfo.GpsLongRaw);
718 if (ImageInfo.GpsLongRef[0]) {
719 bufLen = addKeyValueString(&buf, bufLen, "GPSLongitudeRef", ImageInfo.GpsLongRef);
722 if (ImageInfo.GpsAlt[0]) {
723 bufLen = addKeyValueRational(&buf, bufLen, "GPSAltitude", ImageInfo.GpsAltRaw);
724 bufLen = addKeyValueInt(&buf, bufLen, "GPSAltitudeRef", ImageInfo.GpsAltRef);
727 if (ImageInfo.GpsDateStamp[0]) {
728 bufLen = addKeyValueString(&buf, bufLen, "GPSDateStamp", ImageInfo.GpsDateStamp);
731 if (ImageInfo.GpsTimeStamp[0]) {
732 bufLen = addKeyValueString(&buf, bufLen, "GPSTimeStamp", ImageInfo.GpsTimeStamp);
735 if (ImageInfo.GpsProcessingMethod[0]) {
736 bufLen = addKeyValueString(&buf, bufLen, "GPSProcessingMethod", ImageInfo.GpsProcessingMethod);
741 if (ImageInfo.Comments[0]) {
742 bufLen = addKeyValueString(&buf, bufLen, "UserComment", ImageInfo.Comments);