MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ close()

void MayaFlux::IO::FFmpegCameraReader::close ( )
overridevirtual

Release device, decode, and scratch resources.

Implements MayaFlux::IO::CameraSource.

Definition at line 190 of file FFmpegCameraReader.cpp.

191{
193
194 std::unique_lock lock(m_ctx_mutex);
195 m_video->close();
196 m_demux->close();
197 m_scaler_ready = false;
198 m_sws_buf.clear();
199 m_sws_buf.shrink_to_fit();
200 m_last_error.clear();
201}
std::shared_ptr< FFmpegDemuxContext > m_demux
std::shared_ptr< VideoStreamContext > m_video

References m_ctx_mutex, m_demux, m_last_error, m_scaler_ready, m_sws_buf, m_video, and stop_decode_thread().

Referenced by open(), and ~FFmpegCameraReader().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: