| 41 | } |
| 42 | |
| 43 | static 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 | |
| 56 | template <typename T> |
| 57 | static void AdjustSequenceCompositionSize(pag::Composition* mainComposition) { |