xine-lib  1.2.9
Data Structures | Macros | Functions
nsf_demuxer.c File Reference
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/compat.h>
#include <xine/demux.h>
#include "bswap.h"
#include "nsf_combined.h"

Data Structures

struct  demux_nsf_t
 
struct  demux_nsf_class_t
 

Macros

#define LOG_MODULE   "demux_nsf"
 
#define NSF_HEADER_SIZE   0x80
 
#define NSF_SAMPLERATE   44100
 
#define NSF_BITS   8
 
#define NSF_CHANNELS   1
 
#define NSF_REFRESH_RATE   60
 
#define NSF_PTS_INC   (90000 / NSF_REFRESH_RATE)
 

Functions

static int open_nsf_file (demux_nsf_t *this)
 
static int demux_nsf_send_chunk (demux_plugin_t *this_gen)
 
static void demux_nsf_send_headers (demux_plugin_t *this_gen)
 
static int demux_nsf_seek (demux_plugin_t *this_gen, off_t start_pos, int start_time, int playing)
 
static void demux_nsf_dispose (demux_plugin_t *this_gen)
 
static int demux_nsf_get_status (demux_plugin_t *this_gen)
 
static int demux_nsf_get_stream_length (demux_plugin_t *this_gen)
 
static uint32_t demux_nsf_get_capabilities (demux_plugin_t *this_gen)
 
static int demux_nsf_get_optional_data (demux_plugin_t *this_gen, void *data, int data_type)
 
static demux_plugin_topen_plugin (demux_class_t *class_gen, xine_stream_t *stream, input_plugin_t *input)
 
void * demux_nsf_init_plugin (xine_t *xine, void *data)
 

Macro Definition Documentation

◆ LOG_MODULE

#define LOG_MODULE   "demux_nsf"

◆ NSF_BITS

#define NSF_BITS   8

Referenced by demux_nsf_send_headers().

◆ NSF_CHANNELS

#define NSF_CHANNELS   1

Referenced by demux_nsf_send_headers().

◆ NSF_HEADER_SIZE

#define NSF_HEADER_SIZE   0x80

Referenced by open_nsf_file().

◆ NSF_PTS_INC

#define NSF_PTS_INC   (90000 / NSF_REFRESH_RATE)

Referenced by demux_nsf_send_chunk().

◆ NSF_REFRESH_RATE

#define NSF_REFRESH_RATE   60

◆ NSF_SAMPLERATE

#define NSF_SAMPLERATE   44100

Referenced by demux_nsf_send_headers().

Function Documentation

◆ demux_nsf_dispose()

static void demux_nsf_dispose ( demux_plugin_t this_gen)
static

Referenced by open_plugin().

◆ demux_nsf_get_capabilities()

static uint32_t demux_nsf_get_capabilities ( demux_plugin_t this_gen)
static

References DEMUX_CAP_NOCAP.

Referenced by open_plugin().

◆ demux_nsf_get_optional_data()

static int demux_nsf_get_optional_data ( demux_plugin_t this_gen,
void *  data,
int  data_type 
)
static

References DEMUX_OPTIONAL_UNSUPPORTED.

Referenced by open_plugin().

◆ demux_nsf_get_status()

static int demux_nsf_get_status ( demux_plugin_t this_gen)
static

Referenced by open_plugin().

◆ demux_nsf_get_stream_length()

static int demux_nsf_get_stream_length ( demux_plugin_t this_gen)
static

Referenced by open_plugin().

◆ demux_nsf_init_plugin()

void* demux_nsf_init_plugin ( xine_t xine,
void *  data 
)

◆ demux_nsf_seek()

static int demux_nsf_seek ( demux_plugin_t this_gen,
off_t  start_pos,
int  start_time,
int  playing 
)
static

◆ demux_nsf_send_chunk()

static int demux_nsf_send_chunk ( demux_plugin_t this_gen)
static

◆ demux_nsf_send_headers()

static void demux_nsf_send_headers ( demux_plugin_t this_gen)
static

◆ open_nsf_file()

static int open_nsf_file ( demux_nsf_t this)
static

References input(), and NSF_HEADER_SIZE.

Referenced by open_plugin().

◆ open_plugin()

static demux_plugin_t* open_plugin ( demux_class_t class_gen,
xine_stream_t stream,
input_plugin_t input 
)
static