Home | History | Annotate | Download | only in libcamera

Lines Matching refs:mExifInfo

1330         mExifInfo.enableThumb = true;
1333 mExifInfo.enableThumb = false;
1340 LOGV("%s: calling jpgEnc.makeExif, mExifInfo.width set to %d, height to %d\n",
1341 __func__, mExifInfo.width, mExifInfo.height);
1343 jpgEnc.makeExif(pExifDst, &mExifInfo, &exifSize, true);
1530 jpgEnc.encode(output_size, &mExifInfo);
2526 memset(mExifInfo.gps_processing_method, 0, sizeof(mExifInfo.gps_processing_method));
2529 if (len > sizeof(mExifInfo.gps_processing_method)) {
2530 len = sizeof(mExifInfo.gps_processing_method);
2532 memcpy(mExifInfo.gps_processing_method, gps_processing_method, len);
2823 strncpy((char *)mExifInfo.maker, property,
2824 sizeof(mExifInfo.maker) - 1);
2825 mExifInfo.maker[sizeof(mExifInfo.maker) - 1] = '\0';
2828 strncpy((char *)mExifInfo.model, property,
2829 sizeof(mExifInfo.model) - 1);
2830 mExifInfo.model[sizeof(mExifInfo.model) - 1] = '\0';
2833 strncpy((char *)mExifInfo.software, property,
2834 sizeof(mExifInfo.software) - 1);
2835 mExifInfo.software[sizeof(mExifInfo.software) - 1] = '\0';
2838 mExifInfo.ycbcr_positioning = EXIF_DEF_YCBCR_POSITIONING;
2842 mExifInfo.fnumber.num = EXIF_DEF_FNUMBER_NUM;
2843 mExifInfo.fnumber.den = EXIF_DEF_FNUMBER_DEN;
2845 mExifInfo.exposure_program = EXIF_DEF_EXPOSURE_PROGRAM;
2847 memcpy(mExifInfo.exif_version, EXIF_DEF_EXIF_VERSION, sizeof(mExifInfo.exif_version));
2849 uint32_t av = APEX_FNUM_TO_APERTURE((double)mExifInfo.fnumber.num/mExifInfo.fnumber.den);
2850 mExifInfo.aperture.num = av*EXIF_DEF_APEX_DEN;
2851 mExifInfo.aperture.den = EXIF_DEF_APEX_DEN;
2853 mExifInfo.max_aperture.num = mExifInfo.aperture.num;
2854 mExifInfo.max_aperture.den = mExifInfo.aperture.den;
2857 mExifInfo.focal_length.num = BACK_CAMERA_FOCAL_LENGTH;
2859 mExifInfo.focal_length.num = FRONT_CAMERA_FOCAL_LENGTH;
2861 mExifInfo.focal_length.den = EXIF_DEF_FOCAL_LEN_DEN;
2863 strcpy((char *)mExifInfo.user_comment, EXIF_DEF_USERCOMMENTS);
2865 mExifInfo.color_space = EXIF_DEF_COLOR_SPACE;
2867 mExifInfo.exposure_mode = EXIF_DEF_EXPOSURE_MODE;
2871 memcpy(mExifInfo.gps_version_id, gps_version, sizeof(gps_version));
2874 mExifInfo.compression_scheme = EXIF_DEF_COMPRESSION;
2875 mExifInfo.x_resolution.num = EXIF_DEF_RESOLUTION_NUM;
2876 mExifInfo.x_resolution.den = EXIF_DEF_RESOLUTION_DEN;
2877 mExifInfo.y_resolution.num = EXIF_DEF_RESOLUTION_NUM;
2878 mExifInfo.y_resolution.den = EXIF_DEF_RESOLUTION_DEN;
2879 mExifInfo.resolution_unit = EXIF_DEF_RESOLUTION_UNIT;
2886 mExifInfo.width = m_snapshot_width;
2888 mExifInfo.height = m_snapshot_height;
2892 mExifInfo.orientation = EXIF_ORIENTATION_UP;
2895 mExifInfo.orientation = EXIF_ORIENTATION_90;
2898 mExifInfo.orientation = EXIF_ORIENTATION_180;
2901 mExifInfo.orientation = EXIF_ORIENTATION_270;
2904 mExifInfo.orientation = EXIF_ORIENTATION_UP;
2912 strftime((char *)mExifInfo.date_time, 20, "%Y:%m:%d %H:%M:%S", timeinfo);
2926 mExifInfo.exposure_time.num = 1;
2928 mExifInfo.exposure_time.den = (uint32_t)(1000000 / shutterSpeed);
2942 mExifInfo.iso_speed_rating = 50;
2945 mExifInfo.iso_speed_rating = 100;
2948 mExifInfo.iso_speed_rating = 200;
2951 mExifInfo.iso_speed_rating = 400;
2954 mExifInfo.iso_speed_rating = 800;
2957 mExifInfo.iso_speed_rating = 1600;
2960 mExifInfo.iso_speed_rating = 100;
2965 av = APEX_FNUM_TO_APERTURE((double)mExifInfo.fnumber.num / mExifInfo.fnumber.den);
2966 tv = APEX_EXPOSURE_TO_SHUTTER((double)mExifInfo.exposure_time.num / mExifInfo.exposure_time.den);
2967 sv = APEX_ISO_TO_FILMSENSITIVITY(mExifInfo.iso_speed_rating);
2970 LOGD("Shutter speed=%d us, iso=%d\n", shutterSpeed, mExifInfo.iso_speed_rating);
2974 mExifInfo.shutter_speed.num = tv*EXIF_DEF_APEX_DEN;
2975 mExifInfo.shutter_speed.den = EXIF_DEF_APEX_DEN;
2977 mExifInfo.brightness.num = bv*EXIF_DEF_APEX_DEN;
2978 mExifInfo.brightness.den = EXIF_DEF_APEX_DEN;
2981 mExifInfo.exposure_bias.num = EXIF_DEF_APEX_DEN;
2982 mExifInfo.exposure_bias.den = EXIF_DEF_APEX_DEN;
2984 mExifInfo.exposure_bias.num = 0;
2985 mExifInfo.exposure_bias.den = 0;
2990 mExifInfo.metering_mode = EXIF_METERING_SPOT;
2993 mExifInfo.metering_mode = EXIF_METERING_AVERAGE;
2996 mExifInfo.metering_mode = EXIF_METERING_CENTER;
2999 mExifInfo.metering_mode = EXIF_METERING_AVERAGE;
3006 mExifInfo.flash = EXIF_DEF_FLASH;
3008 mExifInfo.flash = flash;
3012 mExifInfo.white_balance = EXIF_WB_AUTO;
3014 mExifInfo.white_balance = EXIF_WB_MANUAL;
3018 mExifInfo.scene_capture_type = EXIF_SCENE_PORTRAIT;
3021 mExifInfo.scene_capture_type = EXIF_SCENE_LANDSCAPE;
3024 mExifInfo.scene_capture_type = EXIF_SCENE_NIGHT;
3027 mExifInfo.scene_capture_type = EXIF_SCENE_STANDARD;
3034 strcpy((char *)mExifInfo.gps_latitude_ref, "N");
3036 strcpy((char *)mExifInfo.gps_latitude_ref, "S");
3039 strcpy((char *)mExifInfo.gps_longitude_ref, "E");
3041 strcpy((char *)mExifInfo.gps_longitude_ref, "W");
3044 mExifInfo.gps_altitude_ref = 0;
3046 mExifInfo.gps_altitude_ref = 1;
3052 mExifInfo.gps_latitude[0].num = (uint32_t)latitude;
3053 mExifInfo.gps_latitude[0].den = 1;
3054 mExifInfo.gps_latitude[1].num = (uint32_t)((latitude - mExifInfo.gps_latitude[0].num) * 60);
3055 mExifInfo.gps_latitude[1].den = 1;
3056 mExifInfo.gps_latitude[2].num = (uint32_t)((((latitude - mExifInfo.gps_latitude[0].num) * 60)
3057 - mExifInfo.gps_latitude[1].num) * 60);
3058 mExifInfo.gps_latitude[2].den = 1;
3060 mExifInfo.gps_longitude[0].num = (uint32_t)longitude;
3061 mExifInfo.gps_longitude[0].den = 1;
3062 mExifInfo.gps_longitude[1].num = (uint32_t)((longitude - mExifInfo.gps_longitude[0].num) * 60);
3063 mExifInfo.gps_longitude[1].den = 1;
3064 mExifInfo.gps_longitude[2].num = (uint32_t)((((longitude - mExifInfo.gps_longitude[0].num) * 60)
3065 - mExifInfo.gps_longitude[1].num) * 60);
3066 mExifInfo.gps_longitude[2].den = 1;
3068 mExifInfo.gps_altitude.num = (uint32_t)altitude;
3069 mExifInfo.gps_altitude.den = 1;
3073 mExifInfo.gps_timestamp[0].num = tm_data.tm_hour;
3074 mExifInfo.gps_timestamp[0].den = 1;
3075 mExifInfo.gps_timestamp[1].num = tm_data.tm_min;
3076 mExifInfo.gps_timestamp[1].den = 1;
3077 mExifInfo.gps_timestamp[2].num = tm_data.tm_sec;
3078 mExifInfo.gps_timestamp[2].den = 1;
3079 snprintf((char*)mExifInfo.gps_datestamp, sizeof(mExifInfo.gps_datestamp),
3082 mExifInfo.enableGps = true;
3084 mExifInfo.enableGps = false;
3088 mExifInfo.widthThumb = m_jpeg_thumbnail_width;
3089 mExifInfo.heightThumb = m_jpeg_thumbnail_height;