MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / PNGWriteCallback

Method PNGWriteCallback

extensions/usb-camera/GetUSBCamera.cpp:389–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387}
388
389GetUSBCamera::PNGWriteCallback::PNGWriteCallback(std::shared_ptr<std::mutex> write_mtx,
390 uvc_frame_t *frame,
391 uint32_t width,
392 uint32_t height)
393 : png_write_mtx_(std::move(write_mtx)),
394 frame_(frame),
395 width_(width),
396 height_(height),
397 logger_(logging::LoggerFactory<PNGWriteCallback>::getLogger()) {
398}
399
400int64_t GetUSBCamera::PNGWriteCallback::process(const std::shared_ptr<io::BaseStream>& stream) {
401 std::lock_guard<std::mutex> lock(*png_write_mtx_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected