@@ -69,25 +69,37 @@ class Array : public Reference
6969 * @param capacity capacity of array
7070 * @param is_virtual is array virtual
7171 * @param type array or lut
72- * @return vx_array
72+ * @return vx_array array object
7373 * @ingroup group_int_array
7474 */
75- static vx_array createArray (vx_context context, vx_enum item_type, vx_size capacity, vx_bool is_virtual, vx_enum type);
75+ static vx_array createArray (
76+ vx_context context, vx_enum item_type, vx_size capacity, vx_bool is_virtual = vx_false_e, vx_enum type = VX_TYPE_ARRAY);
77+
78+ /* *
79+ * @brief Create a LUT object
80+ *
81+ * @param context context object
82+ * @param data_type array object type
83+ * @param count count of array
84+ * @return vx_lut_t LUT object
85+ * @ingroup group_int_array
86+ */
87+ static vx_lut_t createLUT (vx_context context, vx_enum data_type, vx_size count);
7688
7789 /* *
7890 * @brief Validate array object
7991 *
8092 * @param item_type array object type
8193 * @param capacity capacity of array
82- * @return vx_bool
94+ * @return vx_bool true if valid, false otherwise
8395 * @ingroup group_int_array
8496 */
8597 vx_bool validateArray (vx_enum item_type, vx_size capacity);
8698
8799 /* *
88100 * @brief Allocate memory for array object
89101 *
90- * @return vx_bool
102+ * @return vx_bool true if successful, false otherwise
91103 * @ingroup group_int_array
92104 */
93105 vx_bool allocateArray ();
@@ -97,7 +109,7 @@ class Array : public Reference
97109 *
98110 * @param context global context
99111 * @param item_type item type
100- * @return vx_size
112+ * @return vx_size size of item
101113 * @ingroup group_int_array
102114 */
103115 static vx_size itemSize (vx_context context, vx_enum item_type);
@@ -107,7 +119,7 @@ class Array : public Reference
107119 *
108120 * @param context global context
109121 * @param item_type item type
110- * @return vx_bool
122+ * @return vx_bool true if valid, false otherwise
111123 * @ingroup group_int_array
112124 */
113125 static vx_bool isValidArrayItemType (vx_context context, vx_enum item_type);
@@ -116,7 +128,7 @@ class Array : public Reference
116128 * @brief Validate array object
117129 *
118130 * @param arr array object to check
119- * @return vx_bool
131+ * @return vx_bool true if valid, false otherwise
120132 * @ingroup group_int_array
121133 */
122134 static vx_bool isValidArray (vx_array arr);
@@ -133,7 +145,7 @@ class Array : public Reference
133145 *
134146 * @param item_type array object type
135147 * @param capacity capacity of array
136- * @return vx_bool
148+ * @return vx_bool true if successful, false otherwise
137149 * @ingroup group_int_array
138150 */
139151 vx_bool initVirtualArray (vx_enum item_type, vx_size capacity);
@@ -209,53 +221,53 @@ class Array : public Reference
209221 /* *
210222 * @brief Access array range in object
211223 *
212- * @param start start index
213- * @param end end index
214- * @param pStride pointer of stride
215- * @param ptr pointer to data
216- * @param usage ro | rw | wo
217- * @return vx_status
224+ * @param start start index
225+ * @param end end index
226+ * @param pStride pointer of stride
227+ * @param ptr pointer to data
228+ * @param usage ro | rw | wo
229+ * @return vx_status VX_SUCCESS if successful, any other value indicates failure.
218230 * @ingroup group_int_array
219231 */
220232 vx_status accessArrayRange (vx_size start, vx_size end, vx_size *pStride, void **ptr, vx_enum usage);
221233
222234 /* *
223235 * @brief Commit array range
224236 *
225- * @param start start index
226- * @param end end index
227- * @param ptr pointer to data
228- * @return vx_status
237+ * @param start start index
238+ * @param end end index
239+ * @param ptr pointer to data
240+ * @return vx_status VX_SUCCESS if successful, any other value indicates failure.
229241 * @ingroup group_int_array
230242 */
231243 vx_status commitArrayRange (vx_size start, vx_size end, const void *ptr);
232244
233245 /* *
234246 * @brief Copy array range
235247 *
236- * @param start start index
237- * @param end end index
238- * @param stride size of stride
239- * @param ptr pointer to data
240- * @param usage ro | rw | wo
241- * @param mem_type host | device
242- * @return vx_status
248+ * @param start start index
249+ * @param end end index
250+ * @param stride size of stride
251+ * @param ptr pointer to data
252+ * @param usage ro | rw | wo
253+ * @param mem_type host | device
254+ * @return vx_status VX_SUCCESS if successful, any other value indicates failure.
243255 * @ingroup group_int_array
244256 */
245257 vx_status copyArrayRange (vx_size start, vx_size end, vx_size stride, void *ptr, vx_enum usage, vx_enum mem_type);
246258
247259 /* *
248260 * @brief Map array range
249261 *
250- * @param start start index
251- * @param end end index
252- * @param map_id memory map id
253- * @param stride size of stride
254- * @param ptr pointer to data
255- * @param usage ro | rw | wo
256- * @param mem_type host | device
257- * @param flags additional flags
258- * @return vx_status
262+ * @param start start index
263+ * @param end end index
264+ * @param map_id memory map id
265+ * @param stride size of stride
266+ * @param ptr pointer to data
267+ * @param usage ro | rw | wo
268+ * @param mem_type host | device
269+ * @param flags additional flags
270+ * @return vx_status VX_SUCCESS if successful, any other value indicates failure.
259271 * @ingroup group_int_array
260272 */
261273 vx_status mapArrayRange (vx_size start, vx_size end, vx_map_id *map_id, vx_size *stride,
@@ -265,7 +277,7 @@ class Array : public Reference
265277 * @brief Unmap array range
266278 *
267279 * @param map_id memory map id
268- * @return vx_status
280+ * @return vx_status VX_SUCCESS if successful, any other value indicates failure.
269281 * @ingroup group_int_array
270282 */
271283 vx_status unmapArrayRange (vx_map_id map_id);
@@ -300,5 +312,4 @@ class Array : public Reference
300312
301313} // namespace corevx
302314
303-
304- #endif /* VX_ARRAY_H */
315+ #endif /* VX_ARRAY_H */
0 commit comments