t/framemat: Update confusing comments, sorry.

This commit is contained in:
Jakob Bornecrantz 2021-08-23 19:34:50 +01:00
parent 602ce70a0a
commit a8251815af

View file

@ -44,15 +44,19 @@ public:
~FrameMat(); ~FrameMat();
/*! /*!
* Wraps the given @ref cv::Mat assuming it's a 24bit RGB format matrix, the pointer pointed to by @ref xf_ptr * Wraps the given @ref cv::Mat assuming it's a 24bit RGB format matrix.
* will have it's reference updated. * In all but the most strange cases you probably want the pointer
* pointed to by @ref xf_ptr to be nullptr, if not nullptr it will have
* it's reference decremented so make sure it's a valid pointer.
*/ */
static void static void
wrapR8G8B8(cv::Mat mat, xrt_frame **xf_ptr, const Params /*&&?*/ params = {}); wrapR8G8B8(cv::Mat mat, xrt_frame **xf_ptr, const Params /*&&?*/ params = {});
/*! /*!
* Wraps the given @ref cv::Mat assuming it's a 8bit format matrix, the pointer pointed to by @ref xf_ptr will * Wraps the given @ref cv::Mat assuming it's a 8bit format matrix.
* have it's reference updated. * In all but the most strange cases you probably want the pointer
* pointed to by @ref xf_ptr to be nullptr, if not nullptr it will have
* it's reference decremented so make sure it's a valid pointer.
*/ */
static void static void
wrapL8(cv::Mat mat, xrt_frame **xf_ptr, const Params /*&&?*/ params = {}); wrapL8(cv::Mat mat, xrt_frame **xf_ptr, const Params /*&&?*/ params = {});