1#  Copyright (c) 2023 Huawei Device Co., Ltd.
2#  Licensed under the Apache License, Version 2.0 (the "License");
3#  you may not use this file except in compliance with the License.
4#  You may obtain a copy of the License at
5#
6#      http://www.apache.org/licenses/LICENSE-2.0
7#
8#  Unless required by applicable law or agreed to in writing, software
9#  distributed under the License is distributed on an "AS IS" BASIS,
10#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11#  See the License for the specific language governing permissions and
12#  limitations under the License.
13
14domain: IMAGE_FWK_UE
15
16DECODED_IMAGE_TYPE_STATISTICS:
17  __BASE: {type: STATISTIC, level: MINOR, desc: Collect statistics on the decoded image type such as PNG JPEG GIF BMP and HEIF, preserve: true}
18  PNAMEID: {type: STRING, desc: package name}
19  PVERSIONID: {type: STRING, desc: application version}
20  IMAGE_TYPE: {type: STRING, desc: Type of the decoded image for example png jpeg bmp gif ico and wbmp}
21
22CREATE_IMAGESOURCE_FAULT:
23  __BASE: {type: BEHAVIOR, level: MINOR, desc: Image encoding and decoding cause of the create image source failure, preserve: true}
24  PNAMEID: {type: STRING, desc: package name}
25  PVERSIONID: {type: STRING, desc: application version}
26  WIDTH: {type: UINT32, desc: image width}
27  HEIGHT: {type: UINT32, desc: image height}
28  TYPE: {type: STRING, desc: image formats jpeg png etc}
29  ERROR_MSG: {type: STRING, desc: error message}
30
31
32ENCODE_FAULT:
33  __BASE: {type: BEHAVIOR, level: MINOR, desc: Image encoding and decoding cause of the encode failure, preserve: true}
34  PNAMEID: {type: STRING, desc: package name}
35  PVERSIONID: {type: STRING, desc: application version}
36  WIDTH: {type: UINT32, desc: image width}
37  HEIGHT: {type: UINT32, desc: image height}
38  MIME_TYPE: {type: STRING, desc: Image formats jpeg png etc}
39  ERROR_MSG: {type: STRING, desc: error message}
40
41DECODE_FAULT:
42  __BASE: {type: BEHAVIOR, level: MINOR, desc: Image encoding and decoding cause of the decode failure, preserve: true}
43  PNAMEID: {type: STRING, desc: package name}
44  PVERSIONID: {type: STRING, desc: application version}
45  APPLICATION_NAME: {type: STRING, desc: application name}
46  ROTATE: {type: FLOAT, desc: image rorate}
47  EDITABLE: {type: BOOL, desc: IsEditable 0 is No 1 is Yes}
48  SAMPLE_SIZE: {type: UINT32, desc: sample}
49  SOURCE_WIDTH: {type: INT32, desc: source image width}
50  SOURCE_HEIGHT: {type: INT32, desc: source image height}
51  DESIRE_SIZE_WIDTH: {type: INT32, desc: desire image width}
52  DESIRE_SIZE_HEIGHT: {type: INT32, desc: desire image height}
53  DESIRE_REGION_WIDTH: {type: INT32, desc: desire region width}
54  DESIRE_REGION_HEIGHT: {type: INT32, desc: desire region height}
55  DESIRE_REGION_X: {type: INT32, desc: desire region x}
56  DESIRE_REGION_Y: {type: INT32, desc: desire region y}
57  DESIRE_DESIRE_PIXEL_FORMAT: {type: INT32, desc: Expected image pixel format The options are as fol1ows 1 is ARGB_888 3 is RGBA_8888 4 is BGRA_8888 8 is NV21 9 is NV12}
58  INDEX: {type: UINT32, desc: image index}
59  FIT_DENSITY: {type: INT32, desc: fit density}
60  DESIRE_COLOR_SPACE: {type: INT32, desc: Indicates the expected image color space 1 is DISLAY_P3 2 is SRGB 3 is LINEAR SRGB}
61  MIMETYPE: {type: STRING, desc: Image formats jpeg png etc}
62  MEMORY_SIZE: {type: UINT32, desc: memory size}
63  MEMORY_TYPE: {type: INT32, desc: Memory type The options are as follows 1 is heap 2 is sharedMem 4 is Dma}
64  IMAGE_SOURCE: {type: STRING, desc: Image source FD buffer etc}
65  INVOKE_TYPE: {type: STRING, desc: Invocation type JS_inerface c_interface and inner}
66  INCREMENTAL_DECODE: {type: BOOL, desc: Indicates whether to perform incremental decoding The options are as follows 0 is no 1 is yes}
67  HARD_DECODE: {type: BOOL, desc: Whether to perform hard decoding 0 is no 1 is yes}
68  HARD_DECODE_ERROR: {type: STRING, desc: hard decode error message}
69  ERROR_MSG: {type: STRING, desc: error message}
70
71DECODE_INFORMATION:
72  __BASE: {type: BEHAVIOR, level: MINOR, desc: Image encoding and decoding information statistics. Each application reports data once a day in different formats, preserve: true}
73  PNAMEID: {type: STRING, desc: package name}
74  PVERSIONID: {type: STRING, desc: application version}
75  APPLICATION_NAME: {type: STRING, desc: application name}
76  ROTATE: {type: FLOAT, desc: image rorate}
77  EDITABLE: {type: BOOL, desc: IsEditable 0 is No 1 is Yes}
78  SAMPLE_SIZE: {type: UINT32, desc: sample}
79  SOURCE_WIDTH: {type: INT32, desc: source image width}
80  SOURCE_HEIGHT: {type: INT32, desc: source image height}
81  DESIRE_SIZE_WIDTH: {type: INT32, desc: desire image width}
82  DESIRE_SIZE_HEIGHT: {type: INT32, desc: desire image height}
83  DESIRE_REGION_WIDTH: {type: INT32, desc: desire region width}
84  DESIRE_REGION_HEIGHT: {type: INT32, desc: desire region height}
85  DESIRE_REGION_X: {type: INT32, desc: desire region x}
86  DESIRE_REGION_Y: {type: INT32, desc: desire region y}
87  DESIRE_DESIRE_PIXEL_FORMAT: {type: INT32, desc: Expected image pixel format The options are as fol1ows 1 is ARGB_888 3 is RGBA_8888 4 is BGRA_8888 8 is NV21 9 is NV12}
88  INDEX: {type: UINT32, desc: image index}
89  FIT_DENSITY: {type: INT32, desc: fit density}
90  DESIRE_COLOR_SPACE: {type: INT32, desc: Indicates the expected image color space 1 is DISLAY_P3 2 is SRGB 3 is LINEAR SRGB}
91  MIMETYPE: {type: STRING, desc: Image formats jpeg png etc}
92  MEMORY_SIZE: {type: UINT32, desc: memory size}
93  MEMORY_TYPE: {type: INT32, desc: Memory type The options are as follows 1 is heap 2 is sharedMem 4 is Dma}
94  IMAGE_SOURCE: {type: STRING, desc: Image source FD buffer etc}
95  INVOKE_TYPE: {type: STRING, desc: Invocation type JS_inerface c_interface and inner}
96  INCREMENTAL_DECODE: {type: BOOL, desc: Indicates whether to perform incremental decoding The options are as follows 0 is no 1 is yes}
97  HARD_DECODE: {type: BOOL, desc: Whether to perform hard decoding 0 is no 1 is yes}
98  HARD_DECODE_ERROR: {type: STRING, desc: hard decode error message}
99  COST_TIME: {type: UINT64, desc: decode cost time}