xine-lib 1.2.11
Data Structures | Macros | Functions
input_rip.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <xine/xine_internal.h>
#include "xine_private.h"

Data Structures

struct  rip_input_plugin_t
 

Macros

#define LOG_MODULE   "input_rip"
 
#define LOG_VERBOSE
 
#define CLR_FAIL   "\x1b[1;31m"
 
#define CLR_RST   "\x1b[0;39m"
 
#define fseeko   fseek
 
#define SCRATCH_SIZE   1024
 
#define MAX_TARGET_LEN   256
 
#define MAX_TARGET_LEN_SUFFIXED   (MAX_TARGET_LEN + 16)
 
#define SEEK_TIMEOUT   2.5
 

Functions

static off_t min_off (off_t a, off_t b)
 
static off_t rip_plugin_read (input_plugin_t *this_gen, void *buf_gen, off_t len)
 
static int rip_plugin_open (input_plugin_t *this_gen)
 
static uint32_t rip_plugin_get_capabilities (input_plugin_t *this_gen)
 
static buf_element_trip_plugin_read_block (input_plugin_t *this_gen, fifo_buffer_t *fifo, off_t todo)
 
static off_t rip_seek_original (rip_input_plugin_t *this, off_t reqpos)
 
static off_t rip_plugin_seek (input_plugin_t *this_gen, off_t offset, int origin)
 
static off_t rip_plugin_seek_time (input_plugin_t *this_gen, int time_offset, int origin)
 
static off_t rip_plugin_get_current_pos (input_plugin_t *this_gen)
 
static int rip_plugin_get_current_time (input_plugin_t *this_gen)
 
static off_t rip_plugin_get_length (input_plugin_t *this_gen)
 
static uint32_t rip_plugin_get_blocksize (input_plugin_t *this_gen)
 
static const char * rip_plugin_get_mrl (input_plugin_t *this_gen)
 
static int rip_plugin_get_optional_data (input_plugin_t *this_gen, void *data, int data_type)
 
static void rip_plugin_dispose (input_plugin_t *this_gen)
 
static int dir_file_concat (char *target, size_t maxlen, const char *dir, const char *name)
 
input_plugin_t_x_rip_plugin_get_instance (xine_stream_t *stream, const char *filename)
 

Macro Definition Documentation

◆ CLR_FAIL

#define CLR_FAIL   "\x1b[1;31m"

◆ CLR_RST

#define CLR_RST   "\x1b[0;39m"

◆ fseeko

#define fseeko   fseek

◆ LOG_MODULE

#define LOG_MODULE   "input_rip"

◆ LOG_VERBOSE

#define LOG_VERBOSE

◆ MAX_TARGET_LEN

#define MAX_TARGET_LEN   256

◆ MAX_TARGET_LEN_SUFFIXED

#define MAX_TARGET_LEN_SUFFIXED   (MAX_TARGET_LEN + 16)

◆ SCRATCH_SIZE

#define SCRATCH_SIZE   1024

◆ SEEK_TIMEOUT

#define SEEK_TIMEOUT   2.5

Function Documentation

◆ _x_rip_plugin_get_instance()

input_plugin_t * _x_rip_plugin_get_instance ( xine_stream_t stream,
const char *  filename 
)

◆ dir_file_concat()

static int dir_file_concat ( char *  target,
size_t  maxlen,
const char *  dir,
const char *  name 
)
static

References name.

Referenced by _x_rip_plugin_get_instance().

◆ min_off()

static off_t min_off ( off_t  a,
off_t  b 
)
static

◆ rip_plugin_dispose()

static void rip_plugin_dispose ( input_plugin_t this_gen)
static

◆ rip_plugin_get_blocksize()

static uint32_t rip_plugin_get_blocksize ( input_plugin_t this_gen)
static

◆ rip_plugin_get_capabilities()

static uint32_t rip_plugin_get_capabilities ( input_plugin_t this_gen)
static

◆ rip_plugin_get_current_pos()

static off_t rip_plugin_get_current_pos ( input_plugin_t this_gen)
static

◆ rip_plugin_get_current_time()

static int rip_plugin_get_current_time ( input_plugin_t this_gen)
static

◆ rip_plugin_get_length()

static off_t rip_plugin_get_length ( input_plugin_t this_gen)
static

◆ rip_plugin_get_mrl()

static const char * rip_plugin_get_mrl ( input_plugin_t this_gen)
static

◆ rip_plugin_get_optional_data()

static int rip_plugin_get_optional_data ( input_plugin_t this_gen,
void *  data,
int  data_type 
)
static

◆ rip_plugin_open()

static int rip_plugin_open ( input_plugin_t this_gen)
static

References _, xine_log(), and XINE_LOG_MSG.

Referenced by _x_rip_plugin_get_instance().

◆ rip_plugin_read()

static off_t rip_plugin_read ( input_plugin_t this_gen,
void *  buf_gen,
off_t  len 
)
static

◆ rip_plugin_read_block()

static buf_element_t * rip_plugin_read_block ( input_plugin_t this_gen,
fifo_buffer_t fifo,
off_t  todo 
)
static

◆ rip_plugin_seek()

static off_t rip_plugin_seek ( input_plugin_t this_gen,
off_t  offset,
int  origin 
)
static

◆ rip_plugin_seek_time()

static off_t rip_plugin_seek_time ( input_plugin_t this_gen,
int  time_offset,
int  origin 
)
static

References lprintf.

Referenced by _x_rip_plugin_get_instance().

◆ rip_seek_original()

static off_t rip_seek_original ( rip_input_plugin_t this,
off_t  reqpos 
)
static

References _, CLR_FAIL, CLR_RST, lprintf, xine_log(), and XINE_LOG_MSG.

Referenced by rip_plugin_seek().