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

Method process

extensions/opencv/FrameIO.h:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 ~FrameWriteCallback() override = default;
34
35 int64_t process(const std::shared_ptr<io::BaseStream>& stream) override {
36 int64_t ret = 0;
37 imencode(image_encoding_, image_mat_, image_buf_);
38 ret = stream->write(image_buf_.data(), image_buf_.size());
39 return ret;
40 }
41
42 private:
43 std::vector<uchar> image_buf_;

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected