Lines Matching refs:entry
62 ExifEntry* entry = exif_content_get_entry(exifData->ifd[ifd], in removeExistingEntry() local
64 if (entry) { in removeExistingEntry()
65 exif_content_remove_entry(exifData->ifd[ifd], entry); in removeExistingEntry()
73 ExifEntry* entry = exif_entry_new_mem(mem); in allocateEntry() local
76 entry->data = reinterpret_cast<unsigned char*>(exif_mem_alloc(mem, size)); in allocateEntry()
77 entry->size = size; in allocateEntry()
78 entry->tag = static_cast<ExifTag>(tag); in allocateEntry()
79 entry->components = numComponents; in allocateEntry()
80 entry->format = format; in allocateEntry()
83 return entry; in allocateEntry()
96 ExifEntry* entry = allocateEntry(tag, EXIF_FORMAT_RATIONAL, N); in createEntry() local
97 exif_content_add_entry(exifData->ifd[ifd], entry); in createEntry()
105 exif_set_rational(&entry->data[i * rationalSize], byteOrder, rational); in createEntry()
109 exif_entry_unref(entry); in createEntry()
133 ExifEntry* entry = allocateEntry(tag, format, size); in createEntry() local
134 memcpy(entry->data, data, size); in createEntry()
135 exif_content_add_entry(exifData->ifd[ifd], entry); in createEntry()
137 exif_entry_unref(entry); in createEntry()
167 ExifEntry* entry = exif_entry_new(); in createEntry() local
168 exif_content_add_entry(exifData->ifd[ifd], entry); in createEntry()
169 exif_entry_initialize(entry, static_cast<ExifTag>(tag)); in createEntry()
171 exif_entry_unref(entry); in createEntry()
183 ExifEntry* entry = allocateEntry(tag, EXIF_FORMAT_LONG, 1); in createEntry() local
184 exif_content_add_entry(exifData->ifd[ifd], entry); in createEntry()
185 exif_set_long(entry->data, byteOrder, value); in createEntry()
188 exif_entry_unref(entry); in createEntry()
200 ExifEntry* entry = allocateEntry(tag, EXIF_FORMAT_SHORT, 1); in createEntry() local
201 exif_content_add_entry(exifData->ifd[ifd], entry); in createEntry()
202 exif_set_short(entry->data, byteOrder, value); in createEntry()
205 exif_entry_unref(entry); in createEntry()
373 camera_metadata_ro_entry_t entry; in createExifDataCommon() local
374 entry = params.find(ANDROID_LENS_FOCAL_LENGTH); in createExifDataCommon()
375 focalLength = (entry.count > 0) ? entry.data.f[0] : 5.0f; in createExifDataCommon()
377 entry = params.find(ANDROID_JPEG_ORIENTATION); in createExifDataCommon()
378 degrees = (entry.count > 0) ? entry.data.i32[0] : 0; in createExifDataCommon()
404 entry = params.find(ANDROID_JPEG_GPS_COORDINATES); in createExifDataCommon()
405 if (entry.count > 0) { in createExifDataCommon()
406 … ALOGV("Latitude %f Longitude %f Altitude %f", entry.data.d[0], entry.data.d[1], entry.data.d[2]); in createExifDataCommon()
407 convertGpsCoordinate(entry.data.d[0], &triplet); in createExifDataCommon()
410 const char* ref = entry.data.d[0] < 0.0f ? "S" : "N"; in createExifDataCommon()
414 convertGpsCoordinate(entry.data.d[1], &triplet); in createExifDataCommon()
417 ref = entry.data.d[1] < 0.0f ? "W" : "E"; in createExifDataCommon()
421 static_cast<float>(fabs(entry.data.d[2]))); in createExifDataCommon()
424 ref1 = entry.data.d[2] < 0.0f ? 1 : 0; in createExifDataCommon()
429 entry = params.find(ANDROID_JPEG_GPS_TIMESTAMP); in createExifDataCommon()
430 if (entry.count > 0) { in createExifDataCommon()
431 timestamp = entry.data.i64[0]; in createExifDataCommon()
442 entry = params.find(ANDROID_JPEG_GPS_PROCESSING_METHOD); in createExifDataCommon()
443 if (entry.count > 0) { in createExifDataCommon()
444 stringValue = (const char*)entry.data.u8; in createExifDataCommon()
445 ALOGV("ANDROID_JPEG_GPS_PROCESSING_METHOD(len=%d) %s", entry.count, stringValue); in createExifDataCommon()
453 data.insert(data.end(), stringValue, stringValue + entry.count); in createExifDataCommon()
463 camera_metadata_ro_entry entry; in createExifData() local
464 entry= params.find(ANDROID_SENSOR_EXPOSURE_TIME); in createExifData()
466 (entry.count > 0) ? entry.data.i64[0] : Sensor::kExposureTimeRange[0]; in createExifData()
470 entry = params.find(ANDROID_LENS_APERTURE); in createExifData()
471 float aperture = (entry.count > 0) ? entry.data.f[0] : 2.8; in createExifData()
474 entry = params.find(ANDROID_FLASH_MODE); in createExifData()
475 uint16_t flash = (entry.count > 0) ? entry.data.i32[0] : 0; in createExifData()
478 entry = params.find(ANDROID_CONTROL_AWB_MODE); in createExifData()
480 if (entry.count > 0 && entry.data.i32[0] == ANDROID_CONTROL_AWB_MODE_AUTO) { in createExifData()
485 entry = params.find(ANDROID_SENSOR_SENSITIVITY); in createExifData()
486 int isoSpeedRating = (entry.count > 0) ? in createExifData()
487 entry.data.i32[0] : Sensor::kSensitivityRange[0]; in createExifData()