From aaf69121962bf466a6655316b1e5e737a93ad959 Mon Sep 17 00:00:00 2001 From: duanhan Date: Wed, 18 Dec 2024 11:12:32 +0800 Subject: [PATCH] cherry pick ade1a8f from https://gitee.com/duanhan12345/third_party_libexif/pulls/105 1218 exif add ai edit Signed-off-by: duanhan --- libexif/huawei/mnote-huawei-entry.c | 1 + libexif/huawei/mnote-huawei-tag.c | 1 + libexif/huawei/mnote-huawei-tag.h | 1 + 3 files changed, 3 insertions(+) diff --git a/libexif/huawei/mnote-huawei-entry.c b/libexif/huawei/mnote-huawei-entry.c index f3106fc..c69c48a 100644 --- a/libexif/huawei/mnote-huawei-entry.c +++ b/libexif/huawei/mnote-huawei-entry.c @@ -361,6 +361,7 @@ mnote_huawei_entry_initialize(MnoteHuaweiEntry *e, MnoteHuaweiTag tag, ExifByteO case MNOTE_HUAWEI_XMAGE_BOTTOM: case MNOTE_HUAWEI_CLOUD_ENHANCEMENT_MODE: case MNOTE_HUAWEI_WIND_SNAPSHOT_MODE: + case MNOTE_HUAWEI_AI_EDIT: e->components = 1; e->format = EXIF_FORMAT_SLONG; e->size = e->components * exif_format_get_size(e->format); diff --git a/libexif/huawei/mnote-huawei-tag.c b/libexif/huawei/mnote-huawei-tag.c index 5265eb6..95fb14e 100644 --- a/libexif/huawei/mnote-huawei-tag.c +++ b/libexif/huawei/mnote-huawei-tag.c @@ -51,6 +51,7 @@ static const MnoteHuaweiTable huawei_table[] = { {MNOTE_MICRO_VIDEO_PRESENTATION_TIMESTAMP_US, "MicroVideoPresentationTimestampUS", N_("Video Presentation Timestamp US"), "VideoPresentationTimestampUS"}, {MNOTE_MOVING_PHOTO_ID, "MovingPhotoId", N_("Moving Photo Id"), "MovingPhotoId"}, + {MNOTE_HUAWEI_AI_EDIT, "HwMnoteAIEdit", N_("AI Edit"), "AIEdit"}, {0, "HwUnknow", N_("Unknow Tag"), "UnknowTag"}, }; diff --git a/libexif/huawei/mnote-huawei-tag.h b/libexif/huawei/mnote-huawei-tag.h index 0c26252..f0b0e78 100644 --- a/libexif/huawei/mnote-huawei-tag.h +++ b/libexif/huawei/mnote-huawei-tag.h @@ -42,6 +42,7 @@ enum _MnoteHuaweiTag { MNOTE_MOVING_PHOTO_VERSION = 0x020f, MNOTE_MICRO_VIDEO_PRESENTATION_TIMESTAMP_US = 0x0210, MNOTE_MOVING_PHOTO_ID = 0x0211, + MNOTE_HUAWEI_AI_EDIT = 0x0212, MNOTE_HUAWEI_SCENE_INFO = 0x0000, /* subtree */ MNOTE_HUAWEI_SCENE_VERSION = 0x0001, -- Gitee