xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Typedefs | Functions
xine_private.h File Reference

Declaration of internal, private functions for xine-lib. More...

#include <xine/xine_internal.h>

Go to the source code of this file.

Data Structures

struct  xine_refs_t
 
struct  xine_private_t
 
struct  xine_stream_private_st
 

Macros

#define INTERNAL
 
#define XINE_DISABLE_DEPRECATION_WARNINGS
 
#define XINE_ENABLE_DEPRECATION_WARNINGS
 
#define EXTERN_C_START
 
#define EXTERN_C_STOP
 
#define xine_rwlock_t   pthread_mutex_t
 
#define xine_rwlock_init_default(l)   pthread_mutex_init (l, NULL)
 
#define xine_rwlock_rdlock(l)   pthread_mutex_lock (l)
 
#define xine_rwlock_tryrdlock(l)   pthread_mutex_trylock (l)
 
#define xine_rwlock_timedrdlock(l, t)   pthread_mutex_timedlock (l, t)
 
#define xine_rwlock_wrlock(l)   pthread_mutex_lock (l)
 
#define xine_rwlock_trywrlock(l)   pthread_mutex_trylock (l)
 
#define xine_rwlock_timedwrlock(l, t)   pthread_mutex_timedlock (l, t)
 
#define xine_rwlock_unlock(l)   pthread_mutex_unlock (l)
 
#define xine_rwlock_destroy(l)   pthread_mutex_destroy (l)
 
#define XINE_MAX_INT32_STR   13
 
#define XINE_MAX_INT64_STR   21
 
#define xine_uint2str(s, v)
 
#define PTR_IN_RANGE(_ptr, _start, _size)    ((uintptr_t)((uint8_t *)(_ptr) - (uint8_t *)(_start)) < (uintptr_t)(_size))
 
#define SPEED_FLAG_IGNORE_CHANGE   1
 
#define SPEED_FLAG_CHANGING   2
 
#define SPEED_FLAG_WANT_LIVE   4
 
#define SPEED_FLAG_WANT_NEW   8
 
#define XINE_NUM_SIDE_STREAMS   4
 
#define XINE_NUM_CURR_EXTRA_INFOS   2
 
#define _XINE_EI_RING_SIZE   16
 
#define XINE_NBC_EVENT_AUDIO_DRY   1
 

Typedefs

typedef struct xine_stream_private_st xine_stream_private_t
 
typedef struct xine_fast_text_s xine_fast_text_t
 

Functions

static uint32_t xine_find_byte (const char *s, uint32_t byte)
 
static void xine_refs_init (xine_refs_t *refs, void(*destructor)(void *object), void *object)
 
static int xine_refs_add (xine_refs_t *refs, int n)
 
static int xine_refs_sub (xine_refs_t *refs, int n)
 
static int xine_refs_get (xine_refs_t *refs)
 
int _x_scan_plugins (xine_t *this)
 Load plugins into catalog.
 
void _x_dispose_plugins (xine_t *this)
 Dispose (shutdown) all currently loaded plugins.
 
void _x_free_video_driver (xine_t *xine, vo_driver_t **driver)
 
void _x_free_audio_driver (xine_t *xine, ao_driver_t **driver)
 
void xine_probe_fast_memcpy (xine_t *xine)
 Benchmark available memcpy methods.
 
int _x_set_file_close_on_exec (int fd)
 Make file descriptors and sockets uninheritable.
 
int _x_set_socket_close_on_exec (int s)
 
static int xine_gettime (struct timespec *ts)
 
static uint32_t xine_uint_mul_div (uint32_t num, uint32_t mul, uint32_t den)
 
static int32_t xine_str2int32 (const char **s)
 
static uint32_t xine_str2uint32 (const char **s)
 
static uint64_t xine_str2uint64 (const char **s)
 
static void xine_int32_2str (char **s, int32_t v)
 
static void xine_uint32_2str (char **s, uint32_t v)
 
static void xine_uint64_2str (char **s, uint64_t v)
 
void xine_current_extra_info_set (xine_stream_private_t *stream, const extra_info_t *info)
 
void xine_nbc_event (xine_stream_private_t *stream, uint32_t type)
 
int xine_fbc_set (fifo_buffer_t *fifo, int on)
 
xine_fast_text_txine_fast_text_load (const char *filename, size_t max_size)
 
char * xine_fast_text_line (xine_fast_text_t *xft, size_t *linesize)
 
void xine_fast_text_unload (xine_fast_text_t **xft)
 
demux_plugin_t_x_find_demux_plugin_last_probe (xine_stream_t *stream, const char *last_demux_name, input_plugin_t *input)
 
input_plugin_t_x_rip_plugin_get_instance (xine_stream_t *stream, const char *filename)
 
input_plugin_t_x_cache_plugin_get_instance (xine_stream_t *stream)
 
int _x_video_decoder_init (xine_stream_t *stream)
 
void _x_video_decoder_shutdown (xine_stream_t *stream)
 
int _x_audio_decoder_init (xine_stream_t *stream)
 
void _x_audio_decoder_shutdown (xine_stream_t *stream)
 

Detailed Description

Declaration of internal, private functions for xine-lib.

These functions should not be used by neither plugins nor frontends.

Macro Definition Documentation

◆ _XINE_EI_RING_SIZE

#define _XINE_EI_RING_SIZE   16

◆ EXTERN_C_START

#define EXTERN_C_START

◆ EXTERN_C_STOP

#define EXTERN_C_STOP

◆ INTERNAL

#define INTERNAL

◆ PTR_IN_RANGE

#define PTR_IN_RANGE ( _ptr,
_start,
_size )    ((uintptr_t)((uint8_t *)(_ptr) - (uint8_t *)(_start)) < (uintptr_t)(_size))

◆ SPEED_FLAG_CHANGING

#define SPEED_FLAG_CHANGING   2

Referenced by _x_set_fine_speed(), and lock_run().

◆ SPEED_FLAG_IGNORE_CHANGE

#define SPEED_FLAG_IGNORE_CHANGE   1

Referenced by _x_set_fine_speed(), and lock_run().

◆ SPEED_FLAG_WANT_LIVE

#define SPEED_FLAG_WANT_LIVE   4

Referenced by _x_set_fine_speed().

◆ SPEED_FLAG_WANT_NEW

#define SPEED_FLAG_WANT_NEW   8

Referenced by _x_set_fine_speed(), and lock_run().

◆ XINE_DISABLE_DEPRECATION_WARNINGS

#define XINE_DISABLE_DEPRECATION_WARNINGS

◆ XINE_ENABLE_DEPRECATION_WARNINGS

#define XINE_ENABLE_DEPRECATION_WARNINGS

◆ XINE_MAX_INT32_STR

#define XINE_MAX_INT32_STR   13

◆ XINE_MAX_INT64_STR

#define XINE_MAX_INT64_STR   21

Referenced by save_plugin_list().

◆ XINE_NBC_EVENT_AUDIO_DRY

#define XINE_NBC_EVENT_AUDIO_DRY   1

Referenced by ao_out_fifo_get(), and xine_nbc_event().

◆ XINE_NUM_CURR_EXTRA_INFOS

#define XINE_NUM_CURR_EXTRA_INFOS   2

◆ XINE_NUM_SIDE_STREAMS

#define XINE_NUM_SIDE_STREAMS   4

◆ xine_rwlock_destroy

#define xine_rwlock_destroy ( l)    pthread_mutex_destroy (l)

◆ xine_rwlock_init_default

#define xine_rwlock_init_default ( l)    pthread_mutex_init (l, NULL)

◆ xine_rwlock_rdlock

#define xine_rwlock_rdlock ( l)    pthread_mutex_lock (l)

◆ xine_rwlock_t

#define xine_rwlock_t   pthread_mutex_t

◆ xine_rwlock_timedrdlock

#define xine_rwlock_timedrdlock ( l,
t )   pthread_mutex_timedlock (l, t)

◆ xine_rwlock_timedwrlock

#define xine_rwlock_timedwrlock ( l,
t )   pthread_mutex_timedlock (l, t)

◆ xine_rwlock_tryrdlock

#define xine_rwlock_tryrdlock ( l)    pthread_mutex_trylock (l)

◆ xine_rwlock_trywrlock

#define xine_rwlock_trywrlock ( l)    pthread_mutex_trylock (l)

◆ xine_rwlock_unlock

#define xine_rwlock_unlock ( l)    pthread_mutex_unlock (l)

◆ xine_rwlock_wrlock

#define xine_rwlock_wrlock ( l)    pthread_mutex_lock (l)

◆ xine_uint2str

#define xine_uint2str ( s,
v )
Value:
do { \
if (sizeof (v) == 8) \
xine_uint64_2str (s, v); \
else \
xine_uint32_2str (s, v); \
} while (0)
uint32_t v
Definition utils.c:1157

Referenced by save_plugin_list().

Typedef Documentation

◆ xine_fast_text_t

The fast text feature.

◆ xine_stream_private_t

Function Documentation

◆ _x_audio_decoder_init()

int _x_audio_decoder_init ( xine_stream_t * stream)

◆ _x_audio_decoder_shutdown()

void _x_audio_decoder_shutdown ( xine_stream_t * stream)

◆ _x_cache_plugin_get_instance()

input_plugin_t * _x_cache_plugin_get_instance ( xine_stream_t * stream)

◆ _x_find_demux_plugin_last_probe()

demux_plugin_t * _x_find_demux_plugin_last_probe ( xine_stream_t * stream,
const char * last_demux_name,
input_plugin_t * input )

◆ _x_free_audio_driver()

void _x_free_audio_driver ( xine_t * xine,
ao_driver_t ** driver )

◆ _x_free_video_driver()

void _x_free_video_driver ( xine_t * xine,
vo_driver_t ** driver )

◆ _x_rip_plugin_get_instance()

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

◆ _x_set_file_close_on_exec()

int _x_set_file_close_on_exec ( int fd)

Make file descriptors and sockets uninheritable.

Referenced by xine_create_cloexec(), and xine_open_cloexec().

◆ _x_set_socket_close_on_exec()

int _x_set_socket_close_on_exec ( int s)

◆ _x_video_decoder_init()

int _x_video_decoder_init ( xine_stream_t * stream)

◆ _x_video_decoder_shutdown()

void _x_video_decoder_shutdown ( xine_stream_t * stream)

◆ xine_current_extra_info_set()

void xine_current_extra_info_set ( xine_stream_private_t * stream,
const extra_info_t * info )

◆ xine_fast_text_line()

char * xine_fast_text_line ( xine_fast_text_t * xft,
size_t * linesize )

get next line. you may modify return[0] ... return[filesize]. it all stays valid until xine_fast_text_unload ().

References xine_fast_text_s::dummy, xine_fast_text_s::flags, xine_fast_text_s::line_start, NULL, xine_fast_text_s::scan_here, xine_fast_text_s::text_len, and v.

Referenced by load_plugin_list(), and xine_config_load().

◆ xine_fast_text_load()

xine_fast_text_t * xine_fast_text_load ( const char * filename,
size_t max_size )

◆ xine_fast_text_unload()

void xine_fast_text_unload ( xine_fast_text_t ** xft)

free the text.

References NULL.

Referenced by load_plugin_list(), and xine_config_load().

◆ xine_fbc_set()

int xine_fbc_set ( fifo_buffer_t * fifo,
int on )

◆ xine_find_byte()

static uint32_t xine_find_byte ( const char * s,
uint32_t byte )
inlinestatic

◆ xine_gettime()

static int xine_gettime ( struct timespec * ts)
inlinestatic

References NULL.

◆ xine_int32_2str()

static void xine_int32_2str ( char ** s,
int32_t v )
inlinestatic

References v.

Referenced by save_plugin_list(), and xine_config_save().

◆ xine_nbc_event()

void xine_nbc_event ( xine_stream_private_t * stream,
uint32_t type )

◆ xine_probe_fast_memcpy()

void xine_probe_fast_memcpy ( xine_t * xine)

Benchmark available memcpy methods.

References _, xine_s::config, NULL, config_values_s::register_enum, update_fast_memcpy(), config_values_s::update_num, and xine_fast_memcpy.

Referenced by xine_init().

◆ xine_refs_add()

static int xine_refs_add ( xine_refs_t * refs,
int n )
inlinestatic

◆ xine_refs_get()

static int xine_refs_get ( xine_refs_t * refs)
inlinestatic

◆ xine_refs_init()

static void xine_refs_init ( xine_refs_t * refs,
void(*)(void *object) destructor,
void * object )
inlinestatic

◆ xine_refs_sub()

static int xine_refs_sub ( xine_refs_t * refs,
int n )
inlinestatic

◆ xine_str2int32()

static int32_t xine_str2int32 ( const char ** s)
inlinestatic

◆ xine_str2uint32()

static uint32_t xine_str2uint32 ( const char ** s)
inlinestatic

References v, and z.

Referenced by _x_osd_renderer_init(), and load_plugin_list().

◆ xine_str2uint64()

static uint64_t xine_str2uint64 ( const char ** s)
inlinestatic

References v, and z.

Referenced by load_plugin_list().

◆ xine_uint32_2str()

static void xine_uint32_2str ( char ** s,
uint32_t v )
inlinestatic

◆ xine_uint64_2str()

static void xine_uint64_2str ( char ** s,
uint64_t v )
inlinestatic

References v.

◆ xine_uint_mul_div()

static uint32_t xine_uint_mul_div ( uint32_t num,
uint32_t mul,
uint32_t den )
inlinestatic