Implement CD ECC and EDC.

This commit is contained in:
2019-03-23 22:59:36 +00:00
parent 4085cb004c
commit e8fd8f57dc
6 changed files with 489 additions and 2 deletions

View File

@@ -38,6 +38,7 @@
#pragma pack(push, 1)
#include <stdint.h>
#include <stdbool.h>
#include <dic.h>
#include "enums.h"
@@ -309,6 +310,14 @@ typedef struct Crc64Context
uint64_t hashInt;
} Crc64Context;
typedef struct CdEccContext
{
bool initedEdc;
uint8_t *eccBTable;
uint8_t *eccFTable;
uint32_t *edcTable;
} CdEccContext;
#pragma pack(pop)
#endif //LIBDICFORMAT_STRUCTS_H