xine-lib  1.2.9
Data Structures | Macros | Functions
net_buf_ctrl.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include "net_buf_ctrl.h"

Data Structures

struct  nbc_s
 

Macros

#define LOG_MODULE   "net_buf_ctrl"
 
#define LOG_VERBOSE
 
#define DEFAULT_HIGH_WATER_MARK   5000 /* in 1/1000 s */
 
#define FULL_FIFO_MARK   5 /* buffers free */
 
#define FIFO_PUT   0
 
#define FIFO_GET   1
 

Functions

static void report_progress (xine_stream_t *stream, int p)
 
static void nbc_set_speed_pause (nbc_t *this)
 
static void nbc_set_speed_normal (nbc_t *this)
 
static void dvbspeed_init (nbc_t *this)
 
static void dvbspeed_close (nbc_t *this)
 
static void dvbspeed_put (nbc_t *this, fifo_buffer_t *fifo, buf_element_t *b)
 
static void dvbspeed_get (nbc_t *this, fifo_buffer_t *fifo, buf_element_t *b)
 
static void display_stats (nbc_t *this)
 
static void report_stats (nbc_t *this, int type)
 
static void nbc_compute_fifo_length (nbc_t *this, fifo_buffer_t *fifo, buf_element_t *buf, int action)
 
static void nbc_alloc_cb (fifo_buffer_t *fifo, void *this_gen)
 
static void nbc_put_cb (fifo_buffer_t *fifo, buf_element_t *buf, void *this_gen)
 
static void nbc_get_cb (fifo_buffer_t *fifo, buf_element_t *buf, void *this_gen)
 
nbc_tnbc_init (xine_stream_t *stream)
 
void nbc_close (nbc_t *this)
 

Macro Definition Documentation

◆ DEFAULT_HIGH_WATER_MARK

#define DEFAULT_HIGH_WATER_MARK   5000 /* in 1/1000 s */

Referenced by nbc_init().

◆ FIFO_GET

#define FIFO_GET   1

Referenced by nbc_get_cb().

◆ FIFO_PUT

#define FIFO_PUT   0

◆ FULL_FIFO_MARK

#define FULL_FIFO_MARK   5 /* buffers free */

Referenced by nbc_get_cb().

◆ LOG_MODULE

#define LOG_MODULE   "net_buf_ctrl"

◆ LOG_VERBOSE

#define LOG_VERBOSE

Function Documentation

◆ display_stats()

static void display_stats ( nbc_t this)
static

References enabled, and isatty().

Referenced by nbc_get_cb(), and nbc_put_cb().

◆ dvbspeed_close()

static void dvbspeed_close ( nbc_t this)
static

◆ dvbspeed_get()

static void dvbspeed_get ( nbc_t this,
fifo_buffer_t fifo,
buf_element_t b 
)
static

◆ dvbspeed_init()

static void dvbspeed_init ( nbc_t this)
static

◆ dvbspeed_put()

static void dvbspeed_put ( nbc_t this,
fifo_buffer_t fifo,
buf_element_t b 
)
static

◆ nbc_alloc_cb()

static void nbc_alloc_cb ( fifo_buffer_t fifo,
void *  this_gen 
)
static

◆ nbc_close()

void nbc_close ( nbc_t this)

◆ nbc_compute_fifo_length()

static void nbc_compute_fifo_length ( nbc_t this,
fifo_buffer_t fifo,
buf_element_t buf,
int  action 
)
static

◆ nbc_get_cb()

static void nbc_get_cb ( fifo_buffer_t fifo,
buf_element_t buf,
void *  this_gen 
)
static

◆ nbc_init()

nbc_t* nbc_init ( xine_stream_t stream)

◆ nbc_put_cb()

static void nbc_put_cb ( fifo_buffer_t fifo,
buf_element_t buf,
void *  this_gen 
)
static

◆ nbc_set_speed_normal()

static void nbc_set_speed_normal ( nbc_t this)
static

◆ nbc_set_speed_pause()

static void nbc_set_speed_pause ( nbc_t this)
static

◆ report_progress()

static void report_progress ( xine_stream_t stream,
int  p 
)
static

◆ report_stats()

static void report_stats ( nbc_t this,
int  type 
)
static