Skip to content

Commit d386383

Browse files
SDA USRYuanqiang Li
authored andcommitted
add api meta josn to codec (#646)
* add api meta josn to codec * update Co-authored-by: Yuanqiang Li <yuanqian@xilinx.com>
1 parent 6b2ef24 commit d386383

File tree

3 files changed

+152
-0
lines changed

3 files changed

+152
-0
lines changed

codec/L1/meta/api.json

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"schema": "vitis_libraries_api_list_schema-1.0",
3+
"api_list": [
4+
{
5+
"api_name": "xf::codec::kernelParserDecoderTop",
6+
"spec": {
7+
"schema": "vitis_libraries_api_list_schema-1.0",
8+
"api_name": "xf::codec::kernelParserDecoderTop",
9+
"display_name": "kernelParserDecoderTop",
10+
"brief": "Level 2 : kernel for jfif parser + huffman decoder.",
11+
"target_domain": "",
12+
"header_file_name": [
13+
"XAcc_jfifparser.hpp"
14+
],
15+
"search_paths": [
16+
"L1/include"
17+
],
18+
"instance": "function",
19+
"parameters": [],
20+
"ports": [
21+
{
22+
"name": "datatoDDR",
23+
"direction": "",
24+
"type": "ap_uint< (16) > *"
25+
},
26+
{
27+
"name": "size",
28+
"direction": "",
29+
"type": "const int"
30+
},
31+
{
32+
"name": "img_info",
33+
"direction": "",
34+
"type": "xf::codec::img_info&"
35+
},
36+
{
37+
"name": "hls_cmpnfo[MAX_NUM_COLOR]",
38+
"direction": "",
39+
"type": "xf::codec::hls_compInfo"
40+
},
41+
{
42+
"name": "block_strm",
43+
"direction": "",
44+
"type": "hls::stream<ap_uint<24> >&"
45+
},
46+
{
47+
"name": "rtn",
48+
"direction": "",
49+
"type": "int&"
50+
},
51+
{
52+
"name": "rtn2",
53+
"direction": "",
54+
"type": "bool&"
55+
},
56+
{
57+
"name": "pout",
58+
"direction": "",
59+
"type": "xf::codec::decOutput*"
60+
}
61+
]
62+
}
63+
},
64+
{
65+
"api_name": "xf::codec::top_order_tokenize",
66+
"spec": {
67+
"schema": "vitis_libraries_api_list_schema-1.0",
68+
"api_name": "xf::codec::top_order_tokenize",
69+
"display_name": "top_order_tokenize",
70+
"brief": "JXL order_tokenize case",
71+
"target_domain": "",
72+
"header_file_name": [
73+
"topOrderTokenize.hpp"
74+
],
75+
"search_paths": [
76+
"/L1/include/"
77+
],
78+
"instance": "function",
79+
"parameters": [],
80+
"ports": [
81+
{
82+
"name": "used_orders",
83+
"direction": "",
84+
"type": "ap_uint<32>"
85+
},
86+
{
87+
"name": "orderStrm",
88+
"direction": "",
89+
"type": "hls::stream<ap_uint<32> >"
90+
},
91+
{
92+
"name": "tokenStrm",
93+
"direction": "",
94+
"type": "hls::stream<ap_uint<64> >"
95+
},
96+
{
97+
"name": "e_tokenStrm",
98+
"direction": "",
99+
"type": "hls::stream<bool>"
100+
}
101+
]
102+
}
103+
}
104+
],
105+
"target_domain": ""
106+
}

codec/L1/src/XAcc_jfifparser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ void decoder_jpg_top(ap_uint<AXI_WIDTH>* ptr,
599599
* @param block_strm the stream of coefficients in block,23:is_rst, 22:is_endblock,21~16:bpos,15~0:block val
600600
* @param rtn the flag of the jfif parser succeed
601601
* @param rtn2 the flag of the decode succeed
602+
* @param pout the decOutput
602603
*/
603604
void kernelParserDecoderTop(ap_uint<AXI_WIDTH>* datatoDDR,
604605
const int size,

codec/L2/meta/api.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"schema": "vitis_libraries_api_list_schema-1.0",
3+
"api_list": [
4+
{
5+
"api_name": "xf::codec::kernelJpegDecoderTop",
6+
"spec": {
7+
"schema": "vitis_libraries_api_list_schema-1.0",
8+
"api_name": "xf::codec::kernelJpegDecoderTop",
9+
"display_name": "kernelJpegDecoderTop",
10+
"brief": "Level 2 : kernel implement for jfif parser + huffman decoder + iQ_iDCT.",
11+
"target_domain": "PL",
12+
"header_file_name": [
13+
"XAcc_idct.hpp"
14+
],
15+
"search_paths": [
16+
"L2/include/hw/jpegDec"
17+
],
18+
"instance": "function",
19+
"parameters": [],
20+
"ports": [
21+
{
22+
"name": "jpeg_pointer",
23+
"direction": "",
24+
"type": "ap_uint< (16) > *"
25+
},
26+
{
27+
"name": "size",
28+
"direction": "",
29+
"type": "const int"
30+
},
31+
{
32+
"name": "yuv_mcu_pointer",
33+
"direction": "",
34+
"type": "ap_uint< 64 > *"
35+
},
36+
{
37+
"name": "info",
38+
"direction": "",
39+
"type": "ap_uint< 32 > *"
40+
}
41+
]
42+
}
43+
}
44+
]
45+
}

0 commit comments

Comments
 (0)