mirror of
https://github.com/opencv/opencv.git
synced 2026-09-12 13:23:03 -05:00
dnn: fix the parameter names documented for memset
The four memset overloads in cuda4dnn document their first parameter as src while it is called dest, and the directions are the wrong way round: the output buffer is marked [in] and the 8-bit fill value is marked [out]. The prose above two of them already says dest, only the tags disagree.
This commit is contained in:
@@ -178,8 +178,8 @@ namespace cv { namespace dnn { namespace cuda4dnn { namespace csl {
|
||||
|
||||
/** sets device memory block to a specific 8-bit value
|
||||
*
|
||||
* \param[in] src device pointer
|
||||
* \param[out] ch 8-bit value to fill the device memory with
|
||||
* \param[out] dest device pointer
|
||||
* \param[in] ch 8-bit value to fill the device memory with
|
||||
*
|
||||
* Exception Guarantee: Basic
|
||||
*/
|
||||
@@ -243,8 +243,8 @@ namespace cv { namespace dnn { namespace cuda4dnn { namespace csl {
|
||||
|
||||
/** sets device memory block to a specific 8-bit value asynchronously
|
||||
*
|
||||
* \param[in] src device pointer
|
||||
* \param[out] ch 8-bit value to fill the device memory with
|
||||
* \param[out] dest device pointer
|
||||
* \param[in] ch 8-bit value to fill the device memory with
|
||||
* \param stream CUDA stream that has to be used for the memory operation
|
||||
*
|
||||
* Exception Guarantee: Basic
|
||||
|
||||
@@ -307,8 +307,8 @@ namespace cv { namespace dnn { namespace cuda4dnn { namespace csl {
|
||||
|
||||
/** sets \p n elements to \p ch in \p dest
|
||||
*
|
||||
* \param[in] src device pointer
|
||||
* \param[out] ch 8-bit value to fill the device memory with
|
||||
* \param[out] dest device pointer
|
||||
* \param[in] ch 8-bit value to fill the device memory with
|
||||
*
|
||||
* Pre-conditions:
|
||||
* - memory pointed by \p dest must be large enough to hold \p n elements
|
||||
@@ -388,8 +388,8 @@ namespace cv { namespace dnn { namespace cuda4dnn { namespace csl {
|
||||
|
||||
/** sets \p n elements to \p ch in \p dest asynchronously
|
||||
*
|
||||
* \param[in] src device pointer
|
||||
* \param[out] ch 8-bit value to fill the device memory with
|
||||
* \param[out] dest device pointer
|
||||
* \param[in] ch 8-bit value to fill the device memory with
|
||||
* \param stream CUDA stream that has to be used for the memory operation
|
||||
*
|
||||
* Pre-conditions:
|
||||
|
||||
Reference in New Issue
Block a user