xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Typedefs | 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/input_plugin.h>
#include <xine/mfrag.h>
#include "xine_private.h"

Data Structures

struct  rip_input_plugin_s
 

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   512
 
#define SEEK_TIMEOUT   2.5
 

Typedefs

typedef struct rip_input_plugin_s rip_input_plugin_t
 

Functions

static ssize_t rip_read_file_read_1a (rip_input_plugin_t *this, char *buf, size_t len)
 
static ssize_t rip_read_file_read_1b (rip_input_plugin_t *this, char *buf, size_t len)
 
static ssize_t rip_read_file_read_2 (rip_input_plugin_t *this, char *buf, size_t len)
 
static int rip_read_file_start (rip_input_plugin_t *this, off_t offs1)
 
static void rip_read_file_set_2 (rip_input_plugin_t *this)
 
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 len)
 
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)
 
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   512

◆ SCRATCH_SIZE

#define SCRATCH_SIZE   1024

Referenced by rip_plugin_seek().

◆ SEEK_TIMEOUT

#define SEEK_TIMEOUT   2.5

Referenced by rip_plugin_seek().

Typedef Documentation

◆ rip_input_plugin_t

Function Documentation

◆ _x_rip_plugin_get_instance()

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

◆ 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

◆ 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 len )
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

◆ rip_read_file_read_1a()

static ssize_t rip_read_file_read_1a ( rip_input_plugin_t * this,
char * buf,
size_t len )
static

◆ rip_read_file_read_1b()

static ssize_t rip_read_file_read_1b ( rip_input_plugin_t * this,
char * buf,
size_t len )
static

◆ rip_read_file_read_2()

static ssize_t rip_read_file_read_2 ( rip_input_plugin_t * this,
char * buf,
size_t len )
static

◆ rip_read_file_set_2()

static void rip_read_file_set_2 ( rip_input_plugin_t * this)
static

◆ rip_read_file_start()

static int rip_read_file_start ( rip_input_plugin_t * this,
off_t offs1 )
static

◆ rip_seek_original()

static off_t rip_seek_original ( rip_input_plugin_t * this,
off_t reqpos )
static