180 #define CHD_HEADER_VERSION 5 181 #define CHD_V1_HEADER_SIZE 76 182 #define CHD_V2_HEADER_SIZE 80 183 #define CHD_V3_HEADER_SIZE 120 184 #define CHD_V4_HEADER_SIZE 108 185 #define CHD_V5_HEADER_SIZE 124 187 #define CHD_MAX_HEADER_SIZE CHD_V5_HEADER_SIZE 190 #define CHD_MD5_BYTES 16 191 #define CHD_SHA1_BYTES 20 194 #define CHDFLAGS_HAS_PARENT 0x00000001 195 #define CHDFLAGS_IS_WRITEABLE 0x00000002 196 #define CHDFLAGS_UNDEFINED 0xfffffffc 199 #define CHDCOMPRESSION_NONE 0 200 #define CHDCOMPRESSION_ZLIB 1 201 #define CHDCOMPRESSION_ZLIB_PLUS 2 202 #define CHDCOMPRESSION_AV 3 205 #define AV_CODEC_COMPRESS_CONFIG 1 206 #define AV_CODEC_DECOMPRESS_CONFIG 2 209 #define CHDMETATAG_WILDCARD 0 210 #define CHD_METAINDEX_APPEND ((UINT32)-1) 213 #define CHD_MDFLAGS_CHECKSUM 0x01 216 #define HARD_DISK_METADATA_TAG 0x47444444 217 #define HARD_DISK_METADATA_FORMAT "CYLS:%d,HEADS:%d,SECS:%d,BPS:%d" 220 #define HARD_DISK_IDENT_METADATA_TAG 0x49444e54 223 #define HARD_DISK_KEY_METADATA_TAG 0x4b455920 226 #define PCMCIA_CIS_METADATA_TAG 0x43495320 229 #define CDROM_OLD_METADATA_TAG 0x43484344 230 #define CDROM_TRACK_METADATA_TAG 0x43485452 231 #define CDROM_TRACK_METADATA_FORMAT "TRACK:%d TYPE:%s SUBTYPE:%s FRAMES:%d" 232 #define CDROM_TRACK_METADATA2_TAG 0x43485432 233 #define CDROM_TRACK_METADATA2_FORMAT "TRACK:%d TYPE:%s SUBTYPE:%s FRAMES:%d PREGAP:%d PGTYPE:%s PGSUB:%s POSTGAP:%d" 234 #define GDROM_TRACK_METADATA_TAG 0x43484744 235 #define GDROM_TRACK_METADATA_FORMAT "TRACK:%d TYPE:%s SUBTYPE:%s FRAMES:%d PAD:%d PREGAP:%d PGTYPE:%s PGSUB:%s POSTGAP:%d" 238 #define AV_METADATA_TAG 0x41564156 239 #define AV_METADATA_FORMAT "FPS:%d.%06d WIDTH:%d HEIGHT:%d INTERLACED:%d CHANNELS:%d SAMPLERATE:%d" 242 #define AV_LD_METADATA_TAG 0x41564C44 245 #define CHD_OPEN_READ 1 246 #define CHD_OPEN_READWRITE 2
UINT32 obsolete_hunksize
Definition: chd.h:321
UINT8 md5[CHD_MD5_BYTES]
Definition: chd.h:305
const uint8_t s_cd_sync_header[12]
GLenum mode
Definition: glext.h:6857
UINT32 flags
Definition: chd.h:298
chd_error chd_read(chd_file *chd, UINT32 hunknum, void *buffer)
Definition: libchdr_chd.c:1168
UINT32 compression[4]
Definition: chd.h:299
UINT32 unitbytes
Definition: chd.h:310
UINT8 * rawmap
Definition: chd.h:316
const char * chd_error_string(chd_error err)
Definition: libchdr_chd.c:1105
UINT32 obsolete_heads
Definition: chd.h:320
uint64_t UINT64
Definition: coretypes.h:8
UINT8 md5[CHD_MD5_BYTES]
Definition: chd.h:329
enum _chd_error chd_error
Definition: chd.h:280
chd_error chd_precache(chd_file *chd)
Definition: libchdr_chd.c:979
UINT8 metasha1[CHD_SHA1_BYTES]
Definition: chd.h:332
UINT32 mapentrybytes
Definition: chd.h:315
Definition: file_stream.c:53
chd_error chd_open_file(RFILE *file, int mode, chd_file *parent, chd_file **chd)
Definition: libchdr_chd.c:754
UINT32 obsolete_sectors
Definition: chd.h:319
const char * chd_get_codec_name(UINT32 codec)
Definition: libchdr_chd.c:1256
#define CHD_SHA1_BYTES
Definition: chd.h:191
UINT8 sha1[CHD_SHA1_BYTES]
Definition: chd.h:307
GLfloat param
Definition: glext.h:6480
UINT32 obsolete_cylinders
Definition: chd.h:318
UINT32 version
Definition: chd.h:297
_chd_error
Definition: chd.h:249
chd_error chd_get_metadata(chd_file *chd, UINT32 searchtag, UINT32 searchindex, void *output, UINT32 outputlen, UINT32 *resultlen, UINT32 *resulttag, UINT8 *resultflags)
Definition: libchdr_chd.c:1187
UINT64 metaoffset
Definition: chd.h:303
RFILE * chd_core_file(chd_file *chd)
Definition: libchdr_chd.c:1095
void chd_close(chd_file *chd)
Definition: libchdr_chd.c:1009
UINT32 totalhunks
Definition: chd.h:301
UINT32 hunkcount
Definition: chd.h:312
UINT8 sha1[CHD_SHA1_BYTES]
Definition: chd.h:330
Definition: deflate.c:120
Definition: libchdr_chd.c:194
chd_error chd_codec_config(chd_file *chd, int param, void *config)
Definition: libchdr_chd.c:1246
uint32_t UINT32
Definition: coretypes.h:10
std::string output
Definition: Config.FromFile.cpp:44
UINT8 parentmd5[CHD_MD5_BYTES]
Definition: chd.h:306
UINT64 mapoffset
Definition: chd.h:304
UINT8 rawsha1[CHD_SHA1_BYTES]
Definition: chd.h:308
UINT32 hunkbytes
Definition: chd.h:300
UINT8 parentsha1[CHD_SHA1_BYTES]
Definition: chd.h:309
UINT32 length
Definition: chd.h:296
UINT64 logicalbytes
Definition: chd.h:302
Definition: civetweb.c:1024
Definition: video4linux2.c:51
#define CHD_MD5_BYTES
Definition: chd.h:190
const chd_header * chd_get_header(chd_file *chd)
Definition: libchdr_chd.c:1150
unsigned char uint8_t
Definition: stdint.h:124
UINT8 rawsha1[CHD_SHA1_BYTES]
Definition: chd.h:331
chd_error chd_open(const char *filename, int mode, chd_file *parent, chd_file **chd)
Definition: libchdr_chd.c:938
uint8_t UINT8
Definition: coretypes.h:12
UINT64 unitcount
Definition: chd.h:311