Changes have been pushed for the repository "fawkesrobotics/fawkes".
Clone: https://github.com/fawkesrobotics/fawkes.git Gitweb: https://github.com/fawkesrobotics/fawkes The branch, neltester/cv_fv_color_conversions has been updated to 096225776fff1373ece155e4b7935f14f6098514 (commit) from 553bcc8f85f5089cb8a8f3380bfe3914099a372e (commit) https://github.com/fawkesrobotics/fawkes/tree/neltester/cv_fv_color_conversions Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - *Log* --------------------------------------------------------------- commit 096225776fff1373ece155e4b7935f14f6098514 Author: Niklas Sebastian Eltester <[email protected]> AuthorDate: Thu Jun 10 17:49:28 2021 +0200 Commit: Niklas Sebastian Eltester <[email protected]> CommitDate: Thu Jun 10 17:49:28 2021 +0200 fvutils: use null term for buffer size https://github.com/fawkesrobotics/fawkes/commit/096225776 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *Summary* ----------------------------------------------------------- src/libs/fvutils/adapters/cvmatadapter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) - *Diffs* ------------------------------------------------------------- - *commit* 096225776fff1373ece155e4b7935f14f6098514 - - - - - - - - - - Author: Niklas Sebastian Eltester <[email protected]> Date: Thu Jun 10 17:49:28 2021 +0200 Subject: fvutils: use null term for buffer size src/libs/fvutils/adapters/cvmatadapter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) _Diff for modified files_: diff --git a/src/libs/fvutils/adapters/cvmatadapter.cpp b/src/libs/fvutils/adapters/cvmatadapter.cpp index 78bebb9b3..158f75636 100644 --- a/src/libs/fvutils/adapters/cvmatadapter.cpp +++ b/src/libs/fvutils/adapters/cvmatadapter.cpp @@ -43,7 +43,11 @@ namespace firevision { void CvMatAdapter::convert_image_bgr(unsigned char *buffer, cv::Mat &image) { - unsigned char tmp[sizeof(buffer)]; + int buffer_size = 0; + while (buffer[buffer_size] != '\0') { + buffer_size++; + } + unsigned char tmp[buffer_size]; convert(YUV422_PLANAR, YUV422_PACKED, buffer, tmp, image.cols, image.rows); cv::Mat tmp_mat = cv::Mat(image.size(), CV_8UC2, tmp); cv::cvtColor(tmp_mat, image, cv::COLOR_YUV2BGR_UYVY, 3); _______________________________________________ fawkes-commits mailing list [email protected] https://lists.kbsg.rwth-aachen.de/listinfo/fawkes-commits
