xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Functions
demux_roq.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 "group_games.h"

Data Structures

struct  demux_roq_t
 

Macros

#define LOG_MODULE   "demux_roq"
 
#define LOG_VERBOSE
 
#define RoQ_CHUNK_PREAMBLE_SIZE   8
 
#define RoQ_AUDIO_SAMPLE_RATE   22050
 
#define RoQ_INFO   0x1001
 
#define RoQ_QUAD_CODEBOOK   0x1002
 
#define RoQ_QUAD_VQ   0x1011
 
#define RoQ_SOUND_MONO   0x1020
 
#define RoQ_SOUND_STEREO   0x1021
 

Functions

static int open_roq_file (demux_roq_t *this)
 
static int demux_roq_send_chunk (demux_plugin_t *this_gen)
 
static void demux_roq_send_headers (demux_plugin_t *this_gen)
 
static int demux_roq_seek (demux_plugin_t *this_gen, off_t start_pos, int start_time, int playing)
 
static int demux_roq_get_status (demux_plugin_t *this_gen)
 
static int demux_roq_get_stream_length (demux_plugin_t *this_gen)
 
static uint32_t demux_roq_get_capabilities (demux_plugin_t *this_gen)
 
static int demux_roq_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_roq_init_plugin (xine_t *xine, const void *data)
 

Macro Definition Documentation

◆ LOG_MODULE

#define LOG_MODULE   "demux_roq"

◆ LOG_VERBOSE

#define LOG_VERBOSE

◆ RoQ_AUDIO_SAMPLE_RATE

#define RoQ_AUDIO_SAMPLE_RATE   22050

◆ RoQ_CHUNK_PREAMBLE_SIZE

#define RoQ_CHUNK_PREAMBLE_SIZE   8

◆ RoQ_INFO

#define RoQ_INFO   0x1001

◆ RoQ_QUAD_CODEBOOK

#define RoQ_QUAD_CODEBOOK   0x1002

Referenced by demux_roq_send_chunk().

◆ RoQ_QUAD_VQ

#define RoQ_QUAD_VQ   0x1011

Referenced by demux_roq_send_chunk().

◆ RoQ_SOUND_MONO

#define RoQ_SOUND_MONO   0x1020

◆ RoQ_SOUND_STEREO

#define RoQ_SOUND_STEREO   0x1021

Function Documentation

◆ demux_roq_get_capabilities()

static uint32_t demux_roq_get_capabilities ( demux_plugin_t * this_gen)
static

References DEMUX_CAP_NOCAP.

Referenced by open_plugin().

◆ demux_roq_get_optional_data()

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

References DEMUX_OPTIONAL_UNSUPPORTED.

Referenced by open_plugin().

◆ demux_roq_get_status()

static int demux_roq_get_status ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_roq_get_stream_length()

static int demux_roq_get_stream_length ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_roq_init_plugin()

void * demux_roq_init_plugin ( xine_t * xine,
const void * data )

◆ demux_roq_seek()

static int demux_roq_seek ( demux_plugin_t * this_gen,
off_t start_pos,
int start_time,
int playing )
static

◆ demux_roq_send_chunk()

static int demux_roq_send_chunk ( demux_plugin_t * this_gen)
static

◆ demux_roq_send_headers()

static void demux_roq_send_headers ( demux_plugin_t * this_gen)
static

◆ open_plugin()

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

◆ open_roq_file()

static int open_roq_file ( demux_roq_t * this)
static