Add Apple RLE algorithm.

This commit is contained in:
2021-10-14 04:37:48 +01:00
parent 05dbda33ab
commit 1a9a76b2d3
10 changed files with 371 additions and 8 deletions

27
apple_rle.h Normal file
View File

@@ -0,0 +1,27 @@
/*
* This file is part of the Aaru Data Preservation Suite.
* Copyright (c) 2019-2021 Natalia Portillo.
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AARU_CHECKSUMS_NATIVE__APPLE_RLE_H_
#define AARU_CHECKSUMS_NATIVE__APPLE_RLE_H_
#define DART_CHUNK 20960
AARU_EXPORT void AARU_CALL apple_rle_reset();
AARU_EXPORT int32_t AARU_CALL apple_rle_produce_byte(const uint8_t* buffer, int32_t length, int32_t* position);
#endif // AARU_CHECKSUMS_NATIVE__APPLE_RLE_H_