blob: 4daea639cbbc07f99be163b2afcd477970c367d0 [file] [log] [blame]
/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of The Linux Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef __QCAMERA_INTF_H__
#define __QCAMERA_INTF_H__
#include <stdint.h>
#include <pthread.h>
#include <inttypes.h>
#include <media/msm_camera.h>
#define PAD_TO_WORD(a) (((a)+3)&~3)
#define PAD_TO_2K(a) (((a)+2047)&~2047)
#define PAD_TO_4K(a) (((a)+4095)&~4095)
#define PAD_TO_8K(a) (((a)+8191)&~8191)
#define CEILING32(X) (((X) + 0x0001F) & 0xFFFFFFE0)
#define CEILING16(X) (((X) + 0x000F) & 0xFFF0)
#define CEILING4(X) (((X) + 0x0003) & 0xFFFC)
#define CEILING2(X) (((X) + 0x0001) & 0xFFFE)
#define MAX_ROI 2
#define MAX_NUM_PARM 5
#define MAX_NUM_OPS 2
#define VIDEO_MAX_PLANES 8
#define MAX_SNAPSHOT_BUFFERS 5
#define MAX_EXP_BRACKETING_LENGTH 32
/* No sharpness for default */
#define CAMERA_MIN_SHARPNESS 0
#define CAMERA_DEF_SHARPNESS 10
#define CAMERA_MAX_SHARPNESS 30
#define CAMERA_SHARPNESS_STEP 5
/* No saturation for default */
#define CAMERA_MIN_SATURATION 0
#define CAMERA_DEF_SATURATION 5
#define CAMERA_MAX_SATURATION 10
#define CAMERA_SATURATION_STEP 1
#define CAMERA_MIN_BRIGHTNESS 0
#define CAMERA_DEF_BRIGHTNESS 3
#define CAMERA_MAX_BRIGHTNESS 6
#define CAMERA_BRIGHTNESS_STEP 1
#define CAMERA_MIN_CONTRAST 0
#define CAMERA_DEF_CONTRAST 5
#define CAMERA_MAX_CONTRAST 10
#define CAMERA_CONTRAST_STEP 1
/* No hue for default. */
#define CAMERA_MIN_HUE 0
#define CAMERA_DEF_HUE 0
#define CAMERA_MAX_HUE 300
#define CAMERA_HUE_STEP 60
#define CAMERA_MIN_ZOOM 0
#define CAMERA_DEF_ZOOM 0
#define CAMERA_MAX_ZOOM 0x31
#define CAMERA_ZOOM_STEP 0x3
#define ANDROID_FB0 "/dev/graphics/fb0"
#define LE_FB0 "/dev/fb0"
// Events common to encoder and decoder
#define JPEG_EVENT_DONE 0
#define JPEG_EVENT_WARNING 1
#define JPEG_EVENT_ERROR 2
#define JPEG_EVENT_ABORTED 3
// Events specific to encoder
#define JPEG_EVENT_THUMBNAIL_DROPPED 4
/* Exif Tag ID */
typedef uint32_t exif_tag_id_t;
/* Exif Info (opaque definition) */
struct exif_info_t;
typedef struct exif_info_t * exif_info_obj_t;
typedef enum {
BACK_CAMERA,
FRONT_CAMERA,
}cam_position_t;
typedef enum {
CAM_CTRL_FAILED, /* Failure in doing operation */
CAM_CTRL_SUCCESS, /* Operation Succeded */
CAM_CTRL_INVALID_PARM, /* Inavlid parameter provided */
CAM_CTRL_NOT_SUPPORTED, /* Parameter/operation not supported */
CAM_CTRL_ACCEPTED, /* Parameter accepted */
CAM_CTRL_MAX,
} cam_ctrl_status_t;
typedef enum {
CAMERA_YUV_420_NV12,
CAMERA_YUV_420_NV21,
CAMERA_YUV_420_NV21_ADRENO,
CAMERA_BAYER_SBGGR10,
CAMERA_RDI,
CAMERA_YUV_420_YV12,
CAMERA_YUV_422_NV16,
CAMERA_YUV_422_NV61,
CAMERA_YUV_422_YUYV,
} cam_format_t;
typedef enum {
CAMERA_PAD_NONE,
CAMERA_PAD_TO_WORD, /*2 bytes*/
CAMERA_PAD_TO_LONG_WORD, /*4 bytes*/
CAMERA_PAD_TO_8, /*8 bytes*/
CAMERA_PAD_TO_16, /*16 bytes*/
CAMERA_PAD_TO_1K, /*1k bytes*/
CAMERA_PAD_TO_2K, /*2k bytes*/
CAMERA_PAD_TO_4K,
CAMERA_PAD_TO_8K
} cam_pad_format_t;
typedef struct {
int ext_mode; /* preview, main, thumbnail, video, raw, etc */
int frame_idx; /* frame index */
int fd; /* origin fd */
uint32_t size;
} mm_camera_frame_map_type;
typedef struct {
int ext_mode; /* preview, main, thumbnail, video, raw, etc */
int frame_idx; /* frame index */
} mm_camera_frame_unmap_type;
typedef enum {
CAM_SOCK_MSG_TYPE_FD_MAPPING,
CAM_SOCK_MSG_TYPE_FD_UNMAPPING,
CAM_SOCK_MSG_TYPE_WDN_START,
CAM_SOCK_MSG_TYPE_HIST_MAPPING,
CAM_SOCK_MSG_TYPE_HIST_UNMAPPING,
CAM_SOCK_MSG_TYPE_HDR_START,
CAM_SOCK_MSG_TYPE_MAX
}mm_camera_socket_msg_type;
#define MAX_HDR_EXP_FRAME_NUM 5
typedef struct {
unsigned long cookie;
int num_hdr_frames;
int hdr_main_idx[MAX_HDR_EXP_FRAME_NUM];
int hdr_thm_idx[MAX_HDR_EXP_FRAME_NUM];
int exp[MAX_HDR_EXP_FRAME_NUM];
} mm_camera_hdr_start_type;
#define MM_MAX_WDN_NUM 2
typedef struct {
unsigned long cookie;
int num_frames;
int ext_mode[MM_MAX_WDN_NUM];
int frame_idx[MM_MAX_WDN_NUM];
} mm_camera_wdn_start_type;
typedef struct {
mm_camera_socket_msg_type msg_type;
union {
mm_camera_frame_map_type frame_fd_map;
mm_camera_frame_unmap_type frame_fd_unmap;
mm_camera_wdn_start_type wdn_start;
mm_camera_hdr_start_type hdr_pkg;
} payload;
} cam_sock_packet_t;
typedef enum {
CAM_VIDEO_FRAME,
CAM_SNAPSHOT_FRAME,
CAM_PREVIEW_FRAME,
}cam_frame_type_t;
typedef enum {
CAMERA_MODE_2D = (1<<0),
CAMERA_MODE_3D = (1<<1),
CAMERA_NONZSL_MODE = (1<<2),
CAMERA_ZSL_MODE = (1<<3),
CAMERA_MODE_MAX = CAMERA_ZSL_MODE,
} camera_mode_t;
typedef struct {
int modes_supported;
int8_t camera_id;
cam_position_t position;
uint32_t sensor_mount_angle;
}qcamera_info_t;
typedef struct {
camera_mode_t mode;
int8_t camera_id;
camera_mode_t cammode;
}config_params_t;
typedef struct {
uint32_t len;
uint32_t y_offset;
uint32_t cbcr_offset;
} cam_sp_len_offset_t;
typedef struct{
uint32_t len;
uint32_t offset;
} cam_mp_len_offset_t;
typedef struct {
int num_planes;
union {
cam_sp_len_offset_t sp;
cam_mp_len_offset_t mp[8];
};
uint32_t frame_len;
} cam_frame_len_offset_t;
typedef struct {
uint32_t parm[MAX_NUM_PARM];
uint32_t ops[MAX_NUM_OPS];
uint8_t yuv_output;
uint8_t jpeg_capture;
uint32_t max_pict_width;
uint32_t max_pict_height;
uint32_t max_preview_width;
uint32_t max_preview_height;
uint32_t max_video_width;
uint32_t max_video_height;
uint32_t effect;
camera_mode_t modes;
uint8_t preview_format;
uint32_t preview_sizes_cnt;
uint32_t thumb_sizes_cnt;
uint32_t video_sizes_cnt;
uint32_t hfr_sizes_cnt;
uint8_t vfe_output_enable;
uint8_t hfr_frame_skip;
uint32_t default_preview_width;
uint32_t default_preview_height;
uint32_t bestshot_reconfigure;
uint32_t pxlcode;
}cam_prop_t;
typedef struct {
uint16_t video_width; /* Video width seen by VFE could be different than orig. Ex. DIS */
uint16_t video_height; /* Video height seen by VFE */
uint16_t picture_width; /* Picture width seen by VFE */
uint16_t picture_height; /* Picture height seen by VFE */
uint16_t display_width; /* width of display */
uint16_t display_height; /* height of display */
uint16_t orig_video_width; /* original video width received */
uint16_t orig_video_height; /* original video height received */
uint16_t orig_picture_dx; /* original picture width received */
uint16_t orig_picture_dy; /* original picture height received */
uint16_t ui_thumbnail_height; /* Just like orig_picture_dx */
uint16_t ui_thumbnail_width; /* Just like orig_picture_dy */
uint16_t thumbnail_height;
uint16_t thumbnail_width;
uint16_t orig_picture_width;
uint16_t orig_picture_height;
uint16_t orig_thumb_width;
uint16_t orig_thumb_height;
uint16_t raw_picture_height;
uint16_t raw_picture_width;
uint16_t rdi0_height;
uint16_t rdi0_width;
uint16_t rdi1_height;
uint16_t rdi1_width;
uint32_t hjr_xtra_buff_for_bayer_filtering;
cam_format_t prev_format;
cam_format_t enc_format;
cam_format_t thumb_format;
cam_format_t main_img_format;
cam_format_t rdi0_format;
cam_format_t rdi1_format;
cam_format_t raw_img_format;
cam_pad_format_t prev_padding_format;
cam_pad_format_t enc_padding_format;
cam_pad_format_t thumb_padding_format;
cam_pad_format_t main_padding_format;
uint16_t display_luma_width;
uint16_t display_luma_height;
uint16_t display_chroma_width;
uint16_t display_chroma_height;
uint16_t video_luma_width;
uint16_t video_luma_height;
uint16_t video_chroma_width;
uint16_t video_chroma_height;
uint16_t thumbnail_luma_width;
uint16_t thumbnail_luma_height;
uint16_t thumbnail_chroma_width;
uint16_t thumbnail_chroma_height;
uint16_t main_img_luma_width;
uint16_t main_img_luma_height;
uint16_t main_img_chroma_width;
uint16_t main_img_chroma_height;
int rotation;
cam_frame_len_offset_t display_frame_offset;
cam_frame_len_offset_t video_frame_offset;
cam_frame_len_offset_t picture_frame_offset;
cam_frame_len_offset_t thumb_frame_offset;
uint32_t channel_interface_mask;
} cam_ctrl_dimension_t;
typedef struct {
uint8_t cid;
uint8_t dt;
uint32_t inst_handle;
} cam_cid_entry_t;
#define CAM_MAX_CID_NUM 8
typedef struct {
/*should we hard code max CIDs? if not we need to have two CMD*/
uint8_t num_cids;
cam_cid_entry_t cid_entries[CAM_MAX_CID_NUM];
} cam_cid_info_t;
typedef struct {
/* we still use prev, video, main,
* thumb to interprete image types */
uint32_t image_mode; /* input */
cam_format_t format; /* input */
cam_pad_format_t padding_format; /* input */
int rotation; /* input */
uint16_t width; /* input/output */
uint16_t height; /* input/output */
cam_frame_len_offset_t frame_offset; /* output */
} cam_frame_resolution_t;
/* Add enumenrations at the bottom but before MM_CAMERA_PARM_MAX */
typedef enum {
MM_CAMERA_PARM_PICT_SIZE,
MM_CAMERA_PARM_ZOOM_RATIO,
MM_CAMERA_PARM_HISTOGRAM,
MM_CAMERA_PARM_DIMENSION,
MM_CAMERA_PARM_FPS,
MM_CAMERA_PARM_FPS_MODE, /*5*/
MM_CAMERA_PARM_EFFECT,
MM_CAMERA_PARM_EXPOSURE_COMPENSATION,
MM_CAMERA_PARM_EXPOSURE,
MM_CAMERA_PARM_SHARPNESS,
MM_CAMERA_PARM_CONTRAST, /*10*/
MM_CAMERA_PARM_SATURATION,
MM_CAMERA_PARM_BRIGHTNESS,
MM_CAMERA_PARM_WHITE_BALANCE,
MM_CAMERA_PARM_LED_MODE,
MM_CAMERA_PARM_ANTIBANDING, /*15*/
MM_CAMERA_PARM_ROLLOFF,
MM_CAMERA_PARM_CONTINUOUS_AF,
MM_CAMERA_PARM_FOCUS_RECT,
MM_CAMERA_PARM_AEC_ROI,
MM_CAMERA_PARM_AF_ROI, /*20*/
MM_CAMERA_PARM_HJR,
MM_CAMERA_PARM_ISO,
MM_CAMERA_PARM_BL_DETECTION,
MM_CAMERA_PARM_SNOW_DETECTION,
MM_CAMERA_PARM_BESTSHOT_MODE, /*25*/
MM_CAMERA_PARM_ZOOM,
MM_CAMERA_PARM_VIDEO_DIS,
MM_CAMERA_PARM_VIDEO_ROT,
MM_CAMERA_PARM_SCE_FACTOR,
MM_CAMERA_PARM_FD, /*30*/
MM_CAMERA_PARM_MODE,
/* 2nd 32 bits */
MM_CAMERA_PARM_3D_FRAME_FORMAT,
MM_CAMERA_PARM_CAMERA_ID,
MM_CAMERA_PARM_CAMERA_INFO,
MM_CAMERA_PARM_PREVIEW_SIZE, /*35*/
MM_CAMERA_PARM_QUERY_FALSH4SNAP,
MM_CAMERA_PARM_FOCUS_DISTANCES,
MM_CAMERA_PARM_BUFFER_INFO,
MM_CAMERA_PARM_JPEG_ROTATION,
MM_CAMERA_PARM_JPEG_MAINIMG_QUALITY, /* 40 */
MM_CAMERA_PARM_JPEG_THUMB_QUALITY,
MM_CAMERA_PARM_ZSL_ENABLE,
MM_CAMERA_PARM_FOCAL_LENGTH,
MM_CAMERA_PARM_HORIZONTAL_VIEW_ANGLE,
MM_CAMERA_PARM_VERTICAL_VIEW_ANGLE, /* 45 */
MM_CAMERA_PARM_MCE,
MM_CAMERA_PARM_RESET_LENS_TO_INFINITY,
MM_CAMERA_PARM_SNAPSHOTDATA,
MM_CAMERA_PARM_HFR,
MM_CAMERA_PARM_REDEYE_REDUCTION, /* 50 */
MM_CAMERA_PARM_WAVELET_DENOISE,
MM_CAMERA_PARM_3D_DISPLAY_DISTANCE,
MM_CAMERA_PARM_3D_VIEW_ANGLE,
MM_CAMERA_PARM_PREVIEW_FORMAT,
MM_CAMERA_PARM_RDI_FORMAT,
MM_CAMERA_PARM_HFR_SIZE, /* 55 */
MM_CAMERA_PARM_3D_EFFECT,
MM_CAMERA_PARM_3D_MANUAL_CONV_RANGE,
MM_CAMERA_PARM_3D_MANUAL_CONV_VALUE,
MM_CAMERA_PARM_ENABLE_3D_MANUAL_CONVERGENCE,
/* These are new parameters defined here */
MM_CAMERA_PARM_CH_IMAGE_FMT, /* 60 */ // mm_camera_ch_image_fmt_parm_t
MM_CAMERA_PARM_OP_MODE, // camera state, sub state also
MM_CAMERA_PARM_SHARPNESS_CAP, //
MM_CAMERA_PARM_SNAPSHOT_BURST_NUM, // num shots per snapshot action
MM_CAMERA_PARM_LIVESHOT_MAIN, // enable/disable full size live shot
MM_CAMERA_PARM_MAXZOOM, /* 65 */
MM_CAMERA_PARM_LUMA_ADAPTATION, // enable/disable
MM_CAMERA_PARM_HDR,
MM_CAMERA_PARM_CROP,
MM_CAMERA_PARM_MAX_PICTURE_SIZE,
MM_CAMERA_PARM_MAX_PREVIEW_SIZE, /* 70 */
MM_CAMERA_PARM_ASD_ENABLE,
MM_CAMERA_PARM_RECORDING_HINT,
MM_CAMERA_PARM_CAF_ENABLE,
MM_CAMERA_PARM_FULL_LIVESHOT,
MM_CAMERA_PARM_DIS_ENABLE, /* 75 */
MM_CAMERA_PARM_AEC_LOCK,
MM_CAMERA_PARM_AWB_LOCK,
MM_CAMERA_PARM_AF_MTR_AREA,
MM_CAMERA_PARM_AEC_MTR_AREA,
MM_CAMERA_GET_PARM_LOW_LIGHT_FOR_ZSL,
MM_CAMERA_PARM_LOW_POWER_MODE,
MM_CAMERA_PARM_MAX_HFR_MODE, /* 80 */
MM_CAMERA_PARM_MAX_VIDEO_SIZE,
MM_CAMERA_PARM_DEF_PREVIEW_SIZES,
MM_CAMERA_PARM_DEF_VIDEO_SIZES,
MM_CAMERA_PARM_DEF_THUMB_SIZES,
MM_CAMERA_PARM_DEF_HFR_SIZES,
MM_CAMERA_PARM_PREVIEW_SIZES_CNT,
MM_CAMERA_PARM_VIDEO_SIZES_CNT,
MM_CAMERA_PARM_THUMB_SIZES_CNT,
MM_CAMERA_PARM_HFR_SIZES_CNT,
MM_CAMERA_PARM_GRALLOC_USAGE,
MM_CAMERA_PARM_VFE_OUTPUT_ENABLE, //to check whether both oputputs are
MM_CAMERA_PARM_DEFAULT_PREVIEW_WIDTH,
MM_CAMERA_PARM_DEFAULT_PREVIEW_HEIGHT,
MM_CAMERA_PARM_FOCUS_MODE,
MM_CAMERA_PARM_HFR_FRAME_SKIP,
MM_CAMERA_PARM_CH_INTERFACE,
//or single output enabled to differentiate 7x27a with others
MM_CAMERA_PARM_BESTSHOT_RECONFIGURE,
MM_CAMERA_PARM_MAX_NUM_FACES_DECT,
MM_CAMERA_PARM_FPS_RANGE,
MM_CAMERA_PARM_CID,
MM_CAMERA_PARM_FRAME_RESOLUTION,
MM_CAMERA_PARM_RAW_SNAPSHOT_FMT,
MM_CAMERA_PARM_FACIAL_FEATURE_INFO,
MM_CAMERA_PARM_CAF_LOCK_CANCEL,
MM_CAMERA_PARM_CAF_TYPE,
MM_CAMERA_PARM_LUX_IDX,
MM_CAMERA_PARM_GET_AF_STATUS,
MM_CAMERA_PARM_CHECK_AF_RETRY,
MM_CAMERA_PARM_LG_CAF_LOCK,
MM_CAMERA_PARM_INFORM_STARTPRVIEW,
MM_CAMERA_PARM_MAX
} mm_camera_parm_type_t;
typedef enum {
STREAM_IMAGE,
STREAM_RAW,
STREAM_IMAGE_AND_RAW,
STREAM_RAW_AND_RAW,
STREAM_MAX,
} mm_camera_channel_stream_info_t;
typedef enum {
CAMERA_SET_PARM_DISPLAY_INFO,
CAMERA_SET_PARM_DIMENSION,
CAMERA_SET_PARM_ZOOM,
CAMERA_SET_PARM_SENSOR_POSITION,
CAMERA_SET_PARM_FOCUS_RECT,
CAMERA_SET_PARM_LUMA_ADAPTATION,
CAMERA_SET_PARM_CONTRAST,
CAMERA_SET_PARM_BRIGHTNESS,
CAMERA_SET_PARM_EXPOSURE_COMPENSATION,
CAMERA_SET_PARM_SHARPNESS,
CAMERA_SET_PARM_HUE, /* 10 */
CAMERA_SET_PARM_SATURATION,
CAMERA_SET_PARM_EXPOSURE,
CAMERA_SET_PARM_AUTO_FOCUS,
CAMERA_SET_PARM_WB,
CAMERA_SET_PARM_EFFECT,
CAMERA_SET_PARM_FPS,
CAMERA_SET_PARM_FLASH,
CAMERA_SET_PARM_NIGHTSHOT_MODE,
CAMERA_SET_PARM_REFLECT,
CAMERA_SET_PARM_PREVIEW_MODE, /* 20 */
CAMERA_SET_PARM_ANTIBANDING,
CAMERA_SET_PARM_RED_EYE_REDUCTION,
CAMERA_SET_PARM_FOCUS_STEP,
CAMERA_SET_PARM_EXPOSURE_METERING,
CAMERA_SET_PARM_AUTO_EXPOSURE_MODE,
CAMERA_SET_PARM_ISO,
CAMERA_SET_PARM_BESTSHOT_MODE,
CAMERA_SET_PARM_ENCODE_ROTATION,
CAMERA_SET_PARM_PREVIEW_FPS,
CAMERA_SET_PARM_AF_MODE, /* 30 */
CAMERA_SET_PARM_HISTOGRAM,
CAMERA_SET_PARM_FLASH_STATE,
CAMERA_SET_PARM_FRAME_TIMESTAMP,
CAMERA_SET_PARM_STROBE_FLASH,
CAMERA_SET_PARM_FPS_LIST,
CAMERA_SET_PARM_HJR,
CAMERA_SET_PARM_ROLLOFF,
CAMERA_STOP_PREVIEW,
CAMERA_START_PREVIEW,
CAMERA_START_SNAPSHOT, /* 40 */
CAMERA_START_RAW_SNAPSHOT,
CAMERA_STOP_SNAPSHOT,
CAMERA_EXIT,
CAMERA_ENABLE_BSM,
CAMERA_DISABLE_BSM,
CAMERA_GET_PARM_ZOOM,
CAMERA_GET_PARM_MAXZOOM,
CAMERA_GET_PARM_ZOOMRATIOS,
CAMERA_GET_PARM_AF_SHARPNESS,
CAMERA_SET_PARM_LED_MODE, /* 50 */
CAMERA_SET_MOTION_ISO,
CAMERA_AUTO_FOCUS_CANCEL,
CAMERA_GET_PARM_FOCUS_STEP,
CAMERA_ENABLE_AFD,
CAMERA_PREPARE_SNAPSHOT,
CAMERA_SET_FPS_MODE,
CAMERA_START_VIDEO,
CAMERA_STOP_VIDEO,
CAMERA_START_RECORDING,
CAMERA_STOP_RECORDING, /* 60 */
CAMERA_SET_VIDEO_DIS_PARAMS,
CAMERA_SET_VIDEO_ROT_PARAMS,
CAMERA_SET_PARM_AEC_ROI,
CAMERA_SET_CAF,
CAMERA_SET_PARM_BL_DETECTION_ENABLE,
CAMERA_SET_PARM_SNOW_DETECTION_ENABLE,
CAMERA_SET_PARM_STROBE_FLASH_MODE,
CAMERA_SET_PARM_AF_ROI,
CAMERA_START_LIVESHOT,
CAMERA_SET_SCE_FACTOR, /* 70 */
CAMERA_GET_CAPABILITIES,
CAMERA_GET_PARM_DIMENSION,
CAMERA_GET_PARM_LED_MODE,
CAMERA_SET_PARM_FD,
CAMERA_GET_PARM_3D_FRAME_FORMAT,
CAMERA_QUERY_FLASH_FOR_SNAPSHOT,
CAMERA_GET_PARM_FOCUS_DISTANCES,
CAMERA_START_ZSL,
CAMERA_STOP_ZSL,
CAMERA_ENABLE_ZSL, /* 80 */
CAMERA_GET_PARM_FOCAL_LENGTH,
CAMERA_GET_PARM_HORIZONTAL_VIEW_ANGLE,
CAMERA_GET_PARM_VERTICAL_VIEW_ANGLE,
CAMERA_SET_PARM_WAVELET_DENOISE,
CAMERA_SET_PARM_MCE,
CAMERA_ENABLE_STEREO_CAM,
CAMERA_SET_PARM_RESET_LENS_TO_INFINITY,
CAMERA_GET_PARM_SNAPSHOTDATA,
CAMERA_SET_PARM_HFR,
CAMERA_SET_REDEYE_REDUCTION, /* 90 */
CAMERA_SET_PARM_3D_DISPLAY_DISTANCE,
CAMERA_SET_PARM_3D_VIEW_ANGLE,
CAMERA_SET_PARM_3D_EFFECT,
CAMERA_SET_PARM_PREVIEW_FORMAT,
CAMERA_GET_PARM_3D_DISPLAY_DISTANCE, /* 95 */
CAMERA_GET_PARM_3D_VIEW_ANGLE,
CAMERA_GET_PARM_3D_EFFECT,
CAMERA_GET_PARM_3D_MANUAL_CONV_RANGE,
CAMERA_SET_PARM_3D_MANUAL_CONV_VALUE,
CAMERA_ENABLE_3D_MANUAL_CONVERGENCE, /* 100 */
CAMERA_SET_PARM_HDR,
CAMERA_SET_ASD_ENABLE,
CAMERA_POSTPROC_ABORT,
CAMERA_SET_AEC_MTR_AREA,
CAMERA_SET_AEC_LOCK, /*105*/
CAMERA_SET_AWB_LOCK,
CAMERA_SET_RECORDING_HINT,
CAMERA_SET_PARM_CAF,
CAMERA_SET_FULL_LIVESHOT,
CAMERA_SET_DIS_ENABLE, /*110*/
CAMERA_GET_PARM_MAX_HFR_MODE,
CAMERA_SET_LOW_POWER_MODE,
CAMERA_GET_PARM_DEF_PREVIEW_SIZES,
CAMERA_GET_PARM_DEF_VIDEO_SIZES,
CAMERA_GET_PARM_DEF_THUMB_SIZES, /*115*/
CAMERA_GET_PARM_DEF_HFR_SIZES,
CAMERA_GET_PARM_MAX_LIVESHOT_SIZE,
CAMERA_GET_PARM_FPS_RANGE,
CAMERA_SET_3A_CONVERGENCE,
CAMERA_SET_PREVIEW_HFR, /*120*/
CAMERA_GET_MAX_DIMENSION,
CAMERA_GET_MAX_NUM_FACES_DECT,
CAMERA_SET_CHANNEL_STREAM,
CAMERA_GET_CHANNEL_STREAM,
CAMERA_SET_PARM_CID, /*125*/
CAMERA_GET_PARM_FRAME_RESOLUTION,
CAMERA_GET_FACIAL_FEATURE_INFO,
CAMERA_SET_CAF_LOCK_CANCEL,
CAMERA_GET_PARM_HDR,
CAMERA_SET_PARM_CAF_TYPE,
CAMERA_GET_PARM_LUX_IDX,
CAMERA_GET_PARM_LOW_LIGHT_FOR_ZSL,
CAMERA_GET_PARM_AF_STATUS,
CAMERA_CHECK_AF_RETRY,
CAMERA_SET_LG_CAF_LOCK,
CAMERA_SET_INFORM_STARTPREVIEW,
CAMERA_CTRL_PARM_MAX
} cam_ctrl_type;
typedef enum {
CAMERA_ERROR_NO_MEMORY,
CAMERA_ERROR_EFS_FAIL, /* Low-level operation failed */
CAMERA_ERROR_EFS_FILE_OPEN, /* File already opened */
CAMERA_ERROR_EFS_FILE_NOT_OPEN, /* File not opened */
CAMERA_ERROR_EFS_FILE_ALREADY_EXISTS, /* File already exists */
CAMERA_ERROR_EFS_NONEXISTENT_DIR, /* User directory doesn't exist */
CAMERA_ERROR_EFS_NONEXISTENT_FILE, /* User directory doesn't exist */
CAMERA_ERROR_EFS_BAD_FILE_NAME, /* Client specified invalid file/directory name*/
CAMERA_ERROR_EFS_BAD_FILE_HANDLE, /* Client specified invalid file/directory name*/
CAMERA_ERROR_EFS_SPACE_EXHAUSTED, /* Out of file system space */
CAMERA_ERROR_EFS_OPEN_TABLE_FULL, /* Out of open-file table slots */
CAMERA_ERROR_EFS_OTHER_ERROR, /* Other error */
CAMERA_ERROR_CONFIG,
CAMERA_ERROR_EXIF_ENCODE,
CAMERA_ERROR_VIDEO_ENGINE,
CAMERA_ERROR_IPL,
CAMERA_ERROR_INVALID_FORMAT,
CAMERA_ERROR_TIMEOUT,
CAMERA_ERROR_ESD,
CAMERA_ERROR_MAX
} camera_error_type;
#if defined CAMERA_ANTIBANDING_OFF
#undef CAMERA_ANTIBANDING_OFF
#endif
#if defined CAMERA_ANTIBANDING_60HZ
#undef CAMERA_ANTIBANDING_60HZ
#endif
#if defined CAMERA_ANTIBANDING_50HZ
#undef CAMERA_ANTIBANDING_50HZ
#endif
#if defined CAMERA_ANTIBANDING_AUTO
#undef CAMERA_ANTIBANDING_AUTO
#endif
typedef enum {
CAMERA_ANTIBANDING_OFF,
CAMERA_ANTIBANDING_60HZ,
CAMERA_ANTIBANDING_50HZ,
CAMERA_ANTIBANDING_AUTO,
CAMERA_ANTIBANDING_AUTO_50HZ,
CAMERA_ANTIBANDING_AUTO_60HZ,
CAMERA_MAX_ANTIBANDING,
} camera_antibanding_type;
/* Enum Type for different ISO Mode supported */
typedef enum {
CAMERA_ISO_AUTO = 0,
CAMERA_ISO_DEBLUR,
CAMERA_ISO_100,
CAMERA_ISO_200,
CAMERA_ISO_400,
CAMERA_ISO_800,
CAMERA_ISO_1600,
CAMERA_ISO_MAX
} camera_iso_mode_type;
typedef enum {
MM_CAMERA_FACIAL_FEATURE_FD, // facial detection
MM_CAMERA_FACIAL_FEATURE_MAX
} camera_facial_features;
typedef enum {
AEC_ROI_OFF,
AEC_ROI_ON
} aec_roi_ctrl_t;
typedef enum {
AEC_ROI_BY_INDEX,
AEC_ROI_BY_COORDINATE,
} aec_roi_type_t;
typedef struct {
uint32_t x;
uint32_t y;
} cam_coordinate_type_t;
/*
* Define DRAW_RECTANGLES to draw rectangles on screen. Just for test purpose.
*/
//#define DRAW_RECTANGLES
typedef struct {
uint16_t x;
uint16_t y;
uint16_t dx;
uint16_t dy;
} roi_t;
typedef struct {
aec_roi_ctrl_t aec_roi_enable;
aec_roi_type_t aec_roi_type;
union {
cam_coordinate_type_t coordinate;
uint32_t aec_roi_idx;
} aec_roi_position;
} cam_set_aec_roi_t;
typedef struct {
uint32_t frm_id;
uint8_t num_roi;
roi_t roi[MAX_ROI];
uint8_t is_multiwindow;
} roi_info_t;
/* Exif Tag Data Type */
typedef enum
{
EXIF_BYTE = 1,
EXIF_ASCII = 2,
EXIF_SHORT = 3,
EXIF_LONG = 4,
EXIF_RATIONAL = 5,
EXIF_UNDEFINED = 7,
EXIF_SLONG = 9,
EXIF_SRATIONAL = 10
} exif_tag_type_t;
/* Exif Rational Data Type */
typedef struct
{
uint32_t num; // Numerator
uint32_t denom; // Denominator
} rat_t;
/* Exif Signed Rational Data Type */
typedef struct
{
int32_t num; // Numerator
int32_t denom; // Denominator
} srat_t;
typedef struct
{
exif_tag_type_t type;
uint8_t copy;
uint32_t count;
union
{
char *_ascii;
uint8_t *_bytes;
uint8_t _byte;
uint16_t *_shorts;
uint16_t _short;
uint32_t *_longs;
uint32_t _long;
rat_t *_rats;
rat_t _rat;
uint8_t *_undefined;
int32_t *_slongs;
int32_t _slong;
srat_t *_srats;
srat_t _srat;
} data;
} exif_tag_entry_t;
typedef struct {
uint32_t tag_id;
exif_tag_entry_t tag_entry;
} exif_tags_info_t;
typedef enum {
HDR_BRACKETING_OFF,
HDR_MODE,
EXP_BRACKETING_MODE
} hdr_mode;
typedef struct {
hdr_mode mode;
uint32_t hdr_enable;
uint32_t total_frames;
uint32_t total_hal_frames;
char values[MAX_EXP_BRACKETING_LENGTH]; /* user defined values */
} exp_bracketing_t;
typedef struct {
roi_t mtr_area[MAX_ROI];
uint32_t num_area;
int weight[MAX_ROI];
} aec_mtr_area_t;
typedef struct {
int denoise_enable;
int process_plates;
} denoise_param_t;
#ifndef HAVE_CAMERA_SIZE_TYPE
#define HAVE_CAMERA_SIZE_TYPE
struct camera_size_type {
int width;
int height;
};
#endif
typedef struct {
uint32_t yoffset;
uint32_t cbcr_offset;
uint32_t size;
struct camera_size_type resolution;
}cam_buf_info_t;
typedef struct {
int x;
int y;
}cam_point_t;
typedef struct {
/* AF parameters */
uint8_t focus_position;
/* AEC parameters */
uint32_t line_count;
uint8_t luma_target;
/* AWB parameters */
int32_t r_gain;
int32_t b_gain;
int32_t g_gain;
uint8_t exposure_mode;
uint8_t exposure_program;
float exposure_time;
uint32_t iso_speed;
} snapshotData_info_t;
typedef enum {
CAMERA_HFR_MODE_OFF = 1,
CAMERA_HFR_MODE_60FPS,
CAMERA_HFR_MODE_90FPS,
CAMERA_HFR_MODE_120FPS,
CAMERA_HFR_MODE_150FPS,
} camera_hfr_mode_t;
/* frame Q*/
struct fifo_node
{
struct fifo_node *next;
void *f;
};
struct fifo_queue
{
int num_of_frames;
struct fifo_node *front;
struct fifo_node *back;
pthread_mutex_t mut;
pthread_cond_t wait;
char* name;
};
typedef struct {
uint32_t buf_len;
uint8_t num;
uint8_t pmem_type;
uint32_t vaddr[8];
} mm_camera_histo_mem_info_t;
typedef enum {
MM_CAMERA_CTRL_EVT_ZOOM_DONE,
MM_CAMERA_CTRL_EVT_AUTO_FOCUS_DONE,
MM_CAMERA_CTRL_EVT_PREP_SNAPSHOT,
MM_CAMERA_CTRL_EVT_SNAPSHOT_CONFIG_DONE,
MM_CAMERA_CTRL_EVT_WDN_DONE, // wavelet denoise done
MM_CAMERA_CTRL_EVT_HDR_DONE,
MM_CAMERA_CTRL_EVT_AUTO_FOCUS_MOVE,
MM_CAMERA_CTRL_EVT_ERROR,
MM_CAMERA_CTRL_EVT_MAX
}mm_camera_ctrl_event_type_t;
typedef struct {
mm_camera_ctrl_event_type_t evt;
cam_ctrl_status_t status;
unsigned long cookie;
} mm_camera_ctrl_event_t;
typedef enum {
MM_CAMERA_CH_EVT_STREAMING_ON,
MM_CAMERA_CH_EVT_STREAMING_OFF,
MM_CAMERA_CH_EVT_STREAMING_ERR,
MM_CAMERA_CH_EVT_DATA_DELIVERY_DONE,
MM_CAMERA_CH_EVT_DATA_REQUEST_MORE,
MM_CAMERA_CH_EVT_MAX
}mm_camera_ch_event_type_t;
typedef struct {
uint32_t ch;
mm_camera_ch_event_type_t evt;
} mm_camera_ch_event_t;
typedef struct {
uint32_t index;
/* TBD: need more fields for histo stats? */
} mm_camera_stats_histo_t;
typedef struct {
uint32_t event_id;
union {
mm_camera_stats_histo_t stats_histo;
} e;
} mm_camera_stats_event_t;
typedef enum {
FD_ROI_TYPE_HEADER,
FD_ROI_TYPE_DATA
} fd_roi_type_t;
typedef struct {
int fd_mode;
int num_fd;
} fd_set_parm_t;
typedef struct {
uint32_t frame_id;
int16_t num_face_detected;
} fd_roi_header_type;
struct fd_rect_t {
uint16_t x;
uint16_t y;
uint16_t dx;
uint16_t dy;
};
typedef struct {
struct fd_rect_t face_boundary;
uint16_t left_eye_center[2];
uint16_t right_eye_center[2];
uint16_t mouth_center[2];
uint8_t smile_degree; //0 -100
uint8_t smile_confidence; //
uint8_t blink_detected; // 0 or 1
uint8_t is_face_recognised; // 0 or 1
int8_t gaze_angle; // -90 -45 0 45 90 for head left to rigth tilt
int8_t updown_dir; // -90 to 90
int8_t leftright_dir; //-90 to 90
int8_t roll_dir; // -90 to 90
int8_t left_right_gaze; // -50 to 50
int8_t top_bottom_gaze; // -50 to 50
uint8_t left_blink; // 0 - 100
uint8_t right_blink; // 0 - 100
int8_t id; // unique id for face tracking within view unless view changes
int8_t score; // score of confidence( 0 -100)
} fd_face_type;
typedef struct {
uint32_t frame_id;
uint8_t idx;
fd_face_type face;
} fd_roi_data_type;
struct fd_roi_t {
fd_roi_type_t type;
union {
fd_roi_header_type hdr;
fd_roi_data_type data;
} d;
};
typedef struct {
uint32_t event_id;
union {
mm_camera_histo_mem_info_t histo_mem_info;
struct fd_roi_t roi;
} e;
} mm_camera_info_event_t;
typedef enum {
MM_CAMERA_EVT_TYPE_CH,
MM_CAMERA_EVT_TYPE_CTRL,
MM_CAMERA_EVT_TYPE_STATS,
MM_CAMERA_EVT_TYPE_INFO,
MM_CAMERA_EVT_TYPE_MAX
} mm_camera_event_type_t;
/*
* the APP event related defines
*/
typedef enum {
MM_CAMERA_STATS_EVT_HISTO,
MM_CAMERA_STATS_EVT_MAX
} mm_camera_stats_event_type_t;
typedef enum {
MM_CAMERA_INFO_EVT_ROI,
MM_CAMERA_INFO_FLASH_FRAME_IDX,
MM_CAMERA_INFO_EVT_MAX
} mm_camera_info_event_type_t;
/* !!WARNING: PLAESE BE VERY CAREFUL!!
* v4l2_event payload has a limitation of 64 bytes.
* This makes that the whole mm_camera_event_t size
* cannot go beyond 64 bytes.
*/
typedef struct {
mm_camera_event_type_t event_type;
/* the union size cannot go beyond 64 bytes. need RFC */
union {
mm_camera_ch_event_t ch;
mm_camera_ctrl_event_t ctrl;
mm_camera_stats_event_t stats;
mm_camera_info_event_t info;
} e;
} mm_camera_event_t;
/* Auto focus mode, used for CAMERA_PARM_AF_MODE */
typedef enum {
AF_MODE_UNCHANGED = -1,
AF_MODE_NORMAL = 0,
AF_MODE_MACRO,
AF_MODE_AUTO,
AF_MODE_CAF,
AF_MODE_INFINITY,
AF_MODE_MAX
} isp3a_af_mode_t;
typedef struct {
uint32_t in1_w;
uint32_t out1_w;
uint32_t in1_h;
uint32_t out1_h;
uint32_t in2_w;
uint32_t out2_w;
uint32_t in2_h;
uint32_t out2_h;
uint8_t update_flag;
} common_crop_t;
typedef enum {
LED_MODE_OFF,
LED_MODE_AUTO,
LED_MODE_ON,
LED_MODE_TORCH,
/*new mode above should be added above this line*/
LED_MODE_MAX
} led_mode_t;
typedef struct {
int is_checking_af_retry;
int is_moving;
} af_actuator_status_t;
typedef struct{
int aec_index_for_zsl;
int zsl_flash_enable;
} aec_info_for_flash_t;
typedef struct video_dis_param_ctrl_t {
uint32_t dis_enable; /* DIS feature: 1 = enable, 0 = disable.
when enable, caller makes sure w/h are 10% more. */
uint32_t video_rec_width; /* video frame width for recording */
uint32_t video_rec_height; /* video frame height for recording */
uint32_t output_cbcr_offset;
} video_dis_param_ctrl_t;
typedef enum camera_rotation_type {
ROT_NONE = 0,
ROT_CLOCKWISE_90 = 1,
ROT_CLOCKWISE_180 = 6,
ROT_CLOCKWISE_270 = 7,
} camera_rotation_type;
typedef struct video_rotation_param_ctrl_t {
camera_rotation_type rotation; /* 0 degree = rot disable. */
} video_rotation_param_ctrl_t;
enum focus_distance_index{
FOCUS_DISTANCE_NEAR_INDEX, /* 0 */
FOCUS_DISTANCE_OPTIMAL_INDEX,
FOCUS_DISTANCE_FAR_INDEX,
FOCUS_DISTANCE_MAX_INDEX
};
typedef struct {
float focus_distance[FOCUS_DISTANCE_MAX_INDEX];
float real_gain;
float exp_time;
} focus_distances_info_t;
typedef enum msm_st_frame_packing cam_3d_frame_format_t;
typedef struct {
cam_frame_type_t frame_type;
cam_3d_frame_format_t format;
}camera_3d_frame_t;
typedef enum {
CAMERA_BESTSHOT_OFF = 0,
CAMERA_BESTSHOT_AUTO = 1,
CAMERA_BESTSHOT_LANDSCAPE = 2,
CAMERA_BESTSHOT_SNOW,
CAMERA_BESTSHOT_BEACH,
CAMERA_BESTSHOT_SUNSET,
CAMERA_BESTSHOT_NIGHT,
CAMERA_BESTSHOT_PORTRAIT,
CAMERA_BESTSHOT_BACKLIGHT,
CAMERA_BESTSHOT_SPORTS,
CAMERA_BESTSHOT_ANTISHAKE,
CAMERA_BESTSHOT_FLOWERS,
CAMERA_BESTSHOT_CANDLELIGHT,
CAMERA_BESTSHOT_FIREWORKS,
CAMERA_BESTSHOT_PARTY,
CAMERA_BESTSHOT_NIGHT_PORTRAIT,
CAMERA_BESTSHOT_THEATRE,
CAMERA_BESTSHOT_ACTION,
CAMERA_BESTSHOT_AR,
CAMERA_BESTSHOT_MAX
} camera_bestshot_mode_type;
typedef enum {
AUTO = 1,
SPOT,
CENTER_WEIGHTED,
AVERAGE
} cam_af_focusrect_t;
typedef enum {
CAMERA_AEC_FRAME_AVERAGE,
CAMERA_AEC_CENTER_WEIGHTED,
CAMERA_AEC_SPOT_METERING,
CAMERA_AEC_SMART_METERING,
CAMERA_AEC_USER_METERING,
CAMERA_AEC_MAX_MODES
} camera_auto_exposure_mode_type;
typedef enum {
FPS_MODE_AUTO,
FPS_MODE_FIXED,
} fps_mode_t;
typedef struct {
int32_t buffer[256]; /* buffer to hold data */
int32_t max_value;
} camera_preview_histogram_info;
/* Clockwise */
typedef enum {
CAMERA_ENCODING_ROTATE_0,
CAMERA_ENCODING_ROTATE_90,
CAMERA_ENCODING_ROTATE_180,
CAMERA_ENCODING_ROTATE_270
} camera_encoding_rotate_t;
typedef enum {
MOTION_ISO_OFF,
MOTION_ISO_ON
} motion_iso_t;
typedef struct {
struct msm_ctrl_cmd ctrlCmd;
int fd;
void (*af_cb)(int8_t );
int8_t is_camafctrl_thread_join;
isp3a_af_mode_t af_mode;
} cam_af_ctrl_t;
/* Display */
typedef struct {
uint16_t user_input_display_width;
uint16_t user_input_display_height;
} USER_INPUT_DISPLAY_T;
#if defined CAMERA_WB_AUTO
#undef CAMERA_WB_AUTO
#endif
#if defined CAMERA_WB_CUSTOM
#undef CAMERA_WB_CUSTOM
#endif
#if defined CAMERA_WB_INCANDESCENT
#undef CAMERA_WB_INCANDESCENT
#endif
#if defined CAMERA_WB_FLUORESCENT
#undef CAMERA_WB_FLUORESCENT
#endif
#if defined CAMERA_WB_DAYLIGHT
#undef CAMERA_WB_DAYLIGHT
#endif
#if defined CAMERA_WB_CLOUDY_DAYLIGHT
#undef CAMERA_WB_CLOUDY_DAYLIGHT
#endif
#if defined CAMERA_WB_TWILIGHT
#undef CAMERA_WB_TWILIGHT
#endif
#if defined CAMERA_WB_SHADE
#undef CAMERA_WB_SHADE
#endif
typedef enum {
CAMERA_WB_MIN_MINUS_1,
CAMERA_WB_AUTO = 1,
CAMERA_WB_CUSTOM,
CAMERA_WB_INCANDESCENT,
CAMERA_WB_FLUORESCENT,
CAMERA_WB_DAYLIGHT,
CAMERA_WB_CLOUDY_DAYLIGHT,
CAMERA_WB_TWILIGHT,
CAMERA_WB_SHADE,
CAMERA_WB_OFF,
CAMERA_WB_MAX_PLUS_1
} config3a_wb_t;
/******************************************************************************
* Function: exif_set_tag
* Description: Inserts or modifies an Exif tag to the Exif Info object. Typical
* use is to call this function multiple times - to insert all the
* desired Exif Tags individually to the Exif Info object and
* then pass the info object to the Jpeg Encoder object so
* the inserted tags would be emitted as tags in the Exif header.
* Input parameters:
* obj - The Exif Info object where the tag would be inserted to or
* modified from.
* tag_id - The Exif Tag ID of the tag to be inserted/modified.
* p_entry - The pointer to the tag entry structure which contains the
* details of tag. The pointer can be set to NULL to un-do
* previous insertion for a certain tag.
* Return values:
* JPEGERR_SUCCESS
* JPEGERR_ENULLPTR
* JPEGERR_EFAILED
* (See jpegerr.h for description of error values.)
* Notes: none
*****************************************************************************/
int exif_set_tag(exif_info_obj_t obj,
exif_tag_id_t tag_id,
exif_tag_entry_t *p_entry);
typedef uint32_t jpeg_event_t;
// Possibly supported color formats
// Ordering handcrafted for efficient coding, alter with care!
typedef enum
{
YCRCBLP_H2V2 = 0,
YCBCRLP_H2V2 = 1,
YCRCBLP_H2V1 = 2,
YCBCRLP_H2V1 = 3,
YCRCBLP_H1V2 = 4,
YCBCRLP_H1V2 = 5,
YCRCBLP_H1V1 = 6,
YCBCRLP_H1V1 = 7,
RGB565 = 8,
RGB888 = 9,
RGBa = 10,
JPEG_BITSTREAM_H2V2 = 12,
JPEG_BITSTREAM_H2V1 = 14,
JPEG_BITSTREAM_H1V2 = 16,
JPEG_BITSTREAM_H1V1 = 18,
JPEG_COLOR_FORMAT_MAX,
} jpeg_color_format_t;
/* EXIF header */
/* =======================================================================
** Macro Definitions
** ======================================================================= */
/* Enum defined to let compiler generate unique offset numbers for different
* tags - ordering matters! NOT INTENDED to be used by any application. */
typedef enum
{
// GPS IFD
GPS_VERSION_ID = 0,
GPS_LATITUDE_REF,
GPS_LATITUDE,
GPS_LONGITUDE_REF,
GPS_LONGITUDE,
GPS_ALTITUDE_REF,
GPS_ALTITUDE,
GPS_TIMESTAMP,
GPS_SATELLITES,
GPS_STATUS,
GPS_MEASUREMODE,
GPS_DOP,
GPS_SPEED_REF,
GPS_SPEED,
GPS_TRACK_REF,
GPS_TRACK,
GPS_IMGDIRECTION_REF,
GPS_IMGDIRECTION,
GPS_MAPDATUM,
GPS_DESTLATITUDE_REF,
GPS_DESTLATITUDE,
GPS_DESTLONGITUDE_REF,
GPS_DESTLONGITUDE,
GPS_DESTBEARING_REF,
GPS_DESTBEARING,
GPS_DESTDISTANCE_REF,
GPS_DESTDISTANCE,
GPS_PROCESSINGMETHOD,
GPS_AREAINFORMATION,
GPS_DATESTAMP,
GPS_DIFFERENTIAL,
// TIFF IFD
NEW_SUBFILE_TYPE,
SUBFILE_TYPE,
IMAGE_WIDTH,
IMAGE_LENGTH,
BITS_PER_SAMPLE,
COMPRESSION,
PHOTOMETRIC_INTERPRETATION,
THRESH_HOLDING,
CELL_WIDTH,
CELL_HEIGHT,
FILL_ORDER,
DOCUMENT_NAME,
IMAGE_DESCRIPTION,
MAKE,
MODEL,
STRIP_OFFSETS,
ORIENTATION,
SAMPLES_PER_PIXEL,
ROWS_PER_STRIP,
STRIP_BYTE_COUNTS,
MIN_SAMPLE_VALUE,
MAX_SAMPLE_VALUE,
X_RESOLUTION,
Y_RESOLUTION,
PLANAR_CONFIGURATION,
PAGE_NAME,
X_POSITION,
Y_POSITION,
FREE_OFFSET,
FREE_BYTE_COUNTS,
GRAY_RESPONSE_UNIT,
GRAY_RESPONSE_CURVE,
T4_OPTION,
T6_OPTION,
RESOLUTION_UNIT,
PAGE_NUMBER,
TRANSFER_FUNCTION,
SOFTWARE,
DATE_TIME,
ARTIST,
HOST_COMPUTER,
PREDICTOR,
WHITE_POINT,
PRIMARY_CHROMATICITIES,
COLOR_MAP,
HALFTONE_HINTS,
TILE_WIDTH,
TILE_LENGTH,
TILE_OFFSET,
TILE_BYTE_COUNTS,
INK_SET,
INK_NAMES,
NUMBER_OF_INKS,
DOT_RANGE,
TARGET_PRINTER,
EXTRA_SAMPLES,
SAMPLE_FORMAT,
TRANSFER_RANGE,
JPEG_PROC,
JPEG_INTERCHANGE_FORMAT,
JPEG_INTERCHANGE_FORMAT_LENGTH,
JPEG_RESTART_INTERVAL,
JPEG_LOSSLESS_PREDICTORS,
JPEG_POINT_TRANSFORMS,
JPEG_Q_TABLES,
JPEG_DC_TABLES,
JPEG_AC_TABLES,
YCBCR_COEFFICIENTS,
YCBCR_SUB_SAMPLING,
YCBCR_POSITIONING,
REFERENCE_BLACK_WHITE,
GAMMA,
ICC_PROFILE_DESCRIPTOR,
SRGB_RENDERING_INTENT,
IMAGE_TITLE,
COPYRIGHT,
EXIF_IFD,
ICC_PROFILE,
GPS_IFD,
// TIFF IFD (Thumbnail)
TN_IMAGE_WIDTH,
TN_IMAGE_LENGTH,
TN_BITS_PER_SAMPLE,
TN_COMPRESSION,
TN_PHOTOMETRIC_INTERPRETATION,
TN_IMAGE_DESCRIPTION,
TN_MAKE,
TN_MODEL,
TN_STRIP_OFFSETS,
TN_ORIENTATION,
TN_SAMPLES_PER_PIXEL,
TN_ROWS_PER_STRIP,
TN_STRIP_BYTE_COUNTS,
TN_X_RESOLUTION,
TN_Y_RESOLUTION,
TN_PLANAR_CONFIGURATION,
TN_RESOLUTION_UNIT,
TN_TRANSFER_FUNCTION,
TN_SOFTWARE,
TN_DATE_TIME,
TN_ARTIST,
TN_WHITE_POINT,
TN_PRIMARY_CHROMATICITIES,
TN_JPEGINTERCHANGE_FORMAT,
TN_JPEGINTERCHANGE_FORMAT_L,
TN_YCBCR_COEFFICIENTS,
TN_YCBCR_SUB_SAMPLING,
TN_YCBCR_POSITIONING,
TN_REFERENCE_BLACK_WHITE,
TN_COPYRIGHT,
// EXIF IFD
EXPOSURE_TIME,
F_NUMBER,
EXPOSURE_PROGRAM,
SPECTRAL_SENSITIVITY,
ISO_SPEED_RATING,
OECF,
EXIF_VERSION,
EXIF_DATE_TIME_ORIGINAL,
EXIF_DATE_TIME_DIGITIZED,
EXIF_COMPONENTS_CONFIG,
EXIF_COMPRESSED_BITS_PER_PIXEL,
SHUTTER_SPEED,
APERTURE,
BRIGHTNESS,
EXPOSURE_BIAS_VALUE,
MAX_APERTURE,
SUBJECT_DISTANCE,
METERING_MODE,
LIGHT_SOURCE,
FLASH,
FOCAL_LENGTH,
SUBJECT_AREA,
EXIF_MAKER_NOTE,
EXIF_USER_COMMENT,
SUBSEC_TIME,
SUBSEC_TIME_ORIGINAL,
SUBSEC_TIME_DIGITIZED,
EXIF_FLASHPIX_VERSION,
EXIF_COLOR_SPACE,
EXIF_PIXEL_X_DIMENSION,
EXIF_PIXEL_Y_DIMENSION,
RELATED_SOUND_FILE,
INTEROP,
FLASH_ENERGY,
SPATIAL_FREQ_RESPONSE,
FOCAL_PLANE_X_RESOLUTION,
FOCAL_PLANE_Y_RESOLUTION,
FOCAL_PLANE_RESOLUTION_UNIT,
SUBJECT_LOCATION,
EXPOSURE_INDEX,
SENSING_METHOD,
FILE_SOURCE,
SCENE_TYPE,
CFA_PATTERN,
CUSTOM_RENDERED,
EXPOSURE_MODE,
WHITE_BALANCE,
DIGITAL_ZOOM_RATIO,
FOCAL_LENGTH_35MM,
SCENE_CAPTURE_TYPE,
GAIN_CONTROL,
CONTRAST,
SATURATION,
SHARPNESS,
DEVICE_SETTINGS_DESCRIPTION,
SUBJECT_DISTANCE_RANGE,
IMAGE_UID,
PIM,
EXIF_TAG_MAX_OFFSET
} exif_tag_offset_t;
/* Below are the supported Tags (ID and structure for their data) */
#define CONSTRUCT_TAGID(offset,ID) (offset << 16 | ID)
// GPS tag version
// Use EXIFTAGTYPE_GPS_VERSION_ID as the exif_tag_type (EXIF_BYTE)
// Count should be 4
#define _ID_GPS_VERSION_ID 0x0000
#define EXIFTAGID_GPS_VERSION_ID CONSTRUCT_TAGID(GPS_VERSION_ID, _ID_GPS_VERSION_ID)
#define EXIFTAGTYPE_GPS_VERSION_ID EXIF_BYTE
// North or South Latitude
// Use EXIFTAGTYPE_GPS_LATITUDE_REF as the exif_tag_type (EXIF_ASCII)
// It should be 2 characters long including the null-terminating character.
#define _ID_GPS_LATITUDE_REF 0x0001
#define EXIFTAGID_GPS_LATITUDE_REF CONSTRUCT_TAGID(GPS_LATITUDE_REF, _ID_GPS_LATITUDE_REF)
#define EXIFTAGTYPE_GPS_LATITUDE_REF EXIF_ASCII
// Latitude
// Use EXIFTAGTYPE_GPS_LATITUDE as the exif_tag_type (EXIF_RATIONAL)
// Count should be 3
#define _ID_GPS_LATITUDE 0x0002
#define EXIFTAGID_GPS_LATITUDE CONSTRUCT_TAGID(GPS_LATITUDE, _ID_GPS_LATITUDE)
#define EXIFTAGTYPE_GPS_LATITUDE EXIF_RATIONAL
// East or West Longitude
// Use EXIFTAGTYPE_GPS_LONGITUDE_REF as the exif_tag_type (EXIF_ASCII)
// It should be 2 characters long including the null-terminating character.
#define _ID_GPS_LONGITUDE_REF 0x0003
#define EXIFTAGID_GPS_LONGITUDE_REF CONSTRUCT_TAGID(GPS_LONGITUDE_REF, _ID_GPS_LONGITUDE_REF)
#define EXIFTAGTYPE_GPS_LONGITUDE_REF EXIF_ASCII
// Longitude
// Use EXIFTAGTYPE_GPS_LONGITUDE as the exif_tag_type (EXIF_RATIONAL)
// Count should be 3
#define _ID_GPS_LONGITUDE 0x0004
#define EXIFTAGID_GPS_LONGITUDE CONSTRUCT_TAGID(GPS_LONGITUDE, _ID_GPS_LONGITUDE)
#define EXIFTAGTYPE_GPS_LONGITUDE EXIF_RATIONAL
// Altitude reference
// Use EXIFTAGTYPE_GPS_ALTITUDE_REF as the exif_tag_type (EXIF_BYTE)
#define _ID_GPS_ALTITUDE_REF 0x0005
#define EXIFTAGID_GPS_ALTITUDE_REF CONSTRUCT_TAGID(GPS_ALTITUDE_REF, _ID_GPS_ALTITUDE_REF)
#define EXIFTAGTYPE_GPS_ALTITUDE_REF EXIF_BYTE
// Altitude
// Use EXIFTAGTYPE_GPS_ALTITUDE as the exif_tag_type (EXIF_RATIONAL)
#define _ID_GPS_ALTITUDE 0x0006
#define EXIFTAGID_GPS_ALTITUDE CONSTRUCT_TAGID(GPS_ALTITUDE, _ID_GPS_ALTITUDE)
#define EXIFTAGTYPE_GPS_ALTITUE EXIF_RATIONAL
// GPS time (atomic clock)
// Use EXIFTAGTYPE_GPS_TIMESTAMP as the exif_tag_type (EXIF_RATIONAL)
// Count should be 3
#define _ID_GPS_TIMESTAMP 0x0007
#define EXIFTAGID_GPS_TIMESTAMP CONSTRUCT_TAGID(GPS_TIMESTAMP, _ID_GPS_TIMESTAMP)
#define EXIFTAGTYPE_GPS_TIMESTAMP EXIF_RATIONAL
// GPS Satellites
// Use EXIFTAGTYPE_GPS_SATELLITES as the exif_tag_type (EXIF_ASCII)
// Count can be anything.
#define _ID_GPS_SATELLITES 0x0008
#define EXIFTAGID_GPS_SATELLITES CONSTRUCT_TAGID(GPS_SATELLITES, _ID_GPS_SATELLITES)
#define EXIFTAGTYPE_GPS_SATELLITES EXIF_ASCII
// GPS Status
// Use EXIFTAGTYPE_GPS_STATUS as the exif_tag_type (EXIF_ASCII)
// It should be 2 characters long including the null-terminating character.
// "A" - Measurement in progress
// "V" - Measurement Interoperability
// Other - Reserved
#define _ID_GPS_STATUS 0x0009
#define EXIFTAGID_GPS_STATUS CONSTRUCT_TAGID(GPS_STATUS, _ID_GPS_STATUS)
#define EXIFTATTYPE_GPS_STATUS EXIF_ASCII
// GPS Measure Mode
// Use EXIFTAGTYPE_GPS_MEASUREMODE as the exif_tag_type (EXIF_ASCII)
// It should be 2 characters long including the null-terminating character.
// "2" - 2-dimensional measurement
// "3" - 3-dimensional measurement
// Other - Reserved
#define _ID_GPS_MEASUREMODE 0x000a
#define EXIFTAGID_GPS_MEASUREMODE CONSTRUCT_TAGID(GPS_MEASUREMODE, _ID_GPS_MEASUREMODE)
#define EXIFTAGTYPE_GPS_MEASUREMODE EXIF_ASCII
// GPS Measurement precision (DOP)
// Use EXIFTAGTYPE_GPS_DOP as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_GPS_DOP 0x000b
#define EXIFTAGID_GPS_DOP CONSTRUCT_TAGID(GPS_DOP, _ID_GPS_DOP)
#define EXIFTAGTYPE_GPS_DOP EXIF_RATIONAL
// Speed Unit
// Use EXIFTAGTYPE_GPS_SPEED_REF as the exif_tag_type (EXIF_ASCII)
// It should be 2 characters long including the null-terminating character.
// "K" - Kilometers per hour
// "M" - Miles per hour
// "N" - Knots
// Other - Reserved
#define _ID_GPS_SPEED_REF 0x000c
#define EXIFTAGID_GPS_SPEED_REF CONSTRUCT_TAGID(GPS_SPEED_REF, _ID_GPS_SPEED_REF)
#define EXIFTAGTYPE_GPS_SPEED_REF EXIF_ASCII
// Speed of GPS receiver
// Use EXIFTAGTYPE_GPS_SPEED as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_GPS_SPEED 0x000d
#define EXIFTAGID_GPS_SPEED CONSTRUCT_TAGID(GPS_SPEED, _ID_GPS_SPEED)
#define EXIFTAGTYPE_GPS_SPEED EXIF_RATIONAL
// Reference of direction of movement
// Use EXIFTAGTYPE_GPS_TRACK_REF as the exif_tag_type (EXIF_ASCII)
// It should be 2 characters long including the null-terminating character.
// "T" - True direction
// "M" - Magnetic direction
// Other - Reserved
#define _ID_GPS_TRACK_REF 0x000e
#define EXIFTAGID_GPS_TRACK_REF CONSTRUCT_TAGID(GPS_TRACK_REF, _ID_GPS_TRACK_REF)
#define EXIFTAGTYPE_GPS_TRACK_REF EXIF_ASCII
// Direction of movement
// Use EXIFTAGTYPE_GPS_TRACK as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_GPS_TRACK 0x000f
#define EXIFTAGID_GPS_TRACK CONSTRUCT_TAGID(GPS_TRACK, _ID_GPS_TRACK)
#define EXIFTAGTYPE_GPS_TRACK EXIF_RATIONAL
// Reference of direction of image
// Use EXIFTAGTYPE_GPS_IMGDIRECTION_REF as the exif_tag_type (EXIF_ASCII)
// It should be 2 characters long including the null-terminating character.
// "T" - True direction
// "M" - Magnetic direction
// Other - Reserved
#define _ID_GPS_IMGDIRECTION_REF 0x0010
#define EXIFTAGID_GPS_IMGDIRECTION_REF CONSTRUCT_TAGID(GPS_IMGDIRECTION_REF, _ID_GPS_IMGDIRECTION_REF)
#define EXIFTAGTYPE_GPS_IMGDIRECTION_REF EXIF_ASCII
// Direction of image
// Use EXIFTAGTYPE_GPS_IMGDIRECTION as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_GPS_IMGDIRECTION 0x0011
#define EXIFTAGID_GPS_IMGDIRECTION CONSTRUCT_TAGID(GPS_IMGDIRECTION, _ID_GPS_IMGDIRECTION)
#define EXIFTAGTYPE_GPS_IMGDIRECTION EXIF_RATIONAL
// Geodetic survey data used
// Use EXIFTAGTYPE_GPS_MAPDATUM as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_GPS_MAPDATUM 0x0012
#define EXIFTAGID_GPS_MAPDATUM CONSTRUCT_TAGID(GPS_MAPDATUM, _ID_GPS_MAPDATUM)
#define EXIFTAGTYPE_GPS_MAPDATUM EXIF_ASCII
// Reference for latitude of destination
// Use EXIFTAGTYPE_GPS_DESTLATITUDE_REF as the exif_tag_type (EXIF_ASCII)
// It should be 2 characters long including the null-terminating character.
// "N" - North latitude
// "S" - South latitude
// Other - Reserved
#define _ID_GPS_DESTLATITUDE_REF 0x0013
#define EXIFTAGID_GPS_DESTLATITUDE_REF CONSTRUCT_TAGID(GPS_DESTLATITUDE_REF, _ID_GPS_DESTLATITUDE_REF)
#define EXIFTAGTYPE_GPS_DESTLATITUDE_REF EXIF_ASCII
// Latitude of destination
// Use EXIFTAGTYPE_GPS_DESTLATITUDE as the exif_tag_type (EXIF_RATIONAL)
// Count should be 3
#define _ID_GPS_DESTLATITUDE 0x0014
#define EXIFTAGID_GPS_DESTLATITUDE CONSTRUCT_TAGID(GPS_DESTLATITUDE, _ID_GPS_DESTLATITUDE)
#define EXIFTAGTYPE_GPS_DESTLATITUDE EXIF_RATIONAL
// Reference for longitude of destination
// Use EXIFTAGTYPE_GPS_DESTLONGITUDE_REF as the exif_tag_type (EXIF_ASCII)
// It should be 2 characters long including the null-terminating character.
// "E" - East longitude
// "W" - West longitude
// Other - Reserved
#define _ID_GPS_DESTLONGITUDE_REF 0x0015
#define EXIFTAGID_GPS_DESTLONGITUDE_REF CONSTRUCT_TAGID(GPS_DESTLONGITUDE_REF, _ID_GPS_DESTLONGITUDE_REF)
#define EXIFTAGTYPE_GPS_DESTLONGITUDE_REF EXIF_ASCII
// Longitude of destination
// Use EXIFTAGTYPE_GPS_DESTLONGITUDE as the exif_tag_type (EXIF_RATIONAL)
// Count should be 3
#define _ID_GPS_DESTLONGITUDE 0x0016
#define EXIFTAGID_GPS_DESTLONGITUDE CONSTRUCT_TAGID(GPS_DESTLONGITUDE, _ID_GPS_DESTLONGITUDE)
#define EXIFTAGTYPE_GPS_DESTLONGITUDE EXIF_RATIONAL
// Reference for bearing of destination
// Use EXIFTAGTYPE_GPS_DESTBEARING_REF as the exif_tag_type (EXIF_ASCII)
// It should be 2 characters long including the null-terminating character.
// "T" - True direction
// "M" - Magnetic direction
// Other - Reserved
#define _ID_GPS_DESTBEARING_REF 0x0017
#define EXIFTAGID_GPS_DESTBEARING_REF CONSTRUCT_TAGID(GPS_DESTBEARING_REF, _ID_GPS_DESTBEARING_REF)
#define EXIFTAGTYPE_GPS_DESTBEARING_REF EXIF_ASCII
// Bearing of destination
// Use EXIFTAGTYPE_GPS_DESTBEARING as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_GPS_DESTBEARING 0x0018
#define EXIFTAGID_GPS_DESTBEARING CONSTRUCT_TAGID(GPS_DESTBEARING, _ID_GPS_DESTBEARING)
#define EXIFTAGTYPE_GPS_DESTBEARING EXIF_RATIONAL
// Reference for distance to destination
// Use EXIFTAGTYPE_GPS_DESTDISTANCE_REF as the exif_tag_type (EXIF_ASCII)
// It should be 2 characters long including the null-terminating character.
// "K" - Kilometers per hour
// "M" - Miles per hour
// "N" - Knots
// Other - Reserved
#define _ID_GPS_DESTDISTANCE_REF 0x0019
#define EXIFTAGID_GPS_DESTDISTANCE_REF CONSTRUCT_TAGID(GPS_DESTDISTANCE_REF, _ID_GPS_DESTDISTANCE_REF)
#define EXIFTAGTYPE_GPS_DESTDISTANCE_REF EXIF_ASCII
// Distance to destination
// Use EXIFTAGTYPE_GPS_DESTDISTANCE as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_GPS_DESTDISTANCE 0x001a
#define EXIFTAGID_GPS_DESTDISTANCE CONSTRUCT_TAGID(GPS_DESTDISTANCE, _ID_GPS_DESTDISTANCE)
#define EXIFTAGTYPE_GPS_DESTDISTANCE EXIF_RATIONAL
// Name of GPS processing method
// Use EXIFTAGTYPE_GPS_PROCESSINGMETHOD as the exif_tag_type (EXIF_UNDEFINED)
// Count can be any
#define _ID_GPS_PROCESSINGMETHOD 0x001b
#define EXIFTAGID_GPS_PROCESSINGMETHOD CONSTRUCT_TAGID(GPS_PROCESSINGMETHOD, _ID_GPS_PROCESSINGMETHOD)
#define EXIFTAGTYPE_GPS_PROCESSINGMETHOD EXIF_UNDEFINED
// Name of GPS area
// Use EXIFTAGTYPE_GPS_AREAINFORMATION as the exif_tag_type (EXIF_UNDEFINED)
// Count can be any
#define _ID_GPS_AREAINFORMATION 0x001c
#define EXIFTAGID_GPS_AREAINFORMATION CONSTRUCT_TAGID(GPS_AREAINFORMATION, _ID_GPS_AREAINFORMATION)
#define EXIFTAGTYPE_GPS_AREAINFORMATION EXIF_UNDEFINED
// GPS date
// Use EXIFTAGTYPE_GPS_DATESTAMP as the exif_tag_type (EXIF_ASCII)
// It should be 11 characters long including the null-terminating character.
#define _ID_GPS_DATESTAMP 0x001d
#define EXIFTAGID_GPS_DATESTAMP CONSTRUCT_TAGID(GPS_DATESTAMP, _ID_GPS_DATESTAMP)
#define EXIFTAGTYPE_GPS_DATESTAMP EXIF_ASCII
// GPS differential correction
// Use EXIFTAGTYPE_GPS_DIFFERENTIAL as the exif_tag_type (EXIF_SHORT)
// Count should be 1
// 0 - Measurement without differential correction
// 1 - Differential correction applied
// Other - Reserved
#define _ID_GPS_DIFFERENTIAL 0x001e
#define EXIFTAGID_GPS_DIFFERENTIAL CONSTRUCT_TAGID(GPS_DIFFERENTIAL, _ID_GPS_DIFFERENTIAL)
#define EXIFTAGTYPE_GPS_DIFFERENTIAL EXIF_SHORT
// Image width
// Use EXIFTAGTYPE_IMAGE_WIDTH as the exif_tag_type (EXIF_LONG)
// Count should be 1
#define _ID_IMAGE_WIDTH 0x0100
#define EXIFTAGID_IMAGE_WIDTH CONSTRUCT_TAGID(IMAGE_WIDTH, _ID_IMAGE_WIDTH)
#define EXIFTAGTYPE_IMAGE_WIDTH EXIF_LONG
// Image height
// Use EXIFTAGTYPE_IMAGE_LENGTH as the exif_tag_type (EXIF_SHORT_OR_LONG)
// Count should be 1
#define _ID_IMAGE_LENGTH 0x0101
#define EXIFTAGID_IMAGE_LENGTH CONSTRUCT_TAGID(IMAGE_LENGTH, _ID_IMAGE_LENGTH)
#define EXIFTAGTYPE_IMAGE_LENGTH EXIF_LONG
// Number of bits per component
// Use EXIFTAGTYPE_BITS_PER_SAMPLE as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_BITS_PER_SAMPLE 0x0102
#define EXIFTAGID_BITS_PER_SAMPLE CONSTRUCT_TAGID(BITS_PER_SAMPLE, _ID_BITS_PER_SAMPLE)
#define EXIFTAGTYPE_BITS_PER_SAMPLE EXIF_SHORT
// Compression scheme
// Use EXIFTAGTYPE_COMPRESSION as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_COMPRESSION 0x0103
#define EXIFTAGID_COMPRESSION CONSTRUCT_TAGID(COMPRESSION, _ID_COMPRESSION)
#define EXIFTAGTYPE_COMPRESSION EXIF_SHORT
// Pixel composition
// Use EXIFTAGTYPE_PHOTOMETRIC_INTERPRETATION as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_PHOTOMETRIC_INTERPRETATION 0x0106
#define EXIFTAGID_PHOTOMETRIC_INTERPRETATION CONSTRUCT_TAGID(PHOTOMETRIC_INTERPRETATION, _ID_PHOTOMETRIC_INTERPRETATION)
#define EXIFTAGTYPE_PHOTOMETRIC_INTERPRETATION EXIF_SHORT
// Thresholding
// Use EXIFTAGTYPE_THRESH_HOLDING as the exif_tag_type (EXIF_SHORT)
//
//1 = No dithering or halftoning
//2 = Ordered dither or halftone
//3 = Randomized dither
#define _ID_THRESH_HOLDING 0x0107
#define EXIFTAGID_THRESH_HOLDING CONSTRUCT_TAGID(THRESH_HOLDING, _ID_THRESH_HOLDING)
#define EXIFTAGTYPE_THRESH_HOLDING EXIF_SHORT
// Cell Width
// Use EXIFTAGTYPE_CELL_WIDTH as the exif_tag_type (EXIF_SHORT)
//
#define _ID_CELL_WIDTH 0x0108
#define EXIFTAGID_CELL_WIDTH CONSTRUCT_TAGID(CELL_WIDTH, _ID_CELL_WIDTH)
#define EXIFTAGTYPE_CELL_WIDTH EXIF_SHORT
// Cell Height
// Use EXIFTAGTYPE_CELL_HEIGHT as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_CELL_HEIGHT 0x0109
#define EXIFTAGID_CELL_HEIGHT CONSTRUCT_TAGID(CELL_HEIGHT, _ID_CELL_HEIGHT)
#define EXIFTAGTYPE_CELL_HEIGHT EXIF_SHORT
// Fill Order
// Use EXIFTAGTYPE_FILL_ORDER as the exif_tag_type (EXIF_SHORT)
// 1 = Normal
// 2 = Reversed
#define _ID_FILL_ORDER 0x010A
#define EXIFTAGID_FILL_ORDER CONSTRUCT_TAGID(FILL_ORDER, _ID_FILL_ORDER)
#define EXIFTAGTYPE_FILL_ORDER EXIF_SHORT
// DOCUMENT NAME
// Use EXIFTAGTYPE_DOCUMENT_NAME as the exif_tag_type (EXIF_ASCII)
//
#define _ID_DOCUMENT_NAME 0x010D
#define EXIFTAGID_DOCUMENT_NAME CONSTRUCT_TAGID(DOCUMENT_NAME, _ID_DOCUMENT_NAME)
#define EXIFTAGTYPE_DOCUMENT_NAME EXIF_ASCII
// Image title
// Use EXIFTAGTYPE_IMAGE_DESCRIPTION as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_IMAGE_DESCRIPTION 0x010e
#define EXIFTAGID_IMAGE_DESCRIPTION CONSTRUCT_TAGID(IMAGE_DESCRIPTION, _ID_IMAGE_DESCRIPTION)
#define EXIFTAGTYPE_IMAGE_DESCRIPTION EXIF_ASCII
// Image input equipment manufacturer
// Use EXIFTAGTYPE_MAKE as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_MAKE 0x010f
#define EXIFTAGID_MAKE CONSTRUCT_TAGID(MAKE, _ID_MAKE)
#define EXIFTAGTYPE_MAKE EXIF_ASCII
// Image input equipment model
// Use EXIFTAGTYPE_MODEL as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_MODEL 0x0110
#define EXIFTAGID_MODEL CONSTRUCT_TAGID(MODEL, _ID_MODEL)
#define EXIFTAGTYPE_MODEL EXIF_ASCII
// Image data location
// Use EXIFTAGTYPE_STRIP_OFFSETS as the exif_tag_type (EXIF_LONG)
// Count = StripsPerImage when PlanarConfiguration = 1
// = SamplesPerPixel * StripsPerImage when PlanarConfiguration = 2
#define _ID_STRIP_OFFSETS 0x0111
#define EXIFTAGID_STRIP_OFFSETS CONSTRUCT_TAGID(STRIP_OFFSETS, _ID_STRIP_OFFSETS)
#define EXIFTAGTYPE_STRIP_OFFSETS EXIF_LONG
// Orientation of image
// Use EXIFTAGTYPE_ORIENTATION as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_ORIENTATION 0x0112
#define EXIFTAGID_ORIENTATION CONSTRUCT_TAGID(ORIENTATION, _ID_ORIENTATION)
#define EXIFTAGTYPE_ORIENTATION EXIF_SHORT
// Number of components
// Use EXIFTAGTYPE_SAMPLES_PER_PIXEL as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_SAMPLES_PER_PIXEL 0x0115
#define EXIFTAGID_SAMPLES_PER_PIXEL CONSTRUCT_TAGID(SAMPLES_PER_PIXEL, _ID_SAMPLES_PER_PIXEL)
#define EXIFTAGTYPE_SAMPLES_PER_PIXEL EXIF_SHORT
// Number of rows per strip
// Use EXIFTAGTYPE_ROWS_PER_STRIP as the exif_tag_type (EXIF_LONG)
// Count should be 1
#define _ID_ROWS_PER_STRIP 0x0116
#define EXIFTAGID_ROWS_PER_STRIP CONSTRUCT_TAGID(ROWS_PER_STRIP, _ID_ROWS_PER_STRIP)
#define EXIFTAGTYPE_ROWS_PER_STRIP EXIF_LONG
// Bytes per compressed strip
// Use EXIFTAGTYPE_STRIP_BYTE_COUNTS as the exif_tag_type (EXIF_LONG)
// Count = StripsPerImage when PlanarConfiguration = 1
// = SamplesPerPixel * StripsPerImage when PlanarConfiguration = 2
#define _ID_STRIP_BYTE_COUNTS 0x0117
#define EXIFTAGID_STRIP_BYTE_COUNTS CONSTRUCT_TAGID(STRIP_BYTE_COUNTS, _ID_STRIP_BYTE_COUNTS)
#define EXIFTAGTYPE_STRIP_BYTE_COUNTS EXIF_LONG
// MinSampleValue
// Use EXIFTAGTYPE_MIN_SAMPLE_VALUE as the exif_tag_type (EXIF_SHORT)
#define _ID_MIN_SAMPLE_VALUE 0x0118
#define EXIFTAGID_MIN_SAMPLE_VALUE CONSTRUCT_TAGID(MIN_SAMPLE_VALUE, _ID_MIN_SAMPLE_VALUE)
#define EXIFTAGTYPE_MIN_SAMPLE_VALUE EXIF_SHORT
// MaxSampleValue
// Use EXIFTAGTYPE_MAX_SAMPLE_VALUE as the exif_tag_type (EXIF_SHORT)
#define _ID_MAX_SAMPLE_VALUE 0x0119
#define EXIFTAGID_MAX_SAMPLE_VALUE CONSTRUCT_TAGID(MAX_SAMPLE_VALUE, _ID_MAX_SAMPLE_VALUE)
#define EXIFTAGTYPE_MAX_SAMPLE_VALUE EXIF_SHORT
// Image resolution in width direction
// Use EXIFTAGTYPE_X_RESOLUTION as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_X_RESOLUTION 0x011a
#define EXIFTAGID_X_RESOLUTION CONSTRUCT_TAGID(X_RESOLUTION, _ID_X_RESOLUTION)
#define EXIFTAGTYPE_X_RESOLUTION EXIF_RATIONAL
// Image resolution in height direction
// Use EXIFTAGTYPE_Y_RESOLUTION as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_Y_RESOLUTION 0x011b
#define EXIFTAGID_Y_RESOLUTION CONSTRUCT_TAGID(Y_RESOLUTION, _ID_Y_RESOLUTION)
#define EXIFTAGTYPE_Y_RESOLUTION EXIF_RATIONAL
// Image data arrangement
// Use EXIFTAGTYPE_PLANAR_CONFIGURATION as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_PLANAR_CONFIGURATION 0x011c
#define EXIFTAGID_PLANAR_CONFIGURATION CONSTRUCT_TAGID(PLANAR_CONFIGURATION, _ID_PLANAR_CONFIGURATION)
#define EXIFTAGTYPE_PLANAR_CONFIGURATION EXIF_SHORT
// PageName
// Use EXIFTAGTYPE_PAGE_NAME as the exif_tag_type (EXIF_ASCII)
// Count should be 1
#define _ID_PAGE_NAME 0x011d
#define EXIFTAGID_PAGE_NAME CONSTRUCT_TAGID(PAGE_NAME, _ID_PAGE_NAME)
#define EXIFTAGTYPE_PAGE_NAME EXIF_ASCII
// XPosition
// Use EXIFTAGTYPE_X_POSITION as the exif_tag_type (EXIF_RATIONAL)
//
#define _ID_X_POSITION 0x011e
#define EXIFTAGID_X_POSITION CONSTRUCT_TAGID(X_POSITION, _ID_X_POSITION)
#define EXIFTAGTYPE_X_POSITION EXIF_RATIONAL
// YPosition
// Use EXIFTAGTYPE_Y_POSITION as the exif_tag_type (EXIF_RATIONAL)
//
#define _ID_Y_POSITION 0x011f
#define EXIFTAGID_Y_POSITION CONSTRUCT_TAGID(Y_POSITION, _ID_Y_POSITION)
#define EXIFTAGTYPE_Y_POSITION EXIF_RATIONAL
// FREE_OFFSET
// Use EXIFTAGTYPE_FREE_OFFSET as the exif_tag_type (EXIF_LONG)
//
#define _ID_FREE_OFFSET 0x0120
#define EXIFTAGID_FREE_OFFSET CONSTRUCT_TAGID(FREE_OFFSET, _ID_FREE_OFFSET)
#define EXIFTAGTYPE_FREE_OFFSET EXIF_LONG
// FREE_BYTE_COUNTS
// Use EXIFTAGTYPE_FREE_BYTE_COUNTS as the exif_tag_type (EXIF_LONG)
//
#define _ID_FREE_BYTE_COUNTS 0x0121
#define EXIFTAGID_FREE_BYTE_COUNTS CONSTRUCT_TAGID(FREE_BYTE_COUNTS, _ID_FREE_BYTE_COUNTS)
#define EXIFTAGTYPE_FREE_BYTE_COUNTS EXIF_LONG
// GrayResponseUnit
// Use EXIFTAGTYPE_GRAY_RESPONSE_UNIT as the exif_tag_type (EXIF_SHORT)
//
#define _ID_GRAY_RESPONSE_UNIT 0x0122
#define EXIFTAGID_GRAY_RESPONSE_UNIT CONSTRUCT_TAGID(GRAY_RESPONSE_UNIT, _ID_GRAY_RESPONSE_UNIT)
#define EXIFTAGTYPE_GRAY_RESPONSE_UNIT EXIF_SHORT
// GrayResponseCurve
// Use EXIFTAGTYPE_GRAY_RESPONSE_CURVE as the exif_tag_type (EXIF_SHORT)
//
#define _ID_GRAY_RESPONSE_CURVE 0x0123
#define EXIFTAGID_GRAY_RESPONSE_CURVE CONSTRUCT_TAGID(GRAY_RESPONSE_CURVE , _ID_GRAY_RESPONSE_CURVE )
#define EXIFTAGTYPE_GRAY_RESPONSE_CURVE EXIF_SHORT
// T4_OPTION
// Use EXIFTAGTYPE_T4_OPTION as the exif_tag_type (EXIF_LONG)
//
#define _ID_T4_OPTION 0x0124
#define EXIFTAGID_T4_OPTION CONSTRUCT_TAGID(T4_OPTION, _ID_T4_OPTION)
#define EXIFTAGTYPE_T4_OPTION EXIF_LONG
// T6_OPTION
// Use EXIFTAGTYPE_T6_OPTION as the exif_tag_type (EXIF_LONG)
//
#define _ID_T6_OPTION 0x0125
#define EXIFTAGID_T6_OPTION CONSTRUCT_TAGID(T6_OPTION, _ID_T6_OPTION)
#define EXIFTAGTYPE_T6_OPTION EXIF_LONG
// Unit of X and Y resolution
// Use EXIFTAGTYPE_RESOLUTION_UNIT as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_RESOLUTION_UNIT 0x0128
#define EXIFTAGID_RESOLUTION_UNIT CONSTRUCT_TAGID(RESOLUTION_UNIT, _ID_RESOLUTION_UNIT)
#define EXIFTAGTYPE_RESOLUTION_UNIT EXIF_SHORT
// Page Number
// Use EXIFTAGTYPE_PAGE_NUMBER as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_PAGE_NUMBER 0x0129
#define EXIFTAGID_PAGE_NUMBER CONSTRUCT_TAGID(PAGE_NUMBER, _ID_PAGE_NUMBER)
#define EXIFTAGTYPE_PAGE_NUMBER EXIF_SHORT
// Transfer function
// Use EXIFTAGTYPE_TRANSFER_FUNCTION as the exif_tag_type (EXIF_SHORT)
// Count should be 3*256
#define _ID_TRANSFER_FUNCTION 0x012d
#define EXIFTAGID_TRANSFER_FUNCTION CONSTRUCT_TAGID(TRANSFER_FUNCTION, _ID_TRANSFER_FUNCTION)
#define EXIFTAGTYPE_TRANSFER_FUNCTION EXIF_SHORT
// Software used
// Use EXIFTAGTYPE_SOFTWARE as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_SOFTWARE 0x0131
#define EXIFTAGID_SOFTWARE CONSTRUCT_TAGID(SOFTWARE, _ID_SOFTWARE)
#define EXIFTAGTYPE_SOFTWARE EXIF_ASCII
// File change date and time
// Use EXIFTAGTYPE_DATE_TIME as the exif_tag_type (EXIF_ASCII)
// Count should be 20
#define _ID_DATE_TIME 0x0132
#define EXIFTAGID_DATE_TIME CONSTRUCT_TAGID(DATE_TIME, _ID_DATE_TIME)
#define EXIFTAGTYPE_DATE_TIME EXIF_ASCII
// ARTIST, person who created this image
// Use EXIFTAGTYPE_ARTIST as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_ARTIST 0x013b
#define EXIFTAGID_ARTIST CONSTRUCT_TAGID(ARTIST, _ID_ARTIST)
#define EXIFTAGTYPE_ARTIST EXIF_ASCII
// Host Computer Name
// Use EXIFTAGTYPE_HOST_COMPUTER as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_HOST_COMPUTER 0x013c
#define EXIFTAGID_HOST_COMPUTER CONSTRUCT_TAGID(HOST_COMPUTER , _ID_HOST_COMPUTER )
#define EXIFTAGTYPE_HOST_COMPUTER EXIF_ASCII
// Predictor
// Use EXIFTAGTYPE_PREDICTOR as the exif_tag_type (EXIF_SHORT)
// Count can be any
#define _ID_PREDICTOR 0x013d
#define EXIFTAGID_PREDICTOR CONSTRUCT_TAGID(PREDICTOR , _ID_PREDICTOR )
#define EXIFTAGTYPE_PREDICTOR EXIF_SHORT
// White point chromaticity
// Use EXIFTAGTYPE_WHITE_POINT as the exif_tag_type (EXIF_RATIONAL)
// Count should be 2
#define _ID_WHITE_POINT 0x013e
#define EXIFTAGID_WHITE_POINT CONSTRUCT_TAGID(WHITE_POINT, _ID_WHITE_POINT)
#define EXIFTAGTYPE_WHITE_POINT EXIF_RATIONAL
// Chromaticities of primaries
// Use EXIFTAGTYPE_PRIMARY_CHROMATICITIES as the exif_tag_type (EXIF_RATIONAL)
// Count should be 6
#define _ID_PRIMARY_CHROMATICITIES 0x013f
#define EXIFTAGID_PRIMARY_CHROMATICITIES CONSTRUCT_TAGID(PRIMARY_CHROMATICITIES, _ID_PRIMARY_CHROMATICITIES)
#define EXIFTAGTYPE_PRIMARY_CHROMATICITIES EXIF_RATIONAL
// COLOR_MAP
// Use EXIFTAGTYPE_COLOR_MAP as the exif_tag_type (EXIF_SHORT)
// Count should be 6
#define _ID_COLOR_MAP 0x0140
#define EXIFTAGID_COLOR_MAP CONSTRUCT_TAGID(COLOR_MAP, _ID_COLOR_MAP)
#define EXIFTAGTYPE_COLOR_MAP EXIF_SHORT
// HALFTONE_HINTS
// Use EXIFTAGTYPE_HALFTONE_HINTS as the exif_tag_type (EXIF_SHORT)
// Count should be 6
#define _ID_HALFTONE_HINTS 0x0141
#define EXIFTAGID_HALFTONE_HINTS CONSTRUCT_TAGID(HALFTONE_HINTS, _ID_HALFTONE_HINTS)
#define EXIFTAGTYPE_HALFTONE_HINTS EXIF_SHORT
// TILE_WIDTH
// Use EXIFTAGTYPE_TILE_WIDTH as the exif_tag_type (EXIF_LONG)
// Count should be 6
#define _ID_TILE_WIDTH 0x0142
#define EXIFTAGID_TILE_WIDTH CONSTRUCT_TAGID(TILE_WIDTH, _ID_TILE_WIDTH)
#define EXIFTAGTYPE_TILE_WIDTH EXIF_LONG
// TILE_LENGTH
// Use EXIFTAGTYPE_TILE_LENGTH as the exif_tag_type (EXIF_LONG)
// Count should be 6
#define _ID_TILE_LENGTH 0x0143
#define EXIFTAGID_TILE_LENGTH CONSTRUCT_TAGID(TILE_LENGTH , _ID_TILE_LENGTH )
#define EXIFTAGTYPE_TILE_LENGTH EXIF_LONG
// TILE_OFFSET
// Use EXIFTAGTYPE_TILE_OFFSET as the exif_tag_type (EXIF_LONG)
//
#define _ID_TILE_OFFSET 0x0144
#define EXIFTAGID_TILE_OFFSET CONSTRUCT_TAGID(TILE_OFFSET , _ID_TILE_OFFSET )
#define EXIFTAGTYPE_TILE_OFFSET EXIF_LONG
// tile Byte Counts
// Use EXIFTAGTYPE_TILE_OFFSET as the exif_tag_type (EXIF_LONG)
//
#define _ID_TILE_BYTE_COUNTS 0x0145
#define EXIFTAGID_TILE_BYTE_COUNTS CONSTRUCT_TAGID(TILE_BYTE_COUNTS , _ID_TILE_BYTE_COUNTS )
#define EXIFTAGTYPE_TILE_BYTE_COUNTS EXIF_LONG
// INK_SET
// Use EXIFTAGTYPE_TILE_LENGTH as the exif_tag_type (EXIF_SHORT)
// Count should be 6
#define _ID_INK_SET 0x014c
#define EXIFTAGID_INK_SET CONSTRUCT_TAGID(INK_SET , _ID_INK_SET )
#define EXIFTAGTYPE_INK_SET EXIF_SHORT
// INK_NAMES
// Use EXIFTAGTYPE_INK_NAMES as the exif_tag_type (EXIF_ASCII)
// Count should be 6
#define _ID_INK_NAMES 0x014D
#define EXIFTAGID_INK_NAMES CONSTRUCT_TAGID(INK_NAMES , _ID_INK_NAMES)
#define EXIFTAGTYPE_INK_NAMES EXIF_ASCII
// NUMBER_OF_INKS
// Use EXIFTAGTYPE_NUMBER_OF_INKS as the exif_tag_type (EXIF_SHORT)
// Count should be 6
#define _ID_NUMBER_OF_INKS 0x014e
#define EXIFTAGID_NUMBER_OF_INKS CONSTRUCT_TAGID(NUMBER_OF_INKS , _ID_NUMBER_OF_INKS )
#define EXIFTAGTYPE_NUMBER_OF_INKS EXIF_SHORT
// DOT_RANGE
// Use EXIFTAGTYPE_DOT_RANGE as the exif_tag_type (EXIF_ASCII)
// Count should be 6
#define _ID_DOT_RANGE 0x0150
#define EXIFTAGID_DOT_RANGE CONSTRUCT_TAGID(DOT_RANGE , _ID_DOT_RANGE )
#define EXIFTAGTYPE_DOT_RANGE EXIF_ASCII
// TARGET_PRINTER
// Use EXIFTAGTYPE_TARGET_PRINTER as the exif_tag_type (EXIF_ASCII)
// Count should be 6
#define _ID_TARGET_PRINTER 0x0151
#define EXIFTAGID_TARGET_PRINTER CONSTRUCT_TAGID(TARGET_PRINTER , _ID_TARGET_PRINTER)
#define EXIFTAGTYPE_TARGET_PRINTER EXIF_ASCII
// EXTRA_SAMPLES
// Use EXIFTAGTYPE_EXTRA_SAMPLES as the exif_tag_type (EXIF_SHORT)
// Count should be 6
#define _ID_EXTRA_SAMPLES 0x0152
#define EXIFTAGID_EXTRA_SAMPLES CONSTRUCT_TAGID(EXTRA_SAMPLES , _ID_EXTRA_SAMPLES )
#define EXIFTAGTYPE_EXTRA_SAMPLES EXIF_SHORT
// SAMPLE_FORMAT
// Use EXIFTAGTYPE_SAMPLE_FORMAT as the exif_tag_type (EXIF_SHORT)
// Count should be 6
#define _ID_SAMPLE_FORMAT 0x0153
#define EXIFTAGID_SAMPLE_FORMAT CONSTRUCT_TAGID(SAMPLE_FORMAT , _ID_SAMPLE_FORMAT )
#define EXIFTAGTYPE_SAMPLE_FORMAT EXIF_SHORT
// Table of values that extends the range of the transfer function.
// Use EXIFTAGTYPE_TRANSFER_RANGE as the exif_tag_type (EXIF_SHORT)
// Count should be 6
#define _ID_TRANSFER_RANGE 0x0156
#define EXIFTAGID_TRANSFER_RANGE CONSTRUCT_TAGID(TRANSFER_RANGE , _ID_TRANSFER_RANGE )
#define EXIFTAGTYPE_TRANSFER_RANGE EXIF_SHORT
// JPEG compression process.
// Use EXIFTAGTYPE_JPEG_PROC as the exif_tag_type (EXIF_SHORT)
//
#define _ID_JPEG_PROC 0x0200
#define EXIFTAGID_JPEG_PROC CONSTRUCT_TAGID(JPEG_PROC , _ID_JPEG_PROC )
#define EXIFTAGTYPE_JPEG_PROC EXIF_SHORT
// Offset to JPEG SOI
// Use EXIFTAGTYPE_JPEG_INTERCHANGE_FORMAT as the exif_tag_type (EXIF_LONG)
// Count is undefined
#define _ID_JPEG_INTERCHANGE_FORMAT 0x0201
#define EXIFTAGID_JPEG_INTERCHANGE_FORMAT CONSTRUCT_TAGID(JPEG_INTERCHANGE_FORMAT, _ID_JPEG_INTERCHANGE_FORMAT)
#define EXIFTAGTYPE_JPEG_INTERCHANGE_FORMAT EXIF_LONG
// Bytes of JPEG data
// Use EXIFTAGTYPE_JPEG_INTERCHANGE_FORMAT_LENGTH as the exif_tag_type (EXIF_LONG)
// Count is undefined
#define _ID_JPEG_INTERCHANGE_FORMAT_LENGTH 0x0202
#define EXIFTAGID_JPEG_INTERCHANGE_FORMAT_LENGTH CONSTRUCT_TAGID(JPEG_INTERCHANGE_FORMAT_LENGTH, _ID_JPEG_INTERCHANGE_FORMAT_LENGTH)
#define EXIFTAGTYPE_JPEG_INTERCHANGE_FORMAT_LENGTH EXIF_LONG
// Length of the restart interval.
// Use EXIFTAGTYPE_JPEG_RESTART_INTERVAL as the exif_tag_type (EXIF_SHORT)
// Count is undefined
#define _ID_JPEG_RESTART_INTERVAL 0x0203
#define EXIFTAGID_JPEG_RESTART_INTERVAL CONSTRUCT_TAGID(JPEG_RESTART_INTERVAL, _ID_JPEG_RESTART_INTERVAL)
#define EXIFTAGTYPE_JPEG_RESTART_INTERVAL EXIF_SHORT
// JPEGLosslessPredictors
// Use EXIFTAGTYPE_JPEG_LOSSLESS_PREDICTORS as the exif_tag_type (EXIF_SHORT)
// Count is undefined
#define _ID_JPEG_LOSSLESS_PREDICTORS 0x0205
#define EXIFTAGID_JPEG_LOSSLESS_PREDICTORS CONSTRUCT_TAGID(JPEG_LOSSLESS_PREDICTORS, _ID_JPEG_LOSSLESS_PREDICTORS)
#define EXIFTAGTYPE_JPEG_LOSSLESS_PREDICTORS EXIF_SHORT
// JPEGPointTransforms
// Use EXIFTAGTYPE_JPEG_POINT_TRANSFORMS as the exif_tag_type (EXIF_SHORT)
// Count is undefined
#define _ID_JPEG_POINT_TRANSFORMS 0x0206
#define EXIFTAGID_JPEG_POINT_TRANSFORMS CONSTRUCT_TAGID(JPEG_POINT_TRANSFORMS, _ID_JPEG_POINT_TRANSFORMS)
#define EXIFTAGTYPE_JPEG_POINT_TRANSFORMS EXIF_SHORT
// JPEG_Q_TABLES
// Use EXIFTAGTYPE_JPEG_Q_TABLES as the exif_tag_type (EXIF_LONG)
// Count is undefined
#define _ID_JPEG_Q_TABLES 0x0207
#define EXIFTAGID_JPEG_Q_TABLES CONSTRUCT_TAGID(JPEG_Q_TABLES, _ID_JPEG_Q_TABLES)
#define EXIFTAGTYPE_JPEG_Q_TABLES EXIF_LONG
// JPEG_DC_TABLES
// Use EXIFTAGTYPE_JPEG_DC_TABLES as the exif_tag_type (EXIF_LONG)
// Count is undefined
#define _ID_JPEG_DC_TABLES 0x0208
#define EXIFTAGID_JPEG_DC_TABLES CONSTRUCT_TAGID(JPEG_DC_TABLES, _ID_JPEG_DC_TABLES)
#define EXIFTAGTYPE_JPEG_DC_TABLES EXIF_LONG
// JPEG_AC_TABLES
// Use EXIFTAGTYPE_JPEG_AC_TABLES as the exif_tag_type (EXIF_LONG)
// Count is undefined
#define _ID_JPEG_AC_TABLES 0x0209
#define EXIFTAGID_JPEG_AC_TABLES CONSTRUCT_TAGID(JPEG_AC_TABLES, _ID_JPEG_AC_TABLES)
#define EXIFTAGTYPE_JPEG_AC_TABLES EXIF_LONG
// Color space transformation matrix coefficients
// Use EXIFTAGTYPE_YCBCR_COEFFICIENTS as the exif_tag_type (EXIF_RATIONAL)
// Count should be 3
#define _ID_YCBCR_COEFFICIENTS 0x0211
#define EXIFTAGID_YCBCR_COEFFICIENTS CONSTRUCT_TAGID(YCBCR_COEFFICIENTS, _ID_YCBCR_COEFFICIENTS)
#define EXIFTAGTYPE_YCBCR_COEFFICIENTS EXIF_RATIONAL
// Subsampling ratio of Y to C
// Use EXIFTAGTYPE_YCBCR_SUB_SAMPLING as the exif_tag_type (EXIF_SHORT)
// Count should be 2
#define _ID_YCBCR_SUB_SAMPLING 0x0212
#define EXIFTAGID_YCBCR_SUB_SAMPLING CONSTRUCT_TAGID(YCBCR_SUB_SAMPLING, _ID_YCBCR_SUB_SAMPLING)
#define EXIFTAGTYPE_YCBCR_SUB_SAMPLING EXIF_SHORT
// Y and C positioning
// Use EXIFTAGTYPE_YCBCR_POSITIONING as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_YCBCR_POSITIONING 0x0213
#define EXIFTAGID_YCBCR_POSITIONING CONSTRUCT_TAGID(YCBCR_POSITIONING, _ID_YCBCR_POSITIONING)
#define EXIFTAGTYPE_YCBCR_POSITIONING EXIF_SHORT
// Pair of black and white reference values
// Use EXIFTAGTYPE_REFERENCE_BLACK_WHITE as the exif_tag_type (EXIF_RATIONAL)
// Count should be 6
#define _ID_REFERENCE_BLACK_WHITE 0x0214
#define EXIFTAGID_REFERENCE_BLACK_WHITE CONSTRUCT_TAGID(REFERENCE_BLACK_WHITE, _ID_REFERENCE_BLACK_WHITE)
#define EXIFTAGTYPE_REFERENCE_BLACK_WHITE EXIF_RATIONAL
// GAMMA
// Use EXIFTAGTYPE_GAMMA as the exif_tag_type (EXIF_RATIONAL)
// Count should be 6
#define _ID_GAMMA 0x0301
#define EXIFTAGID_GAMMA CONSTRUCT_TAGID(GAMMA, _ID_GAMMA)
#define EXIFTAGTYPE_GAMMA EXIF_RATIONAL
// Null-terminated character string that identifies an ICC profile.
// Use EXIFTAGTYPE_ICC_PROFILE_DESCRIPTOR as the exif_tag_type (EXIF_ASCII)
// Count should be 6
#define _ID_ICC_PROFILE_DESCRIPTOR 0x0302
#define EXIFTAGID_ICC_PROFILE_DESCRIPTOR CONSTRUCT_TAGID(ICC_PROFILE_DESCRIPTOR, _ID_ICC_PROFILE_DESCRIPTOR)
#define EXIFTAGTYPE_ICC_PROFILE_DESCRIPTOR EXIF_ASCII
// SRGB_RENDERING_INTENT
// Use EXIFTAGTYPE_SRGB_RENDERING_INTENT as the exif_tag_type (EXIF_BYTE)
// Count should be 6
#define _ID_SRGB_RENDERING_INTENT 0x0303
#define EXIFTAGID_SRGB_RENDERING_INTENT CONSTRUCT_TAGID(SRGB_RENDERING_INTENT, _ID_SRGB_RENDERING_INTENT)
#define EXIFTAGTYPE_SRGB_RENDERING_INTENT EXIF_BYTE
// Null-terminated character string that specifies the title of the image.
// Use EXIFTAGTYPE_IMAGE_TITLE as the exif_tag_type (EXIF_ASCII )
//
#define _ID_IMAGE_TITLE 0x0320
#define EXIFTAGID_IMAGE_TITLE CONSTRUCT_TAGID(IMAGE_TITLE, _ID_IMAGE_TITLE)
#define EXIFTAGTYPE_IMAGE_TITLE EXIF_ASCII
// Copyright holder
// Use EXIFTAGTYPE_COPYRIGHT as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_COPYRIGHT 0x8298
#define EXIFTAGID_COPYRIGHT CONSTRUCT_TAGID(COPYRIGHT, _ID_COPYRIGHT)
#define EXIFTAGTYPE_COPYRIGHT EXIF_ASCII
// Old Subfile Type
// Use EXIFTAGTYPE_NEW_SUBFILE_TYPE as the exif_tag_type (EXIF_SHORT)
// Count can be any
#define _ID_NEW_SUBFILE_TYPE 0x00fe
#define EXIFTAGID_NEW_SUBFILE_TYPE CONSTRUCT_TAGID(NEW_SUBFILE_TYPE, _ID_NEW_SUBFILE_TYPE)
#define EXIFTAGTYPE_NEW_SUBFILE_TYPE EXIF_SHORT
// New Subfile Type
// Use EXIFTAGTYPE_NEW_SUBFILE_TYPE as the exif_tag_type (EXIF_LONG)
// Count can be any
#define _ID_SUBFILE_TYPE 0x00ff
#define EXIFTAGID_SUBFILE_TYPE CONSTRUCT_TAGID(SUBFILE_TYPE, _ID_SUBFILE_TYPE)
#define EXIFTAGTYPE_SUBFILE_TYPE EXIF_LONG
// Image width (of thumbnail)
// Use EXIFTAGTYPE_TN_IMAGE_WIDTH as the exif_tag_type (EXIF_LONG)
// Count should be 1
#define _ID_TN_IMAGE_WIDTH 0x0100
#define EXIFTAGID_TN_IMAGE_WIDTH CONSTRUCT_TAGID(TN_IMAGE_WIDTH, _ID_TN_IMAGE_WIDTH)
#define EXIFTAGTYPE_TN_IMAGE_WIDTH EXIF_LONG
// Image height (of thumbnail)
// Use EXIFTAGTYPE_TN_IMAGE_LENGTH as the exif_tag_type (EXIF_SHORT_OR_LONG)
// Count should be 1
#define _ID_TN_IMAGE_LENGTH 0x0101
#define EXIFTAGID_TN_IMAGE_LENGTH CONSTRUCT_TAGID(TN_IMAGE_LENGTH, _ID_TN_IMAGE_LENGTH)
#define EXIFTAGTYPE_TN_IMAGE_LENGTH EXIF_LONG
// Number of bits per component (of thumbnail)
// Use EXIFTAGTYPE_TN_BITS_PER_SAMPLE as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_TN_BITS_PER_SAMPLE 0x0102
#define EXIFTAGID_TN_BITS_PER_SAMPLE CONSTRUCT_TAGID(TN_BITS_PER_SAMPLE, _ID_TN_BITS_PER_SAMPLE)
#define EXIFTAGTYPE_TN_BITS_PER_SAMPLE EXIF_SHORT
// Compression scheme (of thumbnail)
// Use EXIFTAGTYPE_TN_COMPRESSION as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_TN_COMPRESSION 0x0103
#define EXIFTAGID_TN_COMPRESSION CONSTRUCT_TAGID(TN_COMPRESSION, _ID_TN_COMPRESSION)
#define EXIFTAGTYPE_TN_COMPRESSION EXIF_SHORT
// Pixel composition (of thumbnail)
// Use EXIFTAGTYPE_TN_PHOTOMETRIC_INTERPRETATION as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_TN_PHOTOMETRIC_INTERPRETATION 0x0106
#define EXIFTAGID_TN_PHOTOMETRIC_INTERPRETATION CONSTRUCT_TAGID(TN_PHOTOMETRIC_INTERPRETATION, _ID_TN_PHOTOMETRIC_INTERPRETATION)
#define EXIFTAGTYPE_TN_PHOTOMETRIC_INTERPRETATION EXIF_SHORT
// Image title (of thumbnail)
// Use EXIFTAGTYPE_TN_IMAGE_DESCRIPTION as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_TN_IMAGE_DESCRIPTION 0x010e
#define EXIFTAGID_TN_IMAGE_DESCRIPTION CONSTRUCT_TAGID(TN_IMAGE_DESCRIPTION, _ID_TN_IMAGE_DESCRIPTION)
#define EXIFTAGTYPE_TN_IMAGE_DESCRIPTION EXIF_ASCII
// Image input equipment manufacturer (of thumbnail)
// Use EXIFTAGTYPE_TN_MAKE as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_TN_MAKE 0x010f
#define EXIFTAGID_TN_MAKE CONSTRUCT_TAGID(TN_MAKE, _ID_TN_MAKE)
#define EXIFTAGTYPE_TN_MAKE EXIF_ASCII
// Image input equipment model (of thumbnail)
// Use EXIFTAGTYPE_TN_MODEL as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_TN_MODEL 0x0110
#define EXIFTAGID_TN_MODEL CONSTRUCT_TAGID(TN_MODEL, _ID_TN_MODEL)
#define EXIFTAGTYPE_TN_MODEL EXIF_ASCII
// Image data location (of thumbnail)
// Use EXIFTAGTYPE_TN_STRIP_OFFSETS as the exif_tag_type (EXIF_LONG)
// Count = StripsPerImage when PlanarConfiguration = 1
// = SamplesPerPixel * StripsPerImage when PlanarConfiguration = 2
#define _ID_TN_STRIP_OFFSETS 0x0111
#define EXIFTAGID_TN_STRIP_OFFSETS CONSTRUCT_TAGID(STRIP_TN_OFFSETS, _ID_TN_STRIP_OFFSETS)
#define EXIFTAGTYPE_TN_STRIP_OFFSETS EXIF_LONG
// Orientation of image (of thumbnail)
// Use EXIFTAGTYPE_TN_ORIENTATION as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_TN_ORIENTATION 0x0112
#define EXIFTAGID_TN_ORIENTATION CONSTRUCT_TAGID(TN_ORIENTATION, _ID_TN_ORIENTATION)
#define EXIFTAGTYPE_TN_ORIENTATION EXIF_SHORT
// Number of components (of thumbnail)
// Use EXIFTAGTYPE_TN_SAMPLES_PER_PIXEL as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_TN_SAMPLES_PER_PIXEL 0x0115
#define EXIFTAGID_TN_SAMPLES_PER_PIXEL CONSTRUCT_TAGID(TN_SAMPLES_PER_PIXEL, _ID_TN_SAMPLES_PER_PIXEL)
#define EXIFTAGTYPE_TN_SAMPLES_PER_PIXEL EXIF_SHORT
// Number of rows per strip (of thumbnail)
// Use EXIFTAGTYPE_TN_ROWS_PER_STRIP as the exif_tag_type (EXIF_LONG)
// Count should be 1
#define _ID_TN_ROWS_PER_STRIP 0x0116
#define EXIFTAGID_TN_ROWS_PER_STRIP CONSTRUCT_TAGID(TN_ROWS_PER_STRIP, _ID_TN_ROWS_PER_STRIP)
#define EXIFTAGTYPE_TN_ROWS_PER_STRIP EXIF_LONG
// Bytes per compressed strip (of thumbnail)
// Use EXIFTAGTYPE_TN_STRIP_BYTE_COUNTS as the exif_tag_type (EXIF_LONG)
// Count = StripsPerImage when PlanarConfiguration = 1
// = SamplesPerPixel * StripsPerImage when PlanarConfiguration = 2
#define _ID_TN_STRIP_BYTE_COUNTS 0x0117
#define EXIFTAGID_TN_STRIP_BYTE_COUNTS CONSTRUCT_TAGID(TN_STRIP_BYTE_COUNTS, _ID_TN_STRIP_BYTE_COUNTS)
#define EXIFTAGTYPE_TN_STRIP_BYTE_COUNTS EXIF_LONG
// Image resolution in width direction (of thumbnail)
// Use EXIFTAGTYPE_TN_X_RESOLUTION as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_TN_X_RESOLUTION 0x011a
#define EXIFTAGID_TN_X_RESOLUTION CONSTRUCT_TAGID(TN_X_RESOLUTION, _ID_TN_X_RESOLUTION)
#define EXIFTAGTYPE_TN_X_RESOLUTION EXIF_RATIONAL
// Image resolution in height direction (of thumbnail)
// Use EXIFTAGTYPE_TN_Y_RESOLUTION as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_TN_Y_RESOLUTION 0x011b
#define EXIFTAGID_TN_Y_RESOLUTION CONSTRUCT_TAGID(TN_Y_RESOLUTION, _ID_TN_Y_RESOLUTION)
#define EXIFTAGTYPE_TN_Y_RESOLUTION EXIF_RATIONAL
// Image data arrangement (of thumbnail)
// Use EXIFTAGTYPE_TN_PLANAR_CONFIGURATION as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_TN_PLANAR_CONFIGURATION 0x011c
#define EXIFTAGID_TN_PLANAR_CONFIGURATION CONSTRUCT_TAGID(TN_PLANAR_CONFIGURATION, _ID_TN_PLANAR_CONFIGURATION)
#define EXIFTAGTYPE_TN_PLANAR_CONFIGURATION EXIF_SHORT
// Unit of X and Y resolution (of thumbnail)
// Use EXIFTAGTYPE_TN_RESOLUTION_UNIT as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_TN_RESOLUTION_UNIT 0x128
#define EXIFTAGID_TN_RESOLUTION_UNIT CONSTRUCT_TAGID(TN_RESOLUTION_UNIT, _ID_TN_RESOLUTION_UNIT)
#define EXIFTAGTYPE_TN_RESOLUTION_UNIT EXIF_SHORT
// Transfer function (of thumbnail)
// Use EXIFTAGTYPE_TN_TRANSFER_FUNCTION as the exif_tag_type (EXIF_SHORT)
// Count should be 3*256
#define _ID_TN_TRANSFER_FUNCTION 0x012d
#define EXIFTAGID_TN_TRANSFER_FUNCTION CONSTRUCT_TAGID(TN_TRANSFER_FUNCTION, _ID_TN_TRANSFER_FUNCTION)
#define EXIFTAGTYPE_TN_TRANSFER_FUNCTION EXIF_SHORT
// Software used (of thumbnail)
// Use EXIFTAGTYPE_TN_SOFTWARE as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_TN_SOFTWARE 0x0131
#define EXIFTAGID_TN_SOFTWARE CONSTRUCT_TAGID(TN_SOFTWARE, _ID_TN_SOFTWARE)
#define EXIFTAGTYPE_TN_SOFTWARE EXIF_ASCII
// File change date and time (of thumbnail)
// Use EXIFTAGTYPE_TN_DATE_TIME as the exif_tag_type (EXIF_ASCII)
// Count should be 20
#define _ID_TN_DATE_TIME 0x0132
#define EXIFTAGID_TN_DATE_TIME CONSTRUCT_TAGID(TN_DATE_TIME, _ID_TN_DATE_TIME)
#define EXIFTAGTYPE_TN_DATE_TIME EXIF_ASCII
// ARTIST, person who created this image (of thumbnail)
// Use EXIFTAGTYPE_TN_ARTIST as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_TN_ARTIST 0x013b
#define EXIFTAGID_TN_ARTIST CONSTRUCT_TAGID(TN_ARTIST, _ID_TN_ARTIST)
#define EXIFTAGTYPE_TN_ARTIST EXIF_ASCII
// White point chromaticity (of thumbnail)
// Use EXIFTAGTYPE_TN_WHITE_POINT as the exif_tag_type (EXIF_RATIONAL)
// Count should be 2
#define _ID_TN_WHITE_POINT 0x013e
#define EXIFTAGID_TN_WHITE_POINT CONSTRUCT_TAGID(TN_WHITE_POINT, _ID_TN_WHITE_POINT)
#define EXIFTAGTYPE_TN_WHITE_POINT EXIF_RATIONAL
// Chromaticities of primaries (of thumbnail)
// Use EXIFTAGTYPE_TN_PRIMARY_CHROMATICITIES as the exif_tag_type (EXIF_RATIONAL)
// Count should be 6
#define _ID_TN_PRIMARY_CHROMATICITIES 0x013f
#define EXIFTAGID_TN_PRIMARY_CHROMATICITIES CONSTRUCT_TAGID(TN_PRIMARY_CHROMATICITIES, _ID_TN_PRIMARY_CHROMATICITIES)
#define EXIFTAGTYPE_TN_PRIMARY_CHROMATICITIES EXIF_RATIONAL
// Offset to JPEG SOI (of thumbnail)
// Use EXIFTAGTYPE_TN_JPEGINTERCHANGE_FORMAT as the exif_tag_type (EXIF_LONG)
// Count is undefined
#define _ID_TN_JPEGINTERCHANGE_FORMAT 0x0201
#define EXIFTAGID_TN_JPEGINTERCHANGE_FORMAT CONSTRUCT_TAGID(TN_JPEGINTERCHANGE_FORMAT, _ID_TN_JPEGINTERCHANGE_FORMAT)
#define EXIFTAGTYPE_TN_JPEGINTERCHANGE_FORMAT EXIF_LONG
// Bytes of JPEG data (of thumbnail)
// Use EXIFTAGTYPE_TN_JPEGINTERCHANGE_FORMAT_L as the exif_tag_type (EXIF_LONG)
// Count is undefined
#define _ID_TN_JPEGINTERCHANGE_FORMAT_L 0x0202
#define EXIFTAGID_TN_JPEGINTERCHANGE_FORMAT_L CONSTRUCT_TAGID(TN_JPEGINTERCHANGE_FORMAT_L, _ID_TN_JPEGINTERCHANGE_FORMAT_L)
#define EXIFTAGTYPE_TN_JPEGINTERCHANGE_FORMAT_L EXIF_LONG
// Color space transformation matrix coefficients (of thumbnail)
// Use EXIFTAGTYPE_TN_YCBCR_COEFFICIENTS as the exif_tag_type (EXIF_RATIONAL)
// Count should be 3
#define _ID_TN_YCBCR_COEFFICIENTS 0x0211
#define EXIFTAGID_TN_YCBCR_COEFFICIENTS CONSTRUCT_TAGID(TN_YCBCR_COEFFICIENTS, _ID_TN_YCBCR_COEFFICIENTS)
#define EXIFTAGTYPE_TN_YCBCR_COEFFICIENTS EXIF_RATIONAL
// Subsampling ratio of Y to C (of thumbnail)
// Use EXIFTAGTYPE_TN_YCBCR_SUB_SAMPLING as the exif_tag_type (EXIF_SHORT)
// Count should be 2
#define _ID_TN_YCBCR_SUB_SAMPLING 0x0212
#define EXIFTAGID_TN_YCBCR_SUB_SAMPLING CONSTRUCT_TAGID(TN_YCBCR_SUB_SAMPLING, _ID_TN_YCBCR_SUB_SAMPLING)
#define EXIFTAGTYPE_TN_YCBCR_SUB_SAMPLING EXIF_SHORT
// Y and C positioning (of thumbnail)
// Use EXIFTAGTYPE_TN_YCBCR_POSITIONING as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_TN_YCBCR_POSITIONING 0x0213
#define EXIFTAGID_TN_YCBCR_POSITIONING CONSTRUCT_TAGID(TN_YCBCR_POSITIONING, _ID_TN_YCBCR_POSITIONING)
#define EXIFTAGTYPE_TN_YCBCR_POSITIONING EXIF_SHORT
// Pair of black and white reference values (of thumbnail)
// Use EXIFTAGTYPE_TN_REFERENCE_BLACK_WHITE as the exif_tag_type (EXIF_RATIONAL)
// Count should be 6
#define _ID_TN_REFERENCE_BLACK_WHITE 0x0214
#define EXIFTAGID_TN_REFERENCE_BLACK_WHITE CONSTRUCT_TAGID(TN_REFERENCE_BLACK_WHITE, _ID_TN_REFERENCE_BLACK_WHITE)
#define EXIFTAGTYPE_TN_REFERENCE_BLACK_WHITE EXIF_RATIONAL
// Copyright holder (of thumbnail)
// Use EXIFTAGTYPE_TN_COPYRIGHT as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_TN_COPYRIGHT 0x8298
#define EXIFTAGID_TN_COPYRIGHT CONSTRUCT_TAGID(TN_COPYRIGHT, _ID_TN_COPYRIGHT)
#define EXIFTAGTYPE_TN_COPYRIGHT EXIF_ASCII
// Exposure time
// Use EXIFTAGTYPE_EXPOSURE_TIME as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_EXPOSURE_TIME 0x829a
#define EXIFTAGID_EXPOSURE_TIME CONSTRUCT_TAGID(EXPOSURE_TIME, _ID_EXPOSURE_TIME)
#define EXIFTAGTYPE_EXPOSURE_TIME EXIF_RATIONAL
// F number
// Use EXIFTAGTYPE_F_NUMBER as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_F_NUMBER 0x829d
#define EXIFTAGID_F_NUMBER CONSTRUCT_TAGID(F_NUMBER, _ID_F_NUMBER)
#define EXIFTAGTYPE_F_NUMBER EXIF_RATIONAL
// Exif IFD pointer (NOT INTENDED to be accessible to user)
#define _ID_EXIF_IFD_PTR 0x8769
#define EXIFTAGID_EXIF_IFD_PTR CONSTRUCT_TAGID(EXIF_IFD, _ID_EXIF_IFD_PTR)
#define EXIFTAGTYPE_EXIF_IFD_PTR EXIF_LONG
// ICC_PROFILE (NOT INTENDED to be accessible to user)
#define _ID_ICC_PROFILE 0x8773
#define EXIFTAGID_ICC_PROFILE CONSTRUCT_TAGID(ICC_PROFILE, _ID_ICC_PROFILE)
#define EXIFTAGTYPE_ICC_PROFILE EXIF_LONG
// Exposure program
// Use EXIFTAGTYPE_EXPOSURE_PROGRAM as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_EXPOSURE_PROGRAM 0x8822
#define EXIFTAGID_EXPOSURE_PROGRAM CONSTRUCT_TAGID(EXPOSURE_PROGRAM, _ID_EXPOSURE_PROGRAM)
#define EXIFTAGTYPE_EXPOSURE_PROGRAM EXIF_SHORT
// Spectral sensitivity
// Use EXIFTAGTYPE_SPECTRAL_SENSITIVITY as the exif_tag_type (EXIF_ASCII)
// Count can be any
#define _ID_SPECTRAL_SENSITIVITY 0x8824
#define EXIFTAGID_SPECTRAL_SENSITIVITY CONSTRUCT_TAGID(SPECTRAL_SENSITIVITY, _ID_SPECTRAL_SENSITIVITY)
#define EXIFTAGTYPE_SPECTRAL_SENSITIVITY EXIF_ASCII
// GPS IFD pointer (NOT INTENDED to be accessible to user)
#define _ID_GPS_IFD_PTR 0x8825
#define EXIFTAGID_GPS_IFD_PTR CONSTRUCT_TAGID(GPS_IFD, _ID_GPS_IFD_PTR)
#define EXIFTAGTYPE_GPS_IFD_PTR EXIF_LONG
// ISO Speed Rating
// Use EXIFTAGTYPE_ISO_SPEED_RATING as the exif_tag_type (EXIF_SHORT)
// Count can be any
#define _ID_ISO_SPEED_RATING 0x8827
#define EXIFTAGID_ISO_SPEED_RATING CONSTRUCT_TAGID(ISO_SPEED_RATING, _ID_ISO_SPEED_RATING)
#define EXIFTAGTYPE_ISO_SPEED_RATING EXIF_SHORT
// Optoelectric conversion factor
// Use EXIFTAGTYPE_OECF as the exif_tag_type (EXIF_UNDEFINED)
// Count can be any
#define _ID_OECF 0x8828
#define EXIFTAGID_OECF CONSTRUCT_TAGID(OECF, _ID_OECF)
#define EXIFTAGTYPE_OECF EXIF_UNDEFINED
// Exif version
// Use EXIFTAGTYPE_EXIF_VERSION as the exif_tag_type (EXIF_UNDEFINED)
// Count should be 4
#define _ID_EXIF_VERSION 0x9000
#define EXIFTAGID_EXIF_VERSION CONSTRUCT_TAGID(EXIF_VERSION, _ID_EXIF_VERSION)
#define EXIFTAGTYPE_EXIF_VERSION EXIF_UNDEFINED
// Date and time of original data gerneration
// Use EXIFTAGTYPE_EXIF_DATE_TIME_ORIGINAL as the exif_tag_type (EXIF_ASCII)
// It should be 20 characters long including the null-terminating character.
#define _ID_EXIF_DATE_TIME_ORIGINAL 0x9003
#define EXIFTAGID_EXIF_DATE_TIME_ORIGINAL CONSTRUCT_TAGID(EXIF_DATE_TIME_ORIGINAL, _ID_EXIF_DATE_TIME_ORIGINAL)
#define EXIFTAGTYPE_EXIF_DATE_TIME_ORIGINAL EXIF_ASCII
// Date and time of digital data generation
// Use EXIFTAGTYPE_EXIF_DATE_TIME_DIGITIZED as the exif_tag_type (EXIF_ASCII)
// It should be 20 characters long including the null-terminating character.
#define _ID_EXIF_DATE_TIME_DIGITIZED 0x9004
#define EXIFTAGID_EXIF_DATE_TIME_DIGITIZED CONSTRUCT_TAGID(EXIF_DATE_TIME_DIGITIZED, _ID_EXIF_DATE_TIME_DIGITIZED)
#define EXIFTAGTYPE_EXIF_DATE_TIME_DIGITIZED EXIF_ASCII
// Meaning of each component
// Use EXIFTAGTYPE_EXIF_COMPONENTS_CONFIG as the exif_tag_type (EXIF_UNDEFINED)
// Count should be 4
#define _ID_EXIF_COMPONENTS_CONFIG 0x9101
#define EXIFTAGID_EXIF_COMPONENTS_CONFIG CONSTRUCT_TAGID(EXIF_COMPONENTS_CONFIG, _ID_EXIF_COMPONENTS_CONFIG)
#define EXIFTAGTYPE_EXIF_COMPONENTS_CONFIG EXIF_UNDEFINED
// Meaning of Image compression mode
// Use EXIFTAGTYPE_EXIF_COMPRESSED_BITS_PER_PIXEL as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_EXIF_COMPRESSED_BITS_PER_PIXEL 0x9102
#define EXIFTAGID_EXIF_COMPRESSED_BITS_PER_PIXEL CONSTRUCT_TAGID(EXIF_COMPRESSED_BITS_PER_PIXEL, _ID_EXIF_COMPRESSED_BITS_PER_PIXEL)
#define EXIFTAGTYPE_EXIF_COMPRESSED_BITS_PER_PIXEL EXIF_RATIONAL
// Shutter speed
// Use EXIFTAGTYPE_SHUTTER_SPEED as the exif_tag_type (EXIF_SRATIONAL)
// Count should be 1
#define _ID_SHUTTER_SPEED 0x9201
#define EXIFTAGID_SHUTTER_SPEED CONSTRUCT_TAGID(SHUTTER_SPEED, _ID_SHUTTER_SPEED)
#define EXIFTAGTYPE_SHUTTER_SPEED EXIF_SRATIONAL
// Aperture
// Use EXIFTAGTYPE_APERTURE as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_APERTURE 0x9202
#define EXIFTAGID_APERTURE CONSTRUCT_TAGID(APERTURE, _ID_APERTURE)
#define EXIFTAGTYPE_APERTURE EXIF_RATIONAL
// Brigthness
// Use EXIFTAGTYPE_BRIGHTNESS as the exif_tag_type (EXIF_SRATIONAL)
// Count should be 1
#define _ID_BRIGHTNESS 0x9203
#define EXIFTAGID_BRIGHTNESS CONSTRUCT_TAGID(BRIGHTNESS, _ID_BRIGHTNESS)
#define EXIFTAGTYPE_BRIGHTNESS EXIF_SRATIONAL
// Exposure bias
// Use EXIFTAGTYPE_EXPOSURE_BIAS_VALUE as the exif_tag_type (EXIF_SRATIONAL)
// Count should be 1
#define _ID_EXPOSURE_BIAS_VALUE 0x9204
#define EXIFTAGID_EXPOSURE_BIAS_VALUE CONSTRUCT_TAGID(EXPOSURE_BIAS_VALUE, _ID_EXPOSURE_BIAS_VALUE)
#define EXIFTAGTYPE_EXPOSURE_BIAS_VALUE EXIF_SRATIONAL
// Maximum lens aperture
// Use EXIFTAGTYPE_MAX_APERTURE as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_MAX_APERTURE 0x9205
#define EXIFTAGID_MAX_APERTURE CONSTRUCT_TAGID(MAX_APERTURE, _ID_MAX_APERTURE)
#define EXIFTAGTYPE_MAX_APERTURE EXIF_RATIONAL
// Subject distance
// Use EXIFTAGTYPE_SUBJECT_DISTANCE as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_SUBJECT_DISTANCE 0x9206
#define EXIFTAGID_SUBJECT_DISTANCE CONSTRUCT_TAGID(SUBJECT_DISTANCE, _ID_SUBJECT_DISTANCE)
#define EXIFTAGTYPE_SUBJECT_DISTANCE EXIF_RATIONAL
// Metering mode
// Use EXIFTAGTYPE_METERING_MODE as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_METERING_MODE 0x9207
#define EXIFTAGID_METERING_MODE CONSTRUCT_TAGID(METERING_MODE, _ID_METERING_MODE)
#define EXIFTAGTYPE_METERING_MODE EXIF_SHORT
// Light source
// Use EXIFTAGTYPE_LIGHT_SOURCE as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_LIGHT_SOURCE 0x9208
#define EXIFTAGID_LIGHT_SOURCE CONSTRUCT_TAGID(LIGHT_SOURCE, _ID_LIGHT_SOURCE)
#define EXIFTAGTYPE_LIGHT_SOURCE EXIF_SHORT
// Flash
// Use EXIFTAGTYPE_FLASH as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_FLASH 0x9209
#define EXIFTAGID_FLASH CONSTRUCT_TAGID(FLASH, _ID_FLASH)
#define EXIFTAGTYPE_FLASH EXIF_SHORT
// Lens focal length
// Use EXIFTAGTYPE_FOCAL_LENGTH as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_FOCAL_LENGTH 0x920a
#define EXIFTAGID_FOCAL_LENGTH CONSTRUCT_TAGID(FOCAL_LENGTH, _ID_FOCAL_LENGTH)
#define EXIFTAGTYPE_FOCAL_LENGTH EXIF_RATIONAL
// Subject area
// Use EXIFTAGTYPE_SUBJECT_AREA as exif_tag_type (EXIF_SHORT)
// Count should be 2 or 3 or 4
#define _ID_SUBJECT_AREA 0x9214
#define EXIFTAGID_SUBJECT_AREA CONSTRUCT_TAGID(SUBJECT_AREA, _ID_SUBJECT_AREA)
#define EXIFTAGTYPE_SUBJECT_AREA EXIF_SHORT
// Maker note
// Use EXIFTAGTYPE_EXIF_MAKER_NOTE as the exif_tag_type (EXIF_UNDEFINED)
// Count can be any
#define _ID_EXIF_MAKER_NOTE 0x927c
#define EXIFTAGID_EXIF_MAKER_NOTE CONSTRUCT_TAGID(EXIF_MAKER_NOTE, _ID_EXIF_MAKER_NOTE)
#define EXIFTAGTYPE_EXIF_MAKER_NOTE EXIF_UNDEFINED
// User comments
// Use EXIFTAGTYPE_EXIF_USER_COMMENT as the exif_tag_type (EXIF_UNDEFINED)
// Count can be any
#define _ID_EXIF_USER_COMMENT 0x9286
#define EXIFTAGID_EXIF_USER_COMMENT CONSTRUCT_TAGID(EXIF_USER_COMMENT, _ID_EXIF_USER_COMMENT)
#define EXIFTAGTYPE_EXIF_USER_COMMENT EXIF_UNDEFINED
// Date time sub-seconds
// Use EXIFTAGTYPE_SUBSEC_TIME as the exif_tag_type (EXIF_ASCII)
// Count could be any
#define _ID_SUBSEC_TIME 0x9290
#define EXIFTAGID_SUBSEC_TIME CONSTRUCT_TAGID(SUBSEC_TIME, _ID_SUBSEC_TIME)
#define EXIFTAGTYPE_SEBSEC_TIME EXIF_ASCII
// Date time original sub-seconds
// use EXIFTAGTYPE_SUBSEC_TIME_ORIGINAL as the exif_tag_type (EXIF_ASCII)
// Count could be any
#define _ID_SUBSEC_TIME_ORIGINAL 0x9291
#define EXIFTAGID_SUBSEC_TIME_ORIGINAL CONSTRUCT_TAGID(SUBSEC_TIME_ORIGINAL, _ID_SUBSEC_TIME_ORIGINAL)
#define EXIFTAGTYPE_SUBSEC_TIME_ORIGINAL EXIF_ASCII
// Date time digitized sub-seconds
// use EXIFTAGTYPE_SUBSEC_TIME_DIGITIZED as the exif_tag_type (EXIF_ASCII)
// Count could be any
#define _ID_SUBSEC_TIME_DIGITIZED 0x9292
#define EXIFTAGID_SUBSEC_TIME_DIGITIZED CONSTRUCT_TAGID(SUBSEC_TIME_DIGITIZED, _ID_SUBSEC_TIME_DIGITIZED)
#define EXIFTAGTYPE_SUBSEC_TIME_DIGITIZED EXIF_ASCII
// Supported Flashpix version
// Use EXIFTAGTYPE_EXIF_FLASHPIX_VERSION as the exif_tag_type (EXIF_UNDEFINED)
// Count should be 4
#define _ID_EXIF_FLASHPIX_VERSION 0xa000
#define EXIFTAGID_EXIF_FLASHPIX_VERSION CONSTRUCT_TAGID(EXIF_FLASHPIX_VERSION, _ID_EXIF_FLASHPIX_VERSION)
#define EXIFTAGTYPE_EXIF_FLASHPIX_VERSION EXIF_UNDEFINED
// Color space information
// Use EXIFTAGTYPE_EXIF_COLOR_SPACE as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_EXIF_COLOR_SPACE 0xa001
#define EXIFTAGID_EXIF_COLOR_SPACE CONSTRUCT_TAGID(EXIF_COLOR_SPACE, _ID_EXIF_COLOR_SPACE)
#define EXIFTAGTYPE_EXIF_COLOR_SPACE EXIF_SHORT
// Valid image width
// Use EXIFTAGTYPE_EXIF_PIXEL_X_DIMENSION as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_EXIF_PIXEL_X_DIMENSION 0xa002
#define EXIFTAGID_EXIF_PIXEL_X_DIMENSION CONSTRUCT_TAGID(EXIF_PIXEL_X_DIMENSION, _ID_EXIF_PIXEL_X_DIMENSION)
#define EXIFTAGTYPE_EXIF_PIXEL_X_DIMENSION EXIF_SHORT
// Valid image height
// Use EXIFTAGTYPE_EXIF_PIXEL_Y_DIMENSION as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_EXIF_PIXEL_Y_DIMENSION 0xa003
#define EXIFTAGID_EXIF_PIXEL_Y_DIMENSION CONSTRUCT_TAGID(EXIF_PIXEL_Y_DIMENSION, _ID_EXIF_PIXEL_Y_DIMENSION)
#define EXIFTAGTYPE_EXIF_PIXEL_Y_DIMENSION EXIF_SHORT
// Related audio file
// Use EXIFTAGTYPE_EXIF_RELATED_SOUND_FILE as the exif_tag_type (EXIF_ASCII)
// Count should be 13
#define _ID_RELATED_SOUND_FILE 0xa004
#define EXIFTAGID_RELATED_SOUND_FILE CONSTRUCT_TAGID(RELATED_SOUND_FILE, _ID_RELATED_SOUND_FILE)
#define EXIFTAGTYPE_RELATED_SOUND_FILE EXIF_ASCII
// Interop IFD pointer (NOT INTENDED to be accessible to user)
#define _ID_INTEROP_IFD_PTR 0xa005
#define EXIFTAGID_INTEROP_IFD_PTR CONSTRUCT_TAGID(INTEROP, _ID_INTEROP_IFD_PTR)
#define EXIFTAGTYPE_INTEROP_IFD_PTR EXIF_LONG
// Flash energy
// Use EXIFTAGTYPE_EXIF_FLASH_ENERGY as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_FLASH_ENERGY 0xa20b
#define EXIFTAGID_FLASH_ENERGY CONSTRUCT_TAGID(FLASH_ENERGY, _ID_FLASH_ENERGY)
#define EXIFTAGTYPE_FLASH_ENERGY EXIF_RATIONAL
// Spatial frequency response
// Use EXIFTAGTYPE_SPATIAL_FREQ_RESPONSE as exif_tag_type (EXIF_UNDEFINED)
// Count would be any
#define _ID_SPATIAL_FREQ_RESPONSE 0xa20c
#define EXIFTAGID_SPATIAL_FREQ_RESPONSE CONSTRUCT_TAGID(SPATIAL_FREQ_RESPONSE, _ID_SPATIAL_FREQ_RESPONSE)
#define EXIFTAGTYPE_SPATIAL_FREQ_RESPONSE EXIF_UNDEFINED
// Focal plane x resolution
// Use EXIFTAGTYPE_FOCAL_PLANE_X_RESOLUTION as exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_FOCAL_PLANE_X_RESOLUTION 0xa20e
#define EXIFTAGID_FOCAL_PLANE_X_RESOLUTION CONSTRUCT_TAGID(FOCAL_PLANE_X_RESOLUTION, _ID_FOCAL_PLANE_X_RESOLUTION)
#define EXIFTAGTYPE_FOCAL_PLANE_X_RESOLUTION EXIF_RATIONAL
// Focal plane y resolution
// Use EXIFTAGTYPE_FOCAL_PLANE_Y_RESOLUTION as exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_FOCAL_PLANE_Y_RESOLUTION 0xa20f
#define EXIFTAGID_FOCAL_PLANE_Y_RESOLUTION CONSTRUCT_TAGID(FOCAL_PLANE_Y_RESOLUTION, _ID_FOCAL_PLANE_Y_RESOLUTION)
#define EXIFTAGTYPE_FOCAL_PLANE_Y_RESOLUTION EXIF_RATIONAL
// Focal plane resolution unit
// Use EXIFTAGTYPE_FOCAL_PLANE_RESOLUTION_UNIT as exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_FOCAL_PLANE_RESOLUTION_UNIT 0xa210
#define EXIFTAGID_FOCAL_PLANE_RESOLUTION_UNIT CONSTRUCT_TAGID(FOCAL_PLANE_RESOLUTION_UNIT, _ID_FOCAL_PLANE_RESOLUTION_UNIT)
#define EXIFTAGTYPE_FOCAL_PLANE_RESOLUTION_UNIT EXIF_SHORT
// Subject location
// Use EXIFTAGTYPE_SUBJECT_LOCATION as the exif_tag_type (EXIF_SHORT)
// Count should be 2
#define _ID_SUBJECT_LOCATION 0xa214
#define EXIFTAGID_SUBJECT_LOCATION CONSTRUCT_TAGID(SUBJECT_LOCATION, _ID_SUBJECT_LOCATION)
#define EXIFTAGTYPE_SUBJECT_LOCATION EXIF_SHORT
// Exposure index
// Use EXIFTAGTYPE_EXPOSURE_INDEX as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_EXPOSURE_INDEX 0xa215
#define EXIFTAGID_EXPOSURE_INDEX CONSTRUCT_TAGID(EXPOSURE_INDEX, _ID_EXPOSURE_INDEX)
#define EXIFTAGTYPE_EXPOSURE_INDEX EXIF_RATIONAL
// Sensing method
// Use EXIFTAGTYPE_SENSING_METHOD as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_SENSING_METHOD 0xa217
#define EXIFTAGID_SENSING_METHOD CONSTRUCT_TAGID(SENSING_METHOD, _ID_SENSING_METHOD)
#define EXIFTAGTYPE_SENSING_METHOD EXIF_SHORT
// File source
// Use EXIFTAGTYPE_FILE_SOURCE as the exif_tag_type (EXIF_UNDEFINED)
// Count should be 1
#define _ID_FILE_SOURCE 0xa300
#define EXIFTAGID_FILE_SOURCE CONSTRUCT_TAGID(FILE_SOURCE, _ID_FILE_SOURCE)
#define EXIFTAGTYPE_FILE_SOURCE EXIF_UNDEFINED
// Scene type
// Use EXIFTAGTYPE_SCENE_TYPE as the exif_tag_type (EXIF_UNDEFINED)
// Count should be 1
#define _ID_SCENE_TYPE 0xa301
#define EXIFTAGID_SCENE_TYPE CONSTRUCT_TAGID(SCENE_TYPE, _ID_SCENE_TYPE)
#define EXIFTAGTYPE_SCENE_TYPE EXIF_UNDEFINED
// CFA pattern
// Use EXIFTAGTYPE_CFA_PATTERN as the exif_tag_type (EXIF_UNDEFINED)
// Count can be any
#define _ID_CFA_PATTERN 0xa302
#define EXIFTAGID_CFA_PATTERN CONSTRUCT_TAGID(CFA_PATTERN, _ID_CFA_PATTERN)
#define EXIFTAGTYPE_CFA_PATTERN EXIF_UNDEFINED
// Custom image processing
// Use EXIFTAGTYPE_CUSTOM_RENDERED as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_CUSTOM_RENDERED 0xa401
#define EXIFTAGID_CUSTOM_RENDERED CONSTRUCT_TAGID(CUSTOM_RENDERED, _ID_CUSTOM_RENDERED)
#define EXIFTAGTYPE_CUSTOM_RENDERED EXIF_SHORT
// Exposure mode
// Use EXIFTAGTYPE_EXPOSURE_MODE as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_EXPOSURE_MODE 0xa402
#define EXIFTAGID_EXPOSURE_MODE CONSTRUCT_TAGID(EXPOSURE_MODE, _ID_EXPOSURE_MODE)
#define EXIFTAGTYPE_EXPOSURE_MODE EXIF_SHORT
// White balance
// Use EXIFTAGTYPE_WHITE_BALANCE as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_WHITE_BALANCE 0xa403
#define EXIFTAGID_WHITE_BALANCE CONSTRUCT_TAGID(WHITE_BALANCE, _ID_WHITE_BALANCE)
#define EXIFTAGTYPE_WHITE_BALANCE EXIF_SHORT
// Digital zoom ratio
// Use EXIFTAGTYPE_DIGITAL_ZOOM_RATIO as the exif_tag_type (EXIF_RATIONAL)
// Count should be 1
#define _ID_DIGITAL_ZOOM_RATIO 0xa404
#define EXIFTAGID_DIGITAL_ZOOM_RATIO CONSTRUCT_TAGID(DIGITAL_ZOOM_RATIO, _ID_DIGITAL_ZOOM_RATIO)
#define EXIFTAGTYPE_DIGITAL_ZOOM_RATIO EXIF_RATIONAL
// Focal length in 35mm film
// Use EXIFTAGTYPE_FOCAL_LENGTH_35MM as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_FOCAL_LENGTH_35MM 0xa405
#define EXIFTAGID_FOCAL_LENGTH_35MM CONSTRUCT_TAGID(FOCAL_LENGTH_35MM, _ID_FOCAL_LENGTH_35MM)
#define EXIFTAGTYPE_FOCAL_LENGTH_35MM EXIF_SHORT
// Scene capture type
// Use EXIFTAGTYPE_SCENE_CAPTURE_TYPE as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_SCENE_CAPTURE_TYPE 0xa406
#define EXIFTAGID_SCENE_CAPTURE_TYPE CONSTRUCT_TAGID(SCENE_CAPTURE_TYPE, _ID_SCENE_CAPTURE_TYPE)
#define EXIFTAGTYPE_SCENE_CAPTURE_TYPE EXIF_SHORT
// Gain control
// Use EXIFTAGTYPE_GAIN_CONTROL as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_GAIN_CONTROL 0xa407
#define EXIFTAGID_GAIN_CONTROL CONSTRUCT_TAGID(GAIN_CONTROL, _ID_GAIN_CONTROL)
#define EXIFTAGTYPE_GAIN_CONTROL EXIF_SHORT
// Contrast
// Use EXIFTAGTYPE_CONTRAST as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_CONTRAST 0xa408
#define EXIFTAGID_CONTRAST CONSTRUCT_TAGID(CONTRAST, _ID_CONTRAST)
#define EXIFTAGTYPE_CONTRAST EXIF_SHORT
// Saturation
// Use EXIFTAGTYPE_SATURATION as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_SATURATION 0xa409
#define EXIFTAGID_SATURATION CONSTRUCT_TAGID(SATURATION, _ID_SATURATION)
#define EXIFTAGTYPE_SATURATION EXIF_SHORT
// Sharpness
// Use EXIFTAGTYPE_SHARPNESS as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_SHARPNESS 0xa40a
#define EXIFTAGID_SHARPNESS CONSTRUCT_TAGID(SHARPNESS, _ID_SHARPNESS)
#define EXIFTAGTYPE_SHARPNESS EXIF_SHORT
// Device settings description
// Use EXIFTAGID_DEVICE_SETTINGS_DESCRIPTION as exif_tag_type (EXIF_UNDEFINED)
// Count could be any
#define _ID_DEVICE_SETTINGS_DESCRIPTION 0xa40b
#define EXIFTAGID_DEVICE_SETTINGS_DESCRIPTION CONSTRUCT_TAGID(DEVICE_SETTINGS_DESCRIPTION, _ID_DEVICE_SETTINGS_DESCRIPTION)
#define EXIFTAGTYPE_DEVIC_SETTIGNS_DESCRIPTION EXIF_UNDEFINED
// Subject distance range
// Use EXIFTAGTYPE_SUBJECT_DISTANCE_RANGE as the exif_tag_type (EXIF_SHORT)
// Count should be 1
#define _ID_SUBJECT_DISTANCE_RANGE 0xa40c
#define EXIFTAGID_SUBJECT_DISTANCE_RANGE CONSTRUCT_TAGID(SUBJECT_DISTANCE_RANGE, _ID_SUBJECT_DISTANCE_RANGE)
#define EXIFTAGTYPE_SUBJECT_DISTANCE_RANGE EXIF_SHORT
// Unique image id
// Use EXIFTAG_TYPE_IMAGE_UIDas the exif_tag_type (EXIF_ASCII)
// Count should be 33
#define _ID_IMAGE_UID 0xa420
#define EXIFTAGID_IMAGE_UID CONSTRUCT_TAGID(IMAGE_UID, _ID_IMAGE_UID)
#define EXIFTAGTYPE_IMAGE_UID EXIF_ASCII
// PIM tag
// Use EXIFTAGTYPE_PIM_TAG as the exif_tag_type (EXIF_UNDEFINED)
// Count can be any
#define _ID_PIM 0xc4a5
#define EXIFTAGID_PIM_TAG CONSTRUCT_TAGID(PIM, _ID_PIM)
#define EXIFTAGTYPE_PIM_TAG EXIF_UNDEFINED
#endif /* __QCAMERA_INTF_H__ */