search for: curr_frame

Displaying 1 result from an estimated 1 matches for "curr_frame".

2019 Jun 09
2
Strange local variable cv::VideoCapture allocated
...ion 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.empty(); } Generated AST from ast-dump: =========================== -CXX...