Add enum value and definition for HEIF image format 33/254533/3 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211029.013725 accepted/tizen/unified/20210420.002112 submit/tizen/20210419.073346 submit/tizen_6.5/20211028.163501 tizen_6.5.m2_release
authorJihoon Jung <jh8801.jung@samsung.com>
Thu, 4 Mar 2021 07:00:13 +0000 (16:00 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Fri, 19 Mar 2021 06:13:41 +0000 (15:13 +0900)
Change-Id: I25a45e3a0d5bc56fc7b20ff42b79fba172ebf1a7
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
packaging/libmtp.spec
src/libmtp.c
src/libmtp.h.in
src/ptp.c
src/ptp.h

index 401b8af..ad03958 100755 (executable)
@@ -3,7 +3,7 @@
 Name:       libmtp
 Summary:    Library for media transfer protocol (mtp)
 Version:    1.1.11
-Release:    13
+Release:    14
 Group:      Network & Connectivity/Other
 License:    LGPL-2.1
 Source0:    libmtp-%{version}.tar.gz
index c329034..b53877a 100755 (executable)
@@ -385,6 +385,7 @@ static void init_filemap()
   register_filetype("GIF bitmap file", LIBMTP_FILETYPE_GIF, PTP_OFC_GIF);
   register_filetype("PICT bitmap file", LIBMTP_FILETYPE_PICT, PTP_OFC_PICT);
   register_filetype("Portable Network Graphics", LIBMTP_FILETYPE_PNG, PTP_OFC_PNG);
+  register_filetype("HEIF file", LIBMTP_FILETYPE_HEIF, PTP_OFC_HEIF);
   register_filetype("Microsoft Windows Image Format", LIBMTP_FILETYPE_WINDOWSIMAGEFORMAT, PTP_OFC_MTP_WindowsImageFormat);
   register_filetype("VCalendar version 1", LIBMTP_FILETYPE_VCALENDAR1, PTP_OFC_MTP_vCalendar1);
   register_filetype("VCalendar version 2", LIBMTP_FILETYPE_VCALENDAR2, PTP_OFC_MTP_vCalendar2);
index c880765..e6d0433 100755 (executable)
@@ -131,6 +131,7 @@ typedef enum {
   //helper enum value
   LIBMTP_FILETYPE_ALL,
   LIBMTP_FILETYPE_ALL_IMAGE,
+  LIBMTP_FILETYPE_HEIF,
 #endif /* TIZEN_EXT */
 } LIBMTP_filetype_t;
 
index 0f904a9..7fe93e0 100755 (executable)
--- a/src/ptp.c
+++ b/src/ptp.c
@@ -5887,6 +5887,7 @@ struct {
        {PTP_OFC_JP2,"JP2"},
        {PTP_OFC_JPX,"JPX"},
        {PTP_OFC_DNG,"DNG"},
+       {PTP_OFC_HEIF,"HEIF"},
 };
 
 struct {
index b30a627..97bb46d 100755 (executable)
--- a/src/ptp.h
+++ b/src/ptp.h
@@ -964,6 +964,8 @@ typedef struct _PTPObjectInfo PTPObjectInfo;
 #define PTP_OFC_JPX                            0x3810
 /* ptp v1.1 has only DNG new */
 #define PTP_OFC_DNG                            0x3811
+/* iOS image format extention */
+#define PTP_OFC_HEIF                           0x3812
 /* Eastman Kodak extension ancillary format */
 #define PTP_OFC_EK_M3U                         0xb002
 /* Canon extension */