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

Function ValidatePAGFile

exporter/src/export/PAGExport.cpp:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43static bool ValidatePAGFile(uint8_t* data, size_t size) {
44 auto pagFileDecoded = pag::File::Load(data, size);
45 if (pagFileDecoded == nullptr) {
46 return false;
47 }
48 auto bytes = pag::Codec::Encode(pagFileDecoded);
49 if (bytes->length() != size) {
50 LOGI("warning: bytes->length(%zu) != data.size(%zu)", bytes->length(), size);
51 }
52
53 return true;
54}
55
56template <typename T>
57static void AdjustSequenceCompositionSize(pag::Composition* mainComposition) {

Callers 1

exportFileMethod · 0.85

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected