MCPcopy Create free account
hub / github.com/Tencent/libpag / encodeFrameInternal

Method encodeFrameInternal

exporter/src/export/encode/PAGEncodeThread.cpp:128–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void PAGEncodeThread::encodeFrameInternal(std::shared_ptr<pag::ByteData> data, FrameType frameType,
129 int stride) {
130 if (encoder == nullptr) {
131 return;
132 }
133 needEncodeNum++;
134 encoder->encodeRGBA(data->data(), stride, frameType);
135 if (needEncodeNum == 1) {
136 Q_EMIT getEncodeFrameSignal();
137 }
138}
139
140} // namespace exporter

Callers

nothing calls this directly

Calls 2

encodeRGBAMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected