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

Function GetFrameType

exporter/src/export/sequence/VideoSequence.cpp:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165static FrameType GetFrameType(bool currentFrameIsStatic, bool lastFrameIsStatic,
166 bool currentFrameIsVisible, bool lastFrameIsVisible) {
167 if (!currentFrameIsStatic && lastFrameIsStatic) {
168 return FrameType::FRAME_TYPE_I;
169 }
170 if (currentFrameIsVisible != lastFrameIsVisible) {
171 return FrameType::FRAME_TYPE_I;
172 }
173 if (!currentFrameIsVisible) {
174 return FrameType::FRAME_TYPE_P;
175 }
176 return FrameType::FRAME_TYPE_AUTO;
177}
178
179static void GetVideoSequence(std::shared_ptr<PAGExportSession> session,
180 pag::VideoComposition* composition, float compositionFactor, int left,

Callers 1

GetVideoSequenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected