RetroArch
Classes | Macros | Typedefs | Functions
chd_stream.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <boolean.h>
#include <streams/chd_stream.h>
#include <retro_endianness.h>
#include <libchdr/chd.h>
Include dependency graph for chd_stream.c:

Classes

struct  chdstream
 
struct  metadata
 

Macros

#define SECTOR_SIZE   2352
 
#define SUBCODE_SIZE   96
 
#define TRACK_PAD   4
 

Typedefs

typedef struct metadata metadata_t
 

Functions

static uint32_t padding_frames (uint32_t frames)
 
static bool chdstream_get_meta (chd_file *chd, int idx, metadata_t *md)
 
static bool chdstream_find_track_number (chd_file *fd, int32_t track, metadata_t *meta)
 
static bool chdstream_find_special_track (chd_file *fd, int32_t track, metadata_t *meta)
 
static bool chdstream_find_track (chd_file *fd, int32_t track, metadata_t *meta)
 
chdstream_tchdstream_open (const char *path, int32_t track)
 
void chdstream_close (chdstream_t *stream)
 
static bool chdstream_load_hunk (chdstream_t *stream, uint32_t hunknum)
 
ssize_t chdstream_read (chdstream_t *stream, void *data, size_t bytes)
 
int chdstream_getc (chdstream_t *stream)
 
char * chdstream_gets (chdstream_t *stream, char *buffer, size_t len)
 
uint64_t chdstream_tell (chdstream_t *stream)
 
void chdstream_rewind (chdstream_t *stream)
 
int64_t chdstream_seek (chdstream_t *stream, int64_t offset, int whence)
 
ssize_t chdstream_get_size (chdstream_t *stream)
 

Macro Definition Documentation

◆ SECTOR_SIZE

#define SECTOR_SIZE   2352

◆ SUBCODE_SIZE

#define SUBCODE_SIZE   96

◆ TRACK_PAD

#define TRACK_PAD   4

Typedef Documentation

◆ metadata_t

typedef struct metadata metadata_t

Function Documentation

◆ chdstream_close()

void chdstream_close ( chdstream_t stream)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chdstream_find_special_track()

static bool chdstream_find_special_track ( chd_file fd,
int32_t  track,
metadata_t meta 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chdstream_find_track()

static bool chdstream_find_track ( chd_file fd,
int32_t  track,
metadata_t meta 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chdstream_find_track_number()

static bool chdstream_find_track_number ( chd_file fd,
int32_t  track,
metadata_t meta 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chdstream_get_meta()

static bool chdstream_get_meta ( chd_file chd,
int  idx,
metadata_t md 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chdstream_get_size()

ssize_t chdstream_get_size ( chdstream_t stream)
Here is the caller graph for this function:

◆ chdstream_getc()

int chdstream_getc ( chdstream_t stream)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chdstream_gets()

char* chdstream_gets ( chdstream_t stream,
char *  buffer,
size_t  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chdstream_load_hunk()

static bool chdstream_load_hunk ( chdstream_t stream,
uint32_t  hunknum 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chdstream_open()

chdstream_t* chdstream_open ( const char *  path,
int32_t  track 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chdstream_read()

ssize_t chdstream_read ( chdstream_t stream,
void data,
size_t  bytes 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ chdstream_rewind()

void chdstream_rewind ( chdstream_t stream)
Here is the caller graph for this function:

◆ chdstream_seek()

int64_t chdstream_seek ( chdstream_t stream,
int64_t  offset,
int  whence 
)
Here is the caller graph for this function:

◆ chdstream_tell()

uint64_t chdstream_tell ( chdstream_t stream)
Here is the caller graph for this function:

◆ padding_frames()

static uint32_t padding_frames ( uint32_t  frames)
static
Here is the caller graph for this function: