• Home
  • Raw
  • Download

Lines Matching refs:entry

39     inline void operator()(ExifEntry* entry) const { exif_entry_unref(entry); }  in operator ()()
521 std::unique_ptr<ExifEntry> entry = addVariableLengthEntry( in setGpsAltitude() local
523 if (!entry) { in setGpsAltitude()
528 exif_set_rational(entry->data, EXIF_BYTE_ORDER_INTEL, in setGpsAltitude()
550 std::unique_ptr<ExifEntry> entry = addVariableLengthEntry( in setGpsLatitude() local
552 if (!entry) { in setGpsLatitude()
557 setLatitudeOrLongitudeData(entry->data, latitude); in setGpsLatitude()
578 std::unique_ptr<ExifEntry> entry = addVariableLengthEntry( in setGpsLongitude() local
580 if (!entry) { in setGpsLongitude()
585 setLatitudeOrLongitudeData(entry->data, longitude); in setGpsLongitude()
601 std::unique_ptr<ExifEntry> entry = in setGpsTimestamp() local
604 if (!entry) { in setGpsTimestamp()
609 snprintf(reinterpret_cast<char*>(entry->data), kGpsDateStampSize, in setGpsTimestamp()
617 entry = addVariableLengthEntry(EXIF_IFD_GPS, timeTag, EXIF_FORMAT_RATIONAL, 3, in setGpsTimestamp()
619 if (!entry) { in setGpsTimestamp()
623 exif_set_rational(entry->data, EXIF_BYTE_ORDER_INTEL, in setGpsTimestamp()
625 exif_set_rational(entry->data + sizeof(ExifRational), EXIF_BYTE_ORDER_INTEL, in setGpsTimestamp()
627 exif_set_rational(entry->data + 2 * sizeof(ExifRational), in setGpsTimestamp()
832 std::unique_ptr<ExifEntry> entry(exif_entry_new_mem(mem)); in addVariableLengthEntry() local
833 if (!entry) { in addVariableLengthEntry()
845 entry->data = static_cast<unsigned char*>(tmpBuffer); in addVariableLengthEntry()
846 entry->tag = tag; in addVariableLengthEntry()
847 entry->format = format; in addVariableLengthEntry()
848 entry->components = components; in addVariableLengthEntry()
849 entry->size = size; in addVariableLengthEntry()
851 exif_content_add_entry(exif_data_->ifd[ifd], entry.get()); in addVariableLengthEntry()
854 return entry; in addVariableLengthEntry()
858 std::unique_ptr<ExifEntry> entry(exif_content_get_entry(exif_data_->ifd[ifd], tag)); in addEntry() local
859 if (entry) { in addEntry()
861 exif_entry_ref(entry.get()); in addEntry()
862 return entry; in addEntry()
864 entry.reset(exif_entry_new()); in addEntry()
865 if (!entry) { in addEntry()
869 entry->tag = tag; in addEntry()
870 exif_content_add_entry(exif_data_->ifd[ifd], entry.get()); in addEntry()
871 exif_entry_initialize(entry.get(), tag); in addEntry()
872 return entry; in addEntry()
879 std::unique_ptr<ExifEntry> entry = addEntry(ifd, tag); in setShort() local
880 if (!entry) { in setShort()
884 exif_set_short(entry->data, EXIF_BYTE_ORDER_INTEL, value); in setShort()
892 std::unique_ptr<ExifEntry> entry = addEntry(ifd, tag); in setLong() local
893 if (!entry) { in setLong()
897 exif_set_long(entry->data, EXIF_BYTE_ORDER_INTEL, value); in setLong()
906 std::unique_ptr<ExifEntry> entry = addEntry(ifd, tag); in setRational() local
907 if (!entry) { in setRational()
911 exif_set_rational(entry->data, EXIF_BYTE_ORDER_INTEL, in setRational()
921 std::unique_ptr<ExifEntry> entry = addEntry(ifd, tag); in setSRational() local
922 if (!entry) { in setSRational()
926 exif_set_srational(entry->data, EXIF_BYTE_ORDER_INTEL, in setSRational()
941 std::unique_ptr<ExifEntry> entry = in setString() local
943 if (!entry) { in setString()
947 memcpy(entry->data, buffer.c_str(), entry_size); in setString()
983 camera_metadata_ro_entry entry = metadata.find(ANDROID_LENS_FOCAL_LENGTH); in setFromMetadata() local
984 if (entry.count) { in setFromMetadata()
985 focal_length = entry.data.f[0]; in setFromMetadata()
998 entry = metadata.find(ANDROID_JPEG_GPS_COORDINATES); in setFromMetadata()
999 if (entry.count < 3) { in setFromMetadata()
1003 if (!setGpsLatitude(entry.data.d[0])) { in setFromMetadata()
1007 if (!setGpsLongitude(entry.data.d[1])) { in setFromMetadata()
1011 if (!setGpsAltitude(entry.data.d[2])) { in setFromMetadata()
1018 entry = metadata.find(ANDROID_JPEG_GPS_PROCESSING_METHOD); in setFromMetadata()
1019 std::string method_str(reinterpret_cast<const char*>(entry.data.u8)); in setFromMetadata()
1027 entry = metadata.find(ANDROID_JPEG_GPS_TIMESTAMP); in setFromMetadata()
1028 time_t timestamp = static_cast<time_t>(entry.data.i64[0]); in setFromMetadata()
1041 entry = metadata.find(ANDROID_JPEG_ORIENTATION); in setFromMetadata()
1042 if (!setOrientation(entry.data.i32[0])) { in setFromMetadata()
1049 entry = metadata.find(ANDROID_SENSOR_EXPOSURE_TIME); in setFromMetadata()
1051 if (!setExposureTime(entry.data.i64[0],1000000000u)) { in setFromMetadata()
1059 entry = metadata.find(ANDROID_LENS_APERTURE); in setFromMetadata()
1060 if (!setFNumber(entry.data.f[0] * kAperturePrecision, in setFromMetadata()
1068 entry = metadata.find(ANDROID_FLASH_INFO_AVAILABLE); in setFromMetadata()
1069 if (entry.data.u8[0] == ANDROID_FLASH_INFO_AVAILABLE_FALSE) { in setFromMetadata()
1076 ALOGE("%s: Unsupported flash info: %d",__FUNCTION__, entry.data.u8[0]); in setFromMetadata()
1082 entry = metadata.find(ANDROID_CONTROL_AWB_MODE); in setFromMetadata()
1083 if (entry.data.u8[0] == ANDROID_CONTROL_AWB_MODE_AUTO) { in setFromMetadata()
1090 ALOGE("%s: Unsupported awb mode: %d", __FUNCTION__, entry.data.u8[0]); in setFromMetadata()