libragephoto: add ragephoto_getphotosigns function

- rename libragephoto.py to libragephoto_loader.py
- enforce set CXX standard for WASM build
This commit is contained in:
Syping 2024-03-25 13:06:14 +01:00
parent 1b7c95e735
commit dd60f8d0b7
8 changed files with 53 additions and 18 deletions

View file

@ -1,6 +1,6 @@
/*****************************************************************************
* libragephoto RAGE Photo Parser
* Copyright (C) 2021-2023 Syping
* Copyright (C) 2021-2024 Syping
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
@ -697,6 +697,16 @@ uint64_t ragephoto_getphotosign(ragephoto_t instance_t)
return ragephotodata_getphotosignf(instance->data, instance->data->photoFormat);
}
void ragephoto_getphotosigns(ragephoto_t instance, char *data, size_t size)
{
snprintf(data, size, "%" PRIu64, ragephoto_getphotosign(instance));
}
void ragephoto_getphotosignsf(ragephoto_t instance, char *data, size_t size, uint32_t photoFormat)
{
snprintf(data, size, "%" PRIu64, ragephoto_getphotosignf(instance, photoFormat));
}
uint32_t ragephoto_getphotosize(ragephoto_t instance_t)
{
RagePhotoInstance *instance = (RagePhotoInstance*)instance_t;