!70 整改CAPI命名检查工具

Merge pull request !70 from 姜前进/1117
This commit is contained in:
openharmony_ci 2023-11-20 02:54:15 +00:00 committed by Gitee
commit 032dedef40
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 21 additions and 911 deletions

View File

@ -52,7 +52,7 @@ def process_file_json(file_info, api_result_info_list):
api_result_info_list.extend(process_file_doc_info(file_doc_info, file_info))
def process_all_json(python_obj) -> list[ApiResultInfo]:
def process_all_json(python_obj):
api_result_info_list = []
for file_info in python_obj:
process_file_json(file_info, api_result_info_list)
@ -81,12 +81,12 @@ def curr_entry(pr_id):
check_result = []
for file in file_list:
root_path = file.split('sdk_c')[0] + 'sdk_c'
python_obj = parser_include_ast(root_path, file)
python_obj = parser_include_ast(root_path, [file])
check_result.extend(process_all_json(python_obj))
write_in_txt(check_result)
def get_md_files(url) -> list[str]:
def get_md_files(url):
file = open(url, "r")
file_list = []
line = file.readline()

View File

@ -24,7 +24,23 @@ def check_large_hump(api_info):
def check_function_name(api_info):
return processing_check_data('CHECK_FUNCTION_NAME', api_info)
api_result_info_list = []
name = api_info['name']
self_developed_function_result = re.match(r'^[OH|OS]+([\_]([A-Z]+[a-z0-9]*)+)*$', name)
ordinary_function_result = re.match(r'^([A-Z][a-z0-9]*)*$', name)
if self_developed_function_result or ordinary_function_result is not None:
return api_result_info_list
else:
api_result_info = ApiResultInfo(ErrorType.NAMING_ERRORS.value,
ErrorMessage[api_info['kind']].value, name)
api_result_info.set_location_line(api_info['location']['location_line'])
api_result_info.set_location_column(api_info['location']['location_column'])
api_result_info.set_location(api_info['location']['location_path'])
api_result_info.set_type(LogType.LOG_API.value)
api_result_info.set_level(2)
api_result_info.set_file_name(api_info['location']['location_path'])
api_result_info_list.append(api_result_info)
return api_result_info_list
def check_small_hump(api_info):
@ -77,7 +93,6 @@ class CheckName(enum.Enum):
ALL_UPPERCASE_HUMP = r'^[A-Z]+[0-9]*([\_][A-Z0-9]+)*$'
GLOBAL_VARIABLE = r'^g_([a-z][A-Z0-9]*)*$'
FILE_NAME = r'^[a-z]+[a-z0-9]+([\_][a-z0-9]+)*\.h$'
CHECK_FUNCTION_NAME = r'^([OH|OS]+([\_]([A-Z]+[a-z0-9]*)+)*)|(([A-Z][a-z0-9]*)*)$'
process_tag_function = {
@ -93,7 +108,7 @@ process_tag_function = {
}
def check_ndk_name(api_info) -> list[ApiResultInfo]:
def check_ndk_name(api_info):
api_result_info_list = []
kind = api_info['kind']
if kind not in process_tag_function.keys():

View File

@ -1,905 +0,0 @@
[
{
"name": "C:\\Users\\Administrator\\Desktop\\drawing_types.h",
"kind": "TRANSLATION_UNIT",
"type": "",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @addtogroup Drawing\n * @{\n *\n * @brief Provides functions such as 2D graphics rendering, text drawing, and image display.\n * \n * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n *\n * @since 8\n * @version 1.0\n */\n\n/**\n * @file drawing_types.h\n *\n * @brief Declares the data types for drawing 2D graphics, including the canvas, brush, pen, bitmap, and path.\n *\n * @since 8\n * @version 1.0\n */\n\n",
"children": [
{
"name": "C_INCLUDE_DRAWING_TYPES_H",
"kind": "MACRO_DEFINITION",
"type": "def_no_type",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 38,
"location_column": 9
}
},
{
"name": "stdint.h",
"kind": "INCLUSION_DIRECTIVE",
"type": "inclusion_no_type",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 46,
"location_column": 1
}
},
{
"name": "VNi_LIST",
"kind": "VAR_DECL",
"type": "const int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 41,
"location_column": 11
},
"is_extern": false,
"children": [
{
"name": "var_int_no_spelling",
"kind": "INTEGER_LITERAL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 41,
"location_column": 22
},
"integer_value": "5"
}
]
},
{
"name": "g_xxxBaseValue",
"kind": "VAR_DECL",
"type": "const int[4]",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 44,
"location_column": 11
},
"is_extern": false,
"children": [
{
"name": "var_int_no_spelling",
"kind": "INTEGER_LITERAL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 44,
"location_column": 26
},
"integer_value": "4"
},
{
"name": "",
"kind": "INIT_LIST_EXPR",
"type": "const int[4]",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 44,
"location_column": 31
},
"children": [
{
"name": "integer_no_spelling",
"kind": "INTEGER_LITERAL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 44,
"location_column": 33
},
"integer_value": "1"
},
{
"name": "integer_no_spelling",
"kind": "INTEGER_LITERAL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 44,
"location_column": 36
},
"integer_value": "2"
},
{
"name": "integer_no_spelling",
"kind": "INTEGER_LITERAL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 44,
"location_column": 39
},
"integer_value": "4"
},
{
"name": "integer_no_spelling",
"kind": "INTEGER_LITERAL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 44,
"location_column": 42
},
"integer_value": "8"
}
]
}
]
},
{
"name": "OSIdleCtr",
"kind": "VAR_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 53,
"location_column": 12
},
"is_extern": true
},
{
"name": "Node",
"kind": "STRUCT_DECL",
"type": "Node",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 56,
"location_column": 9
},
"members": [
{
"name": "dataParse",
"kind": "FIELD_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 58,
"location_column": 6
},
"member": "struct_member"
},
{
"name": "_Node",
"kind": "STRUCT_DECL",
"type": "struct _Node",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 59,
"location_column": 9
}
},
{
"name": "next",
"kind": "FIELD_DECL",
"type": "struct _Node *",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 59,
"location_column": 16
},
"member": "struct_member",
"children": [
{
"name": "struct _Node",
"kind": "TYPE_REF",
"type": "struct _Node",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 59,
"location_column": 9
}
}
]
}
]
},
{
"name": "Node",
"kind": "TYPEDEF_DECL",
"type": "Node",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 60,
"location_column": 2
},
"children": [
{
"name": "Node",
"kind": "STRUCT_DECL",
"type": "Node",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 56,
"location_column": 9
},
"members": [
{
"name": "dataParse",
"kind": "FIELD_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 58,
"location_column": 6
},
"member": "struct_member"
},
{
"name": "_Node",
"kind": "STRUCT_DECL",
"type": "struct _Node",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 59,
"location_column": 9
}
},
{
"name": "next",
"kind": "FIELD_DECL",
"type": "struct _Node *",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 59,
"location_column": 16
},
"member": "struct_member",
"children": [
{
"name": "struct _Node",
"kind": "TYPE_REF",
"type": "struct _Node",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 59,
"location_column": 9
}
}
]
}
]
}
]
},
{
"name": "Un",
"kind": "UNION_DECL",
"type": "union Un",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 64,
"location_column": 7
},
"members": [
{
"name": "numSize",
"kind": "FIELD_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 66,
"location_column": 6
},
"member": "union_member"
}
]
},
{
"name": "NoteCome",
"kind": "FUNCTION_DECL",
"type": "int (char)",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 70,
"location_column": 5
},
"return_type": "int",
"is_extern": true,
"parm": [
{
"name": "getNote",
"kind": "PARM_DECL",
"type": "char",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 70,
"location_column": 19
}
}
]
},
{
"name": "OH_Drawing_Canvas",
"kind": "STRUCT_DECL",
"type": "struct OH_Drawing_Canvas",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 80,
"location_column": 16
}
},
{
"name": "OH_Drawing_Canvas",
"kind": "TYPEDEF_DECL",
"type": "OH_Drawing_Canvas",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @brief Defines a rectangular canvas on which various shapes, images,\n * and texts can be drawn by using the brush and pen.\n * \n * @since 8\n * @version 1.0\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 80,
"location_column": 34
},
"children": [
{
"name": "struct OH_Drawing_Canvas",
"kind": "TYPE_REF",
"type": "struct OH_Drawing_Canvas",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 80,
"location_column": 16
}
}
]
},
{
"name": "OH_Drawing_Pen",
"kind": "STRUCT_DECL",
"type": "struct OH_Drawing_Pen",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 88,
"location_column": 16
}
},
{
"name": "OH_Drawing_Pen",
"kind": "TYPEDEF_DECL",
"type": "OH_Drawing_Pen",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @brief Defines a pen, which is used to describe the style and color to outline a shape.\n * \n * @since 8\n * @version 1.0\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 88,
"location_column": 31
},
"children": [
{
"name": "struct OH_Drawing_Pen",
"kind": "TYPE_REF",
"type": "struct OH_Drawing_Pen",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 88,
"location_column": 16
}
}
]
},
{
"name": "OH_Drawing_Brush",
"kind": "STRUCT_DECL",
"type": "struct OH_Drawing_Brush",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 96,
"location_column": 16
}
},
{
"name": "OH_Drawing_Brush",
"kind": "TYPEDEF_DECL",
"type": "OH_Drawing_Brush",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @brief Defines as a brush, which is used to describe the style and color to fill in a shape.\n * \n * @since 8\n * @version 1.0\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 96,
"location_column": 33
},
"children": [
{
"name": "struct OH_Drawing_Brush",
"kind": "TYPE_REF",
"type": "struct OH_Drawing_Brush",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 96,
"location_column": 16
}
}
]
},
{
"name": "OH_Drawing_Path",
"kind": "STRUCT_DECL",
"type": "struct OH_Drawing_Path",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 104,
"location_column": 16
}
},
{
"name": "OH_Drawing_Path",
"kind": "TYPEDEF_DECL",
"type": "OH_Drawing_Path",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @brief Defines a path, which is used to customize various shapes.\n * \n * @since 8\n * @version 1.0\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 104,
"location_column": 32
},
"children": [
{
"name": "struct OH_Drawing_Path",
"kind": "TYPE_REF",
"type": "struct OH_Drawing_Path",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 104,
"location_column": 16
}
}
]
},
{
"name": "OH_Drawing_Bitmap",
"kind": "STRUCT_DECL",
"type": "struct OH_Drawing_Bitmap",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 112,
"location_column": 16
}
},
{
"name": "OH_Drawing_Bitmap",
"kind": "TYPEDEF_DECL",
"type": "OH_Drawing_Bitmap",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @brief Defines a bitmap, which is a memory that contains the pixel data of a shape.\n * \n * @since 8\n * @version 1.0\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 112,
"location_column": 34
},
"children": [
{
"name": "struct OH_Drawing_Bitmap",
"kind": "TYPE_REF",
"type": "struct OH_Drawing_Bitmap",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "none_comment",
"location": {
"location_path": "drawing_types.h",
"location_line": 112,
"location_column": 16
}
}
]
},
{
"name": "OH_Drawing_ColorFormat",
"kind": "ENUM_DECL",
"type": "OH_Drawing_ColorFormat",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @brief Enumerates storage formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 120,
"location_column": 9
},
"members": [
{
"name": "COLOR_FORMAT_UNKNOWN",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** Unknown format. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 122,
"location_column": 5
},
"value": 0
},
{
"name": "COLOR_FORMAT_ALPHA_8",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** Each pixel is represented by 8 bits, which together indicate alpha. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 124,
"location_column": 5
},
"value": 1
},
{
"name": "COLOR_FORMAT_RGB_565",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * Each pixel is represented by 16 bits. From the most significant bit to the least significant bit,\n * the first 5 bits indicate red, the subsequent 6 bits indicate green, and the last 5 bits indicate blue.\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 129,
"location_column": 5
},
"value": 2
},
{
"name": "COLOR_FORMAT_ARGB_4444",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * Each pixel is represented by 16 bits. From the most significant bit to the least significant bit,\n * every 4 bits indicate alpha, red, green, and blue, respectively.\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 134,
"location_column": 5
},
"value": 3
},
{
"name": "COLOR_FORMAT_RGBA_8888",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * Each pixel is represented by 32 bits. From the most significant bit to the least significant bit,\n * every 8 bits indicate alpha, red, green, and blue, respectively.\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 139,
"location_column": 5
},
"value": 4
},
{
"name": "COLOR_FORMAT_BGRA_8888",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * Each pixel is represented by 32 bits. From the most significant bit to the least significant bit,\n * every 8 bits indicate blue, green, red, and alpha, respectively.\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 144,
"location_column": 5
},
"value": 5
}
]
},
{
"name": "OH_Drawing_ColorFormat",
"kind": "TYPEDEF_DECL",
"type": "OH_Drawing_ColorFormat",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @brief Enumerates storage formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 145,
"location_column": 3
},
"children": [
{
"name": "OH_Drawing_ColorFormat",
"kind": "ENUM_DECL",
"type": "OH_Drawing_ColorFormat",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @brief Enumerates storage formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 120,
"location_column": 9
},
"members": [
{
"name": "COLOR_FORMAT_UNKNOWN",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** Unknown format. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 122,
"location_column": 5
},
"value": 0
},
{
"name": "COLOR_FORMAT_ALPHA_8",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** Each pixel is represented by 8 bits, which together indicate alpha. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 124,
"location_column": 5
},
"value": 1
},
{
"name": "COLOR_FORMAT_RGB_565",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * Each pixel is represented by 16 bits. From the most significant bit to the least significant bit,\n * the first 5 bits indicate red, the subsequent 6 bits indicate green, and the last 5 bits indicate blue.\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 129,
"location_column": 5
},
"value": 2
},
{
"name": "COLOR_FORMAT_ARGB_4444",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * Each pixel is represented by 16 bits. From the most significant bit to the least significant bit,\n * every 4 bits indicate alpha, red, green, and blue, respectively.\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 134,
"location_column": 5
},
"value": 3
},
{
"name": "COLOR_FORMAT_RGBA_8888",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * Each pixel is represented by 32 bits. From the most significant bit to the least significant bit,\n * every 8 bits indicate alpha, red, green, and blue, respectively.\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 139,
"location_column": 5
},
"value": 4
},
{
"name": "COLOR_FORMAT_BGRA_8888",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * Each pixel is represented by 32 bits. From the most significant bit to the least significant bit,\n * every 8 bits indicate blue, green, red, and alpha, respectively.\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 144,
"location_column": 5
},
"value": 5
}
]
}
]
},
{
"name": "OH_Drawing_AlphaFormat",
"kind": "ENUM_DECL",
"type": "OH_Drawing_AlphaFormat",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @brief Enumerates alpha formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 153,
"location_column": 9
},
"members": [
{
"name": "ALPHA_FORMAT_UNKNOWN",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** Unknown format. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 155,
"location_column": 5
},
"value": 0
},
{
"name": "ALPHA_FORMAT_OPAQUE",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** The bitmap does not have the alpha component. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 157,
"location_column": 5
},
"value": 1
},
{
"name": "ALPHA_FORMAT_PREMUL",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** The color component of each pixel is premultiplied by the alpha component. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 159,
"location_column": 5
},
"value": 2
},
{
"name": "ALPHA_FORMAT_UNPREMUL",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** The color component of each pixel is not premultiplied by the alpha component. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 161,
"location_column": 5
},
"value": 3
}
]
},
{
"name": "OH_Drawing_AlphaFormat",
"kind": "TYPEDEF_DECL",
"type": "OH_Drawing_AlphaFormat",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @brief Enumerates alpha formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 162,
"location_column": 3
},
"children": [
{
"name": "OH_Drawing_AlphaFormat",
"kind": "ENUM_DECL",
"type": "OH_Drawing_AlphaFormat",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/**\n * @brief Enumerates alpha formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */",
"location": {
"location_path": "drawing_types.h",
"location_line": 153,
"location_column": 9
},
"members": [
{
"name": "ALPHA_FORMAT_UNKNOWN",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** Unknown format. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 155,
"location_column": 5
},
"value": 0
},
{
"name": "ALPHA_FORMAT_OPAQUE",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** The bitmap does not have the alpha component. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 157,
"location_column": 5
},
"value": 1
},
{
"name": "ALPHA_FORMAT_PREMUL",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** The color component of each pixel is premultiplied by the alpha component. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 159,
"location_column": 5
},
"value": 2
},
{
"name": "ALPHA_FORMAT_UNPREMUL",
"kind": "ENUM_CONSTANT_DECL",
"type": "int",
"gn_path": "C:\\Users\\Administrator\\Desktop",
"comment": "/** The color component of each pixel is not premultiplied by the alpha component. */",
"location": {
"location_path": "drawing_types.h",
"location_line": 161,
"location_column": 5
},
"value": 3
}
]
}
]
}
]
}
]