|
xine-lib
1.2.9
|
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_t * | nbc_init (xine_stream_t *stream) |
| void | nbc_close (nbc_t *this) |
| #define DEFAULT_HIGH_WATER_MARK 5000 /* in 1/1000 s */ |
Referenced by nbc_init().
| #define FIFO_GET 1 |
Referenced by nbc_get_cb().
| #define FIFO_PUT 0 |
Referenced by nbc_compute_fifo_length(), and nbc_put_cb().
| #define FULL_FIFO_MARK 5 /* buffers free */ |
Referenced by nbc_get_cb().
| #define LOG_MODULE "net_buf_ctrl" |
| #define LOG_VERBOSE |
|
static |
References enabled, and isatty().
Referenced by nbc_get_cb(), and nbc_put_cb().
|
static |
References _x_set_fine_speed(), XINE_FINE_SPEED_NORMAL, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by nbc_put_cb().
|
static |
References _x_set_fine_speed(), BUF_AUDIO_BASE, BUF_MAJOR_MASK, BUF_VIDEO_BASE, fifo_buffer_s::fifo_size, mode(), name, buf_element_s::pts, buf_element_s::type, XINE_FINE_SPEED_NORMAL, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by nbc_get_cb().
|
static |
References xine_s::config, xine_cfg_entry_s::num_value, config_values_s::update_num, xine_config_lookup_entry(), XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by nbc_put_cb().
|
static |
References _x_get_fine_speed(), _x_set_fine_speed(), BUF_AUDIO_BASE, BUF_MAJOR_MASK, BUF_VIDEO_BASE, fifo_buffer_s::buffer_pool_capacity, fifo_buffer_s::fifo_size, mode(), name, buf_element_s::pts, buf_element_s::type, XINE_FINE_SPEED_NORMAL, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by nbc_put_cb().
|
static |
References fifo_buffer_s::buffer_pool_num_free, enabled, lprintf, nbc_set_speed_normal(), report_progress(), XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by nbc_close(), and nbc_init().
| void nbc_close | ( | nbc_t * | this | ) |
References CLOCK_SCR_ADJUSTABLE, nbc_alloc_cb(), nbc_get_cb(), nbc_put_cb(), fifo_buffer_s::unregister_alloc_cb, fifo_buffer_s::unregister_get_cb, fifo_buffer_s::unregister_put_cb, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by dvb_plugin_dispose(), gnomevfs_plugin_dispose(), http_plugin_dispose(), mms_plugin_dispose(), net_plugin_dispose(), pnm_plugin_dispose(), rtp_plugin_dispose(), rtsp_plugin_dispose(), and stdin_plugin_dispose().
|
static |
References _x_stream_info_get(), fifo_buffer_s::buffer_pool_num_free, fifo_buffer_s::fifo_data_size, FIFO_PUT, fifo_buffer_s::fifo_size, buf_element_s::pts, XINE_STREAM_INFO_AUDIO_BITRATE, XINE_STREAM_INFO_HAS_AUDIO, XINE_STREAM_INFO_HAS_VIDEO, and XINE_STREAM_INFO_VIDEO_BITRATE.
Referenced by nbc_get_cb(), and nbc_put_cb().
|
static |
References _x_stream_info_get(), BUF_CONTROL_BASE, BUF_CONTROL_NEWPTS, BUF_MAJOR_MASK, fifo_buffer_s::buffer_pool_num_free, display_stats(), dvbspeed_get(), enabled, fifo_buffer_s::fifo_data_size, FIFO_GET, FULL_FIFO_MARK, lprintf, nbc_compute_fifo_length(), nbc_set_speed_pause(), report_progress(), report_stats(), buf_element_s::type, XINE_STREAM_INFO_HAS_AUDIO, XINE_STREAM_INFO_HAS_VIDEO, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by nbc_close(), and nbc_init().
| nbc_t* nbc_init | ( | xine_stream_t * | stream | ) |
References _x_assert, xine_stream_s::audio_fifo, fifo_buffer_s::buffer_pool_capacity, xine_s::config, DEFAULT_HIGH_WATER_MARK, config_values_s::lookup_entry, lprintf, nbc_alloc_cb(), nbc_get_cb(), nbc_put_cb(), NULL, cfg_entry_s::num_default, fifo_buffer_s::register_alloc_cb, fifo_buffer_s::register_get_cb, fifo_buffer_s::register_put_cb, xine_stream_s::video_fifo, and xine_stream_s::xine.
Referenced by dvb_class_get_instance(), gnomevfs_klass_get_instance(), http_class_get_instance(), mms_class_get_instance(), net_class_get_instance(), pnm_class_get_instance(), rtp_class_get_instance(), rtsp_class_get_instance(), and stdin_class_get_instance().
|
static |
References _x_stream_info_get(), BUF_CONTROL_BASE, BUF_CONTROL_END, BUF_CONTROL_NEWPTS, BUF_CONTROL_NOP, BUF_CONTROL_QUIT, BUF_CONTROL_START, BUF_FLAG_END_STREAM, BUF_FLAG_END_USER, BUF_MAJOR_MASK, fifo_buffer_s::buffer_pool_num_free, buf_element_s::decoder_flags, display_stats(), dvbspeed_close(), dvbspeed_init(), dvbspeed_put(), enabled, fifo_buffer_s::fifo_data_size, FIFO_PUT, lprintf, nbc_compute_fifo_length(), nbc_set_speed_normal(), nbc_set_speed_pause(), report_progress(), report_stats(), buf_element_s::type, XINE_STREAM_INFO_HAS_AUDIO, XINE_STREAM_INFO_HAS_VIDEO, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by nbc_close(), and nbc_init().
|
static |
References _x_set_speed(), xine_s::clock, CLOCK_SCR_ADJUSTABLE, metronom_clock_s::set_option, xine_stream_s::xine, XINE_SPEED_NORMAL, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by nbc_alloc_cb(), and nbc_put_cb().
|
static |
References _x_set_speed(), xine_s::clock, CLOCK_SCR_ADJUSTABLE, metronom_clock_s::set_option, xine_stream_s::xine, XINE_SPEED_PAUSE, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by nbc_get_cb(), and nbc_put_cb().
|
static |
References _, xine_progress_data_t::description, xine_progress_data_t::percent, XINE_EVENT_PROGRESS, and xine_event_send().
Referenced by nbc_alloc_cb(), nbc_get_cb(), and nbc_put_cb().
|
static |
References xine_nbc_stats_data_t::a_bitrate, xine_nbc_stats_data_t::a_in_disc, xine_nbc_stats_data_t::a_percent, xine_nbc_stats_data_t::a_remaining, xine_nbc_stats_data_t::buffering, enabled, xine_nbc_stats_data_t::enabled, xine_nbc_stats_data_t::type, xine_nbc_stats_data_t::v_bitrate, xine_nbc_stats_data_t::v_in_disc, xine_nbc_stats_data_t::v_percent, xine_nbc_stats_data_t::v_remaining, XINE_EVENT_NBC_STATS, and xine_event_send().
Referenced by nbc_get_cb(), and nbc_put_cb().
1.8.14