MCPcopy Create free account
hub / github.com/BabitMF/bmf / getVideoFrameOutput

Method getVideoFrameOutput

bmf_lite/ohos/entry/src/main/cpp/algorithm/algorithm.cpp:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83int Algorithm::getVideoFrameOutput(GLuint &textureId, size_t &width,
84 size_t &height) {
85 if (!valid_) {
86 return -1;
87 }
88
89 bmf_lite::Param output_param;
90 bmf_lite::VideoFrame output_video_frame;
91 algorithm_->getVideoFrameOutput(output_video_frame, output_param);
92 width = output_video_frame.buffer()->width();
93 height = output_video_frame.buffer()->height();
94 textureId = (long)(output_video_frame.buffer()->data());
95 return 0;
96}
97
98Algorithm::~Algorithm() {
99 bmf_lite::AlgorithmFactory::releaseAlgorithmInterface(algorithm_);

Callers 1

DrawImageMethod · 0.45

Calls 4

widthMethod · 0.45
bufferMethod · 0.45
heightMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected