• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Multimedia Subsystem Changelog
2
3## cl.multimedia.1 Changed the Parameter Type for the HEIF Format in image.Component.OH_PackingOptions_SetMimeType()
4
5**Access Level**
6
7Public API
8
9**Reason for Change**
10
11During HEIF encoding with the camera, the encoding fails with the standard-defined **image/heic** parameter. The current version of Image defines the format parameter as **image/heif**, which does not comply with the standard definition. To improve adherence to standards, the **mimeType** parameter for HEIF images is changed to **image/heic**.
12
13**Change Impact**
14
15This change is a non-compatible change.
16
17Before change: The **mimeType** parameter for HEIF images is **image/heif**.
18
19After change: The **mimeType** parameter for HEIF images is **image/heic**.
20
21**Start API Level**
22
2312
24
25**Change Since**
26
27OpenHarmony 5.0.0.53
28
29**Key API/Component Changes**
30
31API in image_packer_native.h:
32
33Image_ErrorCode OH_PackingOptions_SetMimeType(OH_PackingOptions *options, Image_MimeType *format)
34
35**Adaptation Guide**
36
37When **OH_PackingOptions_SetMimeType(OH_PackingOptions *options, Image_MimeType *format)** is called to set **mimeType** for HEIF images, the **format** parameter must be **image/heic**.
38
39
40## cl.multimedia.2 Changed the Return Value Type for the HEIF Format in image.Component.OH_PackingOptions_GetMimeType()
41
42**Access Level**
43
44Public API
45
46**Reason for Change**
47
48During HEIF encoding with the camera, the encoding fails with the standard-defined **image/heic** parameter. The current version of Image defines the format parameter as **image/heif**, which does not comply with the standard definition. To improve adherence to standards, the **mimeType** parameter for HEIF images is changed to **image/heic**.
49
50**Change Impact**
51
52This change is a non-compatible change.
53
54Before change: The **mimeType** parameter for HEIF images is **image/heif**.
55
56After change: The **mimeType** parameter for HEIF images is **image/heic**.
57
58**Start API Level**
59
6012
61
62**Change Since**
63
64OpenHarmony 5.0.0.53
65
66**Key API/Component Changes**
67
68API in image_packer_native.h:
69
70Image_ErrorCode OH_PackingOptions_GetMimeType (OH_PackingOptions * options, Image_MimeType * format)
71
72**Adaptation Guide**
73
74When **OH_PackingOptions_GetMimeType(OH_PackingOptions *options, Image_MimeType *format)** is called to obtain **mimeType** of HEIF images, **format** in the return value is **image/heic**. You need to review the sample project of the application and modify the format based on service requirements.
75
76
77## cl.multimedia.3 Changed the Return Value Type for the HEIF Format in image.Component.supportedFormats for Decoding
78
79**Access Level**
80
81Public API
82
83**Reason for Change**
84
85During HEIF encoding with the camera, the encoding fails with the standard-defined **image/heic** parameter. The current version of Image defines the format parameter as **image/heif**, which does not comply with the standard definition. To improve adherence to standards, the **mimeType** parameter for HEIF images is changed to **image/heic**.
86
87**Change Impact**
88
89This change is a non-compatible change.
90
91Before change: The return value of the decoding type supported by the device for HEIF images is **image/heif**.
92
93After change: The return value of the decoding type supported by the device for HEIF images is **image/heic**.
94
95**Start API Level**
96
9710
98
99**Change Since**
100
101OpenHarmony 5.0.0.53
102
103**Key API/Component Changes**
104
105Property in /interface/sdk-js/api/@ohos.multimedia.image.d.ts:
106
107image.Component.readonly supportedFormats: Array\<string>
108
109**Adaptation Guide**
110
111When this property is used to obtain the decoding type of a device, the calling behavior remains unchanged. If the device supports HEIF, the return value is changed from **image/heif** to **image/heic**.
112
113
114## cl.multimedia.4 Changed the Return Value Type for the HEIF Format in image.Component.supportedFormats for Encoding
115
116**Access Level**
117
118Public API
119
120**Reason for Change**
121
122During HEIF encoding with the camera, the encoding fails with the standard-defined **image/heic** parameter. The current version of Image defines the format parameter as **image/heif**, which does not comply with the standard definition. To improve adherence to standards, the **mimeType** parameter for HEIF images is changed to **image/heic**.
123
124**Change Impact**
125
126This change is a non-compatible change.
127
128Before change: The return value of the encoding type supported by the device for HEIF images is **image/heif**.
129
130After change: The return value of the encoding type supported by the device for HEIF images is **image/heic**.
131
132**Start API Level**
133
13410
135
136**Change Since**
137
138OpenHarmony 5.0.0.53
139
140**Key API/Component Changes**
141
142Property in /interface/sdk-js/api/@ohos.multimedia.image.d.ts:
143
144image.Component.readonly supportedFormats: Array\<string>
145
146**Adaptation Guide**
147
148When this property is used to obtain the encoding type of a device, the calling behavior remains unchanged. If the device supports HEIF, the return value is changed from **image/heif** to **image/heic**.
149
150
151## cl.multimedia.5 Changed the Encoding Parameter for the HEIF Format in image.Component.packing()
152
153**Access Level**
154
155Public API
156
157**Reason for Change**
158
159During HEIF encoding with the camera, the encoding fails with the standard-defined **image/heic** parameter. The current version of Image defines the format parameter as **image/heif**, which does not comply with the standard definition. To improve adherence to standards, the **mimeType** parameter for HEIF images is changed to **image/heic**.
160
161**Change Impact**
162
163This change is a compatible change.
164
165Before change: The **mimeType** parameter for HEIF encoding is **image/heif**.
166
167After change: The **mimeType** parameter for HEIF encoding is **image/heic**.
168
169**Start API Level**
170
17112
172
173**Change Since**
174
175OpenHarmony 5.0.0.53
176
177**Key API/Component Changes**
178
179API in /interface/sdk-js/api/@ohos.multimedia.image.d.ts:
180
181image.Component.packing()
182
183**Adaptation Guide**
184
185When calling the API to encode HEIF images, you can use both **image/heif** and **image/heic**. Both types can be used to encode the images into HEIC.
186
187
188## cl.multimedia.6 Changed the Encoding Parameter for the HEIF Format in the Image.Component.OH_PackingOptions Struct
189
190**Access Level**
191
192Public API
193
194**Reason for Change**
195
196During HEIF encoding with the camera, the encoding fails with the standard-defined **image/heic** parameter. The current version of Image defines the format parameter as **image/heif**, which does not comply with the standard definition. To improve adherence to standards, the **mimeType** parameter for HEIF images is changed to **image/heic**.
197
198**Change Impact**
199
200This change is a compatible change.
201
202Before change: The **mimeType** parameter for HEIF encoding is **image/heif**.
203
204After change: The **mimeType** parameter for HEIF encoding is **image/heic**.
205
206**Start API Level**
207
20812
209
210**Change Since**
211
212OpenHarmony 5.0.0.53
213
214**Key API/Component Changes**
215
216Property in image_packer_native.h:
217
218image.Component.OH_PackingOptions
219
220**Adaptation Guide**
221
222When calling the API to encode HEIF images, you can use both **image/heif** and **image/heic**. Both types can be used to encode the images into HEIC.
223