xine-lib 1.2.13-20230125hg15249
|
#include <stdlib.h>
#include <string.h>
#include <xine/attributes.h>
#include <xine/sorted_array.h>
#include <xine/os_types.h>
Data Structures | |
struct | xine_sarray_s |
Macros | |
#define | MIN_CHUNK_SIZE 64 |
#define MIN_CHUNK_SIZE 64 |
Referenced by _xine_sarray_insert(), and xine_sarray_new().
|
static |
Referenced by xine_sarray_new().
|
static |
References xine_sarray_s::add_here, xine_sarray_s::chunk, xine_sarray_s::comparator, xine_sarray_s::first_test, xine_sarray_s::hash, key, xine_sarray_s::start, and xine_sarray_s::stop.
Referenced by xine_sarray_new(), and xine_sarray_set_mode().
|
static |
References xine_sarray_s::add_here, xine_sarray_s::chunk, xine_sarray_s::comparator, xine_sarray_s::first_test, xine_sarray_s::hash, key, xine_sarray_s::start, and xine_sarray_s::stop.
Referenced by xine_sarray_set_mode().
|
static |
References xine_sarray_s::add_here, xine_sarray_s::chunk, xine_sarray_s::comparator, xine_sarray_s::first_test, xine_sarray_s::hash, key, xine_sarray_s::start, and xine_sarray_s::stop.
Referenced by xine_sarray_set_mode().
|
static |
References xine_sarray_s::hash, xine_sarray_s::size, xine_sarray_s::start, xine_sarray_s::stop, xine_sarray_s::table, xine_sarray_s::user_get, and xine_sarray_s::value.
Referenced by xine_sarray_set_hash().
|
static |
References xine_sarray_s::hash, xine_sarray_s::last_value, xine_sarray_s::size, xine_sarray_s::table, and xine_sarray_s::value.
Referenced by _xine_sarray_insert().
|
static |
References xine_sarray_s::hash, xine_sarray_s::size, xine_sarray_s::start, xine_sarray_s::stop, and xine_sarray_s::value.
Referenced by xine_sarray_new(), and xine_sarray_set_hash().
|
static |
References xine_sarray_s::get, xine_sarray_s::hash, xine_sarray_s::size, xine_sarray_s::table, and xine_sarray_s::value.
Referenced by xine_sarray_remove(), and xine_sarray_remove_ptr().
|
static |
int xine_sarray_add | ( | xine_sarray_t * | sarray, |
void * | value ) |
References _xine_sarray_insert(), xine_sarray_s::add_here, xine_sarray_s::first_test, xine_sarray_s::get, xine_sarray_s::hash, xine_sarray_s::last_add, xine_sarray_s::last_value, xine_sarray_s::same_dir, xine_sarray_s::start, xine_sarray_s::stop, xine_sarray_s::unique_test, and xine_sarray_s::value.
Referenced by _build_list_typed_plugins(), _decoder_priority_cb(), _insert_node(), config_insert(), config_validate(), load_plugin_list(), save_plugin_list(), video_overlay_add_event(), xine_event_select(), and xine_gl_extensions_load().
int xine_sarray_binary_search | ( | xine_sarray_t * | sarray, |
void * | key ) |
References xine_sarray_s::find, xine_sarray_s::first_test, xine_sarray_s::get, xine_sarray_s::hash, key, xine_sarray_s::start, and xine_sarray_s::stop.
Referenced by collect_plugins(), config_insert(), video_overlay_event(), xine_event_send(), and xine_gl_extensions_test().
void xine_sarray_clear | ( | xine_sarray_t * | sarray | ) |
References xine_sarray_s::hash, xine_sarray_s::last_add, xine_sarray_s::same_dir, xine_sarray_s::size, and xine_sarray_s::table.
Referenced by video_overlay_init(), and xine_event_select().
void xine_sarray_delete | ( | xine_sarray_t * | sarray | ) |
References xine_sarray_s::chunk, xine_sarray_s::default_chunk, xine_sarray_s::hash, and xine_sarray_s::table.
Referenced by _build_list_typed_plugins(), _new_catalog(), config_dispose(), dispose_plugin_list(), save_catalog(), video_overlay_dispose(), xine_event_queue_unref_unlock(), xine_event_select(), and xine_gl_extensions_unload().
void * xine_sarray_get | ( | xine_sarray_t * | sarray, |
unsigned int | position ) |
References xine_sarray_s::chunk, and NULL.
Referenced by _build_list_typed_plugins(), _get_demux_strings(), _get_input_class(), _load_required_plugins(), _unload_unref_plugins(), _x_find_demux_plugin(), _x_find_demux_plugin_by_name(), _x_find_demux_plugin_last_probe(), _x_find_input_plugin(), _x_find_module(), _x_load_audio_output_plugin(), _x_load_video_output_plugin(), collect_plugins(), config_insert(), config_validate(), dispose_plugin_list(), load_plugin_list(), map_decoder_list(), save_plugin_list(), video_overlay_event(), video_overlay_free_handle(), xine_get_autoplay_input_plugin_ids(), xine_get_browsable_input_plugin_ids(), xine_get_demux_for_mime_type(), xine_list_post_plugins_typed(), xine_new_framegrab_video_port(), xine_open_audio_driver(), and xine_post_init().
void xine_sarray_move_location | ( | xine_sarray_t * | sarray, |
void * | new_ptr, | ||
unsigned int | position ) |
References xine_sarray_s::chunk, xine_sarray_s::last_add, xine_sarray_s::same_dir, and xine_sarray_s::size.
Referenced by config_insert().
xine_sarray_t * xine_sarray_new | ( | size_t | initial_size, |
xine_sarray_comparator_t | comparator ) |
References _xine_sarray_dummy_comp(), _xine_sarray_find_default(), _xine_sarray_hash_none(), xine_sarray_s::add_here, xine_sarray_s::chunk, xine_sarray_s::chunk_size, xine_sarray_s::comparator, xine_sarray_s::default_chunk, xine_sarray_s::find, xine_sarray_s::get, xine_sarray_s::hash, xine_sarray_s::last_add, xine_sarray_s::last_value, MIN_CHUNK_SIZE, xine_sarray_s::mode, NULL, xine_sarray_s::same_dir, xine_sarray_s::size, xine_sarray_s::start, xine_sarray_s::stop, xine_sarray_s::table, xine_sarray_s::unique_test, xine_sarray_s::user_get, xine_sarray_s::value, and XINE_SARRAY_MODE_DEFAULT.
Referenced by _build_list_typed_plugins(), _new_catalog(), _x_config_init(), _x_video_overlay_new_manager(), save_catalog(), xine_event_select(), and xine_gl_extensions_load().
void * xine_sarray_remove | ( | xine_sarray_t * | sarray, |
unsigned int | position ) |
References _xine_sarray_hash_remove(), xine_sarray_s::chunk, xine_sarray_s::last_add, NULL, xine_sarray_s::same_dir, and xine_sarray_s::size.
Referenced by _load_required_plugins(), collect_plugins(), video_overlay_event(), and video_overlay_free_handle().
int xine_sarray_remove_ptr | ( | xine_sarray_t * | sarray, |
void * | ptr ) |
References _xine_sarray_hash_remove(), xine_sarray_s::chunk, xine_sarray_s::last_add, xine_sarray_s::same_dir, and xine_sarray_s::size.
Referenced by _decoder_priority_cb(), and video_overlay_add_event().
void xine_sarray_set_hash | ( | xine_sarray_t * | sarray, |
xine_sarray_hash_func_t | hash_func, | ||
unsigned int | hash_size ) |
References _xine_sarray_hash_get(), _xine_sarray_hash_none(), xine_sarray_s::get, xine_sarray_s::hash, NULL, xine_sarray_s::size, xine_sarray_s::table, and xine_sarray_s::user_get.
Referenced by _x_config_init(), and save_catalog().
void xine_sarray_set_mode | ( | xine_sarray_t * | sarray, |
unsigned int | mode ) |
References _xine_sarray_find_default(), _xine_sarray_find_first(), _xine_sarray_find_last(), xine_sarray_s::find, mode(), xine_sarray_s::mode, xine_sarray_s::unique_test, XINE_SARRAY_MODE_FIRST, XINE_SARRAY_MODE_LAST, and XINE_SARRAY_MODE_UNIQUE.
Referenced by _build_list_typed_plugins(), _new_catalog(), _x_config_init(), _x_video_overlay_new_manager(), save_catalog(), and xine_event_select().
size_t xine_sarray_size | ( | const xine_sarray_t * | sarray | ) |
References xine_sarray_s::size.
Referenced by _build_list_typed_plugins(), _get_demux_strings(), _get_input_class(), _load_required_plugins(), _unload_unref_plugins(), _x_find_demux_plugin(), _x_find_demux_plugin_by_name(), _x_find_demux_plugin_last_probe(), _x_find_input_plugin(), _x_find_module(), _x_load_audio_output_plugin(), _x_load_video_output_plugin(), config_insert(), config_validate(), dispose_plugin_list(), map_decoder_list(), save_plugin_list(), xine_get_autoplay_input_plugin_ids(), xine_get_browsable_input_plugin_ids(), xine_get_demux_for_mime_type(), xine_list_post_plugins_typed(), xine_new_framegrab_video_port(), xine_open_audio_driver(), and xine_post_init().