libragephoto: update C API
RagePhotoA: add new C API functions RagePhotoC: add ragephotodata_clear(), ragephotodata_load(), ragephotodata_getsavesize(), ragephotodata_getsavesizef(), ragephotodata_setbufferdefault(), ragephotodata_setbufferoffsets()
This commit is contained in:
parent
e51d50f77e
commit
9807f0d696
3 changed files with 96 additions and 2 deletions
|
@ -1171,12 +1171,22 @@ void ragephoto_clear(ragephoto_t instance)
|
|||
ragePhoto->clear();
|
||||
}
|
||||
|
||||
void ragephotodata_clear(RagePhotoData *rp_data)
|
||||
{
|
||||
RagePhoto::clear(rp_data);
|
||||
}
|
||||
|
||||
ragephoto_bool_t ragephoto_load(ragephoto_t instance, const char *data, size_t size)
|
||||
{
|
||||
RagePhoto *ragePhoto = static_cast<RagePhoto*>(instance);
|
||||
return ragePhoto->load(data, size);
|
||||
}
|
||||
|
||||
ragephoto_bool_t ragephotodata_load(RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser, const char *data, size_t size)
|
||||
{
|
||||
return RagePhoto::load(rp_data, rp_parser, data, size);
|
||||
}
|
||||
|
||||
ragephoto_bool_t ragephoto_loadfile(ragephoto_t instance, const char *filename)
|
||||
{
|
||||
RagePhoto *ragePhoto = static_cast<RagePhoto*>(instance);
|
||||
|
@ -1263,12 +1273,22 @@ size_t ragephoto_getsavesize(ragephoto_t instance)
|
|||
return ragePhoto->saveSize();
|
||||
}
|
||||
|
||||
size_t ragephotodata_getsavesize(RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser)
|
||||
{
|
||||
return RagePhoto::saveSize(rp_data, rp_parser);
|
||||
}
|
||||
|
||||
size_t ragephoto_getsavesizef(ragephoto_t instance, uint32_t photoFormat)
|
||||
{
|
||||
RagePhoto *ragePhoto = static_cast<RagePhoto*>(instance);
|
||||
return ragePhoto->saveSize(photoFormat);
|
||||
}
|
||||
|
||||
size_t ragephotodata_getsavesizef(RagePhotoData *rp_data, RagePhotoFormatParser *rp_parser, uint32_t photoFormat)
|
||||
{
|
||||
return RagePhoto::saveSize(rp_data, rp_parser, photoFormat);
|
||||
}
|
||||
|
||||
ragephoto_bool_t ragephoto_save(ragephoto_t instance, char *data)
|
||||
{
|
||||
RagePhoto *ragePhoto = static_cast<RagePhoto*>(instance);
|
||||
|
@ -1299,12 +1319,22 @@ void ragephoto_setbufferdefault(ragephoto_t instance)
|
|||
ragePhoto->setBufferDefault();
|
||||
}
|
||||
|
||||
void ragephotodata_setbufferdefault(RagePhotoData *rp_data)
|
||||
{
|
||||
RagePhoto::setBufferDefault(rp_data);
|
||||
}
|
||||
|
||||
void ragephoto_setbufferoffsets(ragephoto_t instance)
|
||||
{
|
||||
RagePhoto *ragePhoto = static_cast<RagePhoto*>(instance);
|
||||
ragePhoto->setBufferOffsets();
|
||||
}
|
||||
|
||||
void ragephotodata_setbufferoffsets(RagePhotoData *rp_data)
|
||||
{
|
||||
RagePhoto::setBufferOffsets(rp_data);
|
||||
}
|
||||
|
||||
ragephoto_bool_t ragephoto_setphotodata(ragephoto_t instance, RagePhotoData *rp_data)
|
||||
{
|
||||
RagePhoto *ragePhoto = static_cast<RagePhoto*>(instance);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue