Home | History | Annotate | Download | only in jhead

Lines Matching full: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) {
454 (const jbyte*) (ExifSection->Data + ImageInfo.ThumbnailOffset + 8);
456 jbyteArray byteArray = (*env)->NewByteArray(env, ImageInfo.ThumbnailSize);
463 (*env)->SetByteArrayRegion(env, byteArray, 0, ImageInfo.ThumbnailSize, thumbnailPointer);
465 ALOGE("thumbnail size %d\n", ImageInfo.ThumbnailSize);
485 if (ExifSection == NULL || ImageInfo.ThumbnailSize == 0) {
490 result[0] = ExifSection->Offset + ImageInfo.ThumbnailOffset + 8;
491 result[1] = ImageInfo.ThumbnailSize;
590 ImageInfo.ThumbnailOffset == 0 || ImageInfo.ThumbnailAtEnd == FALSE || ImageInfo.ThumbnailSize == 0 ?
594 if (ImageInfo.CameraMake[0]) {
595 bufLen = addKeyValueString(&buf, bufLen, "Make", ImageInfo.CameraMake);
598 if (ImageInfo.CameraModel[0]) {
599 bufLen = addKeyValueString(&buf, bufLen, "Model", ImageInfo.CameraModel);
602 if (ImageInfo.DateTime[0]) {
603 bufLen = addKeyValueString(&buf, bufLen, "DateTime", ImageInfo.DateTime);
606 if (ImageInfo.DigitizedTime[0]) {
607 bufLen = addKeyValueString(&buf, bufLen, "DateTimeDigitized", ImageInfo.DigitizedTime);
610 if (ImageInfo.SubSecTime[0]) {
611 bufLen = addKeyValueString(&buf, bufLen, "SubSecTime", ImageInfo.SubSecTime);
614 if (ImageInfo.SubSecTimeOrig[0]) {
615 bufLen = addKeyValueString(&buf, bufLen, "SubSecTimeOriginal", ImageInfo.SubSecTimeOrig);
618 if (ImageInfo.SubSecTimeDig[0]) {
619 bufLen = addKeyValueString(&buf, bufLen, "SubSecTimeDigitized", ImageInfo.SubSecTimeDig);
623 bufLen = addKeyValueInt(&buf, bufLen, "ImageWidth", ImageInfo.Width);
626 bufLen = addKeyValueInt(&buf, bufLen, "ImageLength", ImageInfo.Height);
629 bufLen = addKeyValueInt(&buf, bufLen, "Orientation", ImageInfo.Orientation);
632 if (ImageInfo.FlashUsed >= 0) {
633 bufLen = addKeyValueInt(&buf, bufLen, "Flash", ImageInfo.FlashUsed);
637 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0) {
638 bufLen = addKeyValueRational(&buf, bufLen, "FocalLength", ImageInfo.FocalLength);
642 if (ImageInfo.DigitalZoomRatio > 1.0){
644 bufLen = addKeyValueDouble(&buf, bufLen, "DigitalZoomRatio", ImageInfo.DigitalZoomRatio, "%5.3f");
648 if (ImageInfo.ExposureTime){
650 if (ImageInfo.ExposureTime < 0.010){
656 bufLen = addKeyValueDouble(&buf, bufLen, "ExposureTime", (double)ImageInfo.ExposureTime, format);
660 if (ImageInfo.ApertureFNumber){
661 bufLen = addKeyValueDouble(&buf, bufLen, "FNumber", (double)ImageInfo.ApertureFNumber, "%5.3f");
665 if (ImageInfo.Distance){
666 bufLen = addKeyValueDouble(&buf, bufLen, "SubjectDistance", (double)ImageInfo.Distance, "%4.2f");
670 if (ImageInfo.ISOequivalent){
671 bufLen = addKeyValueInt(&buf, bufLen, "ISOSpeedRatings", ImageInfo.ISOequivalent);
675 if (ImageInfo.ExposureBias){
678 bufLen = addKeyValueDouble(&buf, bufLen, "ExposureBiasValue", (double)ImageInfo.ExposureBias, "%4.2f");
682 if (ImageInfo.Whitebalance >= 0) {
683 bufLen = addKeyValueInt(&buf, bufLen, "WhiteBalance", ImageInfo.Whitebalance);
687 bufLen = addKeyValueInt(&buf, bufLen, "LightSource", ImageInfo.LightSource);
691 if (ImageInfo.MeteringMode) {
692 bufLen = addKeyValueInt(&buf, bufLen, "MeteringMode", ImageInfo.MeteringMode);
696 if (ImageInfo.ExposureProgram) {
697 bufLen = addKeyValueInt(&buf, bufLen, "ExposureProgram", ImageInfo.ExposureProgram);
701 if (ImageInfo.ExposureMode) {
702 bufLen = addKeyValueInt(&buf, bufLen, "ExposureMode", ImageInfo.ExposureMode);
706 if (ImageInfo.GpsInfoPresent) {
707 if (ImageInfo.GpsLatRaw[0]) {
708 bufLen = addKeyValueString(&buf, bufLen, "GPSLatitude", ImageInfo.GpsLatRaw);
711 if (ImageInfo.GpsLatRef[0]) {
712 bufLen = addKeyValueString(&buf, bufLen, "GPSLatitudeRef", ImageInfo.GpsLatRef);
715 if (ImageInfo.GpsLongRaw[0]) {
716 bufLen = addKeyValueString(&buf, bufLen, "GPSLongitude", ImageInfo.GpsLongRaw);
719 if (ImageInfo.GpsLongRef[0]) {
720 bufLen = addKeyValueString(&buf, bufLen, "GPSLongitudeRef", ImageInfo.GpsLongRef);
723 if (ImageInfo.GpsAlt[0]) {
724 bufLen = addKeyValueRational(&buf, bufLen, "GPSAltitude", ImageInfo.GpsAltRaw);
725 bufLen = addKeyValueInt(&buf, bufLen, "GPSAltitudeRef", ImageInfo.GpsAltRef);
728 if (ImageInfo.GpsDateStamp[0]) {
729 bufLen = addKeyValueString(&buf, bufLen, "GPSDateStamp", ImageInfo.GpsDateStamp);
732 if (ImageInfo.GpsTimeStamp[0]) {
733 bufLen = addKeyValueString(&buf, bufLen, "GPSTimeStamp", ImageInfo.GpsTimeStamp);
736 if (ImageInfo.GpsProcessingMethod[0]) {
737 bufLen = addKeyValueString(&buf, bufLen, "GPSProcessingMethod", ImageInfo.GpsProcessingMethod);
742 if (ImageInfo.Comments[0]) {
743 bufLen = addKeyValueString(&buf, bufLen, "UserComment", ImageInfo.Comments);