Media File Information

2023-09-11
No Rating

Catalog

Definition, Enum and Struct

typedef struct MediaFile

Media file information

struct MediaFile {

    /*! Type of camera for the media file */
    enum CameraType {
        /*! Infrared camera */
        kCameraTypeInfrared = 0,

        /*! Zoom camera */
        kCameraTypeZoom = 1,

        /*! Wide-angle camera */
        kCameraTypeWide = 2,

        /*! visible camera type, saves images produced by the currently working camera*/
        kCameraTypeVisible = 5,
    };

    /*! Type of file */
    enum FileType {
        /*! File type in JPEG photo format */
        kFileTypeJpeg = 0,

        /*! File type in MP4 video format */
        kFileTypeMp4 = 3,
    };

    /*! File name */
    std::string file_name;

    /*! File path, used when reading the file */
    std::string file_path;

    /*! File size */
    size_t file_size;

    /*! Type of file */
    FileType file_type;

    /*! Type of camera */
    CameraType camera_type;

    /*! Longitude of the photo taken */
    double latitude;

    /*! Latitude of the photo taken */
    double longitude;

    /*! Absolute altitude of the photo taken */
    double absolute_altitude;

    /*! Relative altitude of the photo taken */
    double relative_altitude;

    /*! Gimbal angle when taking the photo */
    double gimbal_yaw_degree;

    /*! Width of the photo */
    int32_t image_width;

    /*! Height of the photo */
    int32_t image_height;

    /*! Duration of the video */
    uint32_t video_duration;

    /*! File creation time */
    time_t create_time;
};