KhronosGroup / OpenVX-sample-impl

OpenVX sample implementation
Apache License 2.0
139 stars 47 forks source link

vx_scalar that is created by vxCreateScalarWithSize cannot be read #48

Open lses40311 opened 2 years ago

lses40311 commented 2 years ago

Hi,

vx_scalar values can be accessed by vxCopyScalarWithSize(...) only.

Either vxWriteScalarValue(...) and vxReadScalarValue(...) does not work with these scalar since they will access the union memory of the struct instead of the data_addr pointer.

Hence, the users have to trace the variables to select the compatible apis even though they are all vx_scalars.

Was this designed in purpose? Thanks!!