Displaying 1 result from an estimated 1 matches for "opencv_video_capture_".
2019 Jun 09
2
Strange local variable cv::VideoCapture allocated
...-6 to compile this C++ code and I see a strange temporary
variable allocated at expression address 0x7ff1131536e8.
If I change the ternary operator at line 483 to an if-else, the temporary
is not allocated.
Thanks
Variables:
=========
FFMPEGVideoCapture ffmpeg_video_capture_;
cv::VideoCapture opencv_video_capture_;
Function:
========
bool StreamData::readFileFrame(Mat& curr_frame, int& frame_id) {
// read frame from file
++frame_id;
483: enable_ffmpeg_decoder_ ? (ffmpeg_video_capture_.read(curr_frame))
: opencv_video_capture_ >> curr_frame;
return !curr_frame.em...