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 bufLen = addKeyValueInt(&buf, bufLen, "ImageWidth", ImageInfo.Width);
608 bufLen = addKeyValueInt(&buf, bufLen, "ImageLength", ImageInfo.Height);
611 bufLen = addKeyValueInt(&buf, bufLen, "Orientation", ImageInfo.Orientation);
614 if (ImageInfo.FlashUsed >= 0) {
615 bufLen = addKeyValueInt(&buf, bufLen, "Flash", ImageInfo.FlashUsed);
619 if (ImageInfo.FocalLength.num != 0 && ImageInfo.FocalLength.denom != 0) {
620 bufLen = addKeyValueRational(&buf, bufLen, "FocalLength", ImageInfo.FocalLength);
624 if (ImageInfo.DigitalZoomRatio > 1.0){
626 bufLen = addKeyValueDouble(&buf, bufLen, "DigitalZoomRatio", ImageInfo.DigitalZoomRatio, "%1.3f");
630 if (ImageInfo.ExposureTime){
632 if (ImageInfo.ExposureTime < 0.010){
638 bufLen = addKeyValueDouble(&buf, bufLen, "ExposureTime", (double)ImageInfo.ExposureTime, format);
642 if (ImageInfo.ApertureFNumber){
643 bufLen = addKeyValueDouble(&buf, bufLen, "FNumber", (double)ImageInfo.ApertureFNumber, "%3.1f");
647 if (ImageInfo.Distance){
648 bufLen = addKeyValueDouble(&buf, bufLen, "SubjectDistance", (double)ImageInfo.Distance, "%4.2f");
652 if (ImageInfo.ISOequivalent){
653 bufLen = addKeyValueInt(&buf, bufLen, "ISOSpeedRatings", ImageInfo.ISOequivalent);
657 if (ImageInfo.ExposureBias){
660 bufLen = addKeyValueDouble(&buf, bufLen, "ExposureBiasValue", (double)ImageInfo.ExposureBias, "%4.2f");
664 if (ImageInfo.Whitebalance >= 0) {
665 bufLen = addKeyValueInt(&buf, bufLen, "WhiteBalance", ImageInfo.Whitebalance);
669 bufLen = addKeyValueInt(&buf, bufLen, "LightSource", ImageInfo.LightSource);
673 if (ImageInfo.MeteringMode) {
674 bufLen = addKeyValueInt(&buf, bufLen, "MeteringMode", ImageInfo.MeteringMode);
678 if (ImageInfo.ExposureProgram) {
679 bufLen = addKeyValueInt(&buf, bufLen, "ExposureProgram", ImageInfo.ExposureProgram);
683 if (ImageInfo.ExposureMode) {
684 bufLen = addKeyValueInt(&buf, bufLen, "ExposureMode", ImageInfo.ExposureMode);
688 if (ImageInfo.GpsInfoPresent) {
689 if (ImageInfo.GpsLatRaw[0]) {
690 bufLen = addKeyValueString(&buf, bufLen, "GPSLatitude", ImageInfo.GpsLatRaw);
693 if (ImageInfo.GpsLatRef[0]) {
694 bufLen = addKeyValueString(&buf, bufLen, "GPSLatitudeRef", ImageInfo.GpsLatRef);
697 if (ImageInfo.GpsLongRaw[0]) {
698 bufLen = addKeyValueString(&buf, bufLen, "GPSLongitude", ImageInfo.GpsLongRaw);
701 if (ImageInfo.GpsLongRef[0]) {
702 bufLen = addKeyValueString(&buf, bufLen, "GPSLongitudeRef", ImageInfo.GpsLongRef);
705 if (ImageInfo.GpsAlt[0]) {
706 bufLen = addKeyValueRational(&buf, bufLen, "GPSAltitude", ImageInfo.GpsAltRaw);
707 bufLen = addKeyValueInt(&buf, bufLen, "GPSAltitudeRef", ImageInfo.GpsAltRef);
710 if (ImageInfo.GpsDateStamp[0]) {
711 bufLen = addKeyValueString(&buf, bufLen, "GPSDateStamp", ImageInfo.GpsDateStamp);
714 if (ImageInfo.GpsTimeStamp[0]) {
715 bufLen = addKeyValueString(&buf, bufLen, "GPSTimeStamp", ImageInfo.GpsTimeStamp);
718 if (ImageInfo.GpsProcessingMethod[0]) {
719 bufLen = addKeyValueString(&buf, bufLen, "GPSProcessingMethod", ImageInfo.GpsProcessingMethod);
724 if (ImageInfo.Comments[0]) {
725 bufLen = addKeyValueString(&buf, bufLen, "UserComment", ImageInfo.Comments);