xine-lib 1.2.11
|
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stddef.h>
#include <pthread.h>
#include <sys/time.h>
#include <xine/os_types.h>
#include <xine/attributes.h>
#include <xine/compat.h>
#include <xine/xmlparser.h>
#include <xine/xine_buffer.h>
#include <xine/configfile.h>
#include <xine/list.h>
#include <xine/array.h>
#include <xine/sorted_array.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | dnode_st |
struct | dlist_t |
struct | xine_mutex_t |
struct | yuv_planes_s |
Macros | |
#define | DLIST_H(l) ((void *)(&(l)->head)) |
#define | DLIST_T(l) ((void *)(&(l)->null)) |
#define | DLIST_IS_EMPTY(l) ((l)->head == DLIST_T(l)) |
#define | DLIST_REMOVE(n) |
#define | DLIST_ADD_HEAD(n, l) |
#define | DLIST_ADD_TAIL(n, l) |
#define | DLIST_INSERT(n, h) |
#define | DLIST_INIT(l) |
#define | MM_ACCEL_MLIB 0x00000001 |
#define | MM_ACCEL_X86_MMX 0x80000000 |
#define | MM_ACCEL_X86_3DNOW 0x40000000 |
#define | MM_ACCEL_X86_MMXEXT 0x20000000 |
#define | MM_ACCEL_X86_SSE 0x10000000 |
#define | MM_ACCEL_X86_SSE2 0x08000000 |
#define | MM_ACCEL_X86_SSE3 0x04000000 |
#define | MM_ACCEL_X86_SSSE3 0x02000000 |
#define | MM_ACCEL_X86_SSE4 0x01000000 |
#define | MM_ACCEL_X86_SSE42 0x00800000 |
#define | MM_ACCEL_X86_AVX 0x00400000 |
#define | MM_ACCEL_PPC_ALTIVEC 0x04000000 |
#define | MM_ACCEL_PPC_CACHE32 0x02000000 |
#define | MM_ACCEL_SPARC_VIS 0x01000000 |
#define | MM_ACCEL_SPARC_VIS2 0x00800000 |
#define | MM_MMX MM_ACCEL_X86_MMX |
#define | MM_3DNOW MM_ACCEL_X86_3DNOW |
#define | MM_MMXEXT MM_ACCEL_X86_MMXEXT |
#define | MM_SSE MM_ACCEL_X86_SSE |
#define | MM_SSE2 MM_ACCEL_X86_SSE2 |
#define | xine_small_memcpy(xsm_to, xsm_from, xsm_len) memcpy (xsm_to, xsm_from, xsm_len) |
#define | xine_container_of(ptr, type, member) ((type *)(void *)((char *)(1 ? (ptr) : &((type *)0)->member) - offsetof(type, member))) |
#define | XINE_MEM_ALIGN 32 |
#define | xine_freep_aligned(xinefreepptr) do {xine_free_aligned (*(xinefreepptr)); *(xinefreepptr) = NULL; } while (0) |
#define | xine_strpbrk(S, ACCEPT) strpbrk((S), (ACCEPT)) |
#define | xine_strsep(STRINGP, DELIM) strsep((STRINGP), (DELIM)) |
#define | xine_setenv(NAME, VAL, XX) setenv((NAME), (VAL), (XX)) |
#define | SCALESHIFT 16 |
#define | SCALEFACTOR (1<<SCALESHIFT) |
#define | CENTERSAMPLE 128 |
#define | COMPUTE_Y(r, g, b) |
#define | COMPUTE_U(r, g, b) |
#define | COMPUTE_V(r, g, b) |
#define | UNPACK_BGR15(packed_pixel, r, g, b) |
#define | UNPACK_BGR16(packed_pixel, r, g, b) |
#define | UNPACK_RGB15(packed_pixel, r, g, b) |
#define | UNPACK_RGB16(packed_pixel, r, g, b) |
#define | EXPECT_TRUE(x) (x) |
#define | EXPECT_FALSE(x) (x) |
#define | _x_assert(exp) |
#define | _x_abort() |
#define | LOG_MODULE __FILE__ |
#define | LOG_MODULE_STRING printf("%s: ", LOG_MODULE ); |
#define | LONG_LOG_MODULE_STRING LOG_MODULE_STRING |
#define | lprintf(...) do {} while(0) |
#define | llprintf(cat, ...) |
#define | xprintf(xine, verbose, ...) |
#define | XINE_PROFILE(function) function |
#define | XINE_PROFILE_ACCUMULATE(function) function |
Typedefs | |
typedef struct dnode_st | dnode_t |
typedef struct yuv_planes_s | yuv_planes_t |
typedef struct rgb2yuy2_s | rgb2yuy2_t |
Functions | |
int | xine_mutex_init (xine_mutex_t *mutex, const pthread_mutexattr_t *mutexattr, const char *id) |
int | xine_mutex_lock (xine_mutex_t *mutex, const char *who) |
int | xine_mutex_unlock (xine_mutex_t *mutex, const char *who) |
int | xine_mutex_destroy (xine_mutex_t *mutex) |
uint32_t | xine_mm_accel (void) XINE_CONST |
int | xine_cpu_count (void) XINE_CONST |
void | xine_profiler_init (void) |
int | xine_profiler_allocate_slot (const char *label) |
void | xine_profiler_start_count (int id) |
void | xine_profiler_stop_count (int id) |
void | xine_profiler_print_results (void) |
void * | xine_xmalloc (size_t size) XINE_DEPRECATED |
Allocate and clean memory size_t 'size', then return the pointer to the allocated memory. More... | |
void * | xine_xcalloc (size_t nmemb, size_t size) |
Wrapper around calloc() function. More... | |
static void | _x_freep (void *ptr) |
static void | _x_freep_wipe_string (char **pp) |
void * | xine_memdup (const void *src, size_t length) |
void * | xine_memdup0 (const void *src, size_t length) |
void * | xine_mallocz_aligned (size_t size) |
void * | xine_malloc_aligned (size_t size) |
void | xine_free_aligned (void *ptr) |
void * | xine_realloc_aligned (void *ptr, size_t size) |
size_t | xine_base64_encode (uint8_t *from, char *to, size_t size) |
size_t | xine_base64_decode (const char *from, uint8_t *to) |
uint32_t | xine_crc32_ieee (uint32_t crc, const uint8_t *data, size_t len) |
uint32_t | xine_crc16_ansi (uint32_t crc, const uint8_t *data, size_t len) |
const char * | xine_get_homedir (void) |
char * | xine_chomp (char *str) |
void | xine_usec_sleep (unsigned usec) |
char * | xine_strcat_realloc (char **dest, const char *append) |
char * | _x_asprintf (const char *format,...) XINE_FORMAT_PRINTF(1 |
char int | xine_open_cloexec (const char *name, int flags) |
int | xine_create_cloexec (const char *name, int flags, mode_t mode) |
int | xine_socket_cloexec (int domain, int type, int protocol) |
void | init_yuv_conversion (void) |
void | init_yuv_planes (yuv_planes_t *yuv_planes, int width, int height) |
void | free_yuv_planes (yuv_planes_t *yuv_planes) |
rgb2yuy2_t * | rgb2yuy2_alloc (int color_matrix, const char *format) |
void | rgb2yuy2_free (rgb2yuy2_t *rgb2yuy2) |
void | rgb2yuy2_slice (rgb2yuy2_t *rgb2yuy2, const uint8_t *in, int ipitch, uint8_t *out, int opitch, int width, int height) |
void | rgb2yuy2_palette (rgb2yuy2_t *rgb2yuy2, const uint8_t *pal, int num_colors, int bits_per_pixel) |
void | rgb2yv12_slice (rgb2yuy2_t *rgb2yuy2, const uint8_t *src, int src_stride, uint8_t *y_dst, int y_pitch, uint8_t *u_dst, int u_pitch, uint8_t *v_dst, int v_pitch, int width, int height) |
void | yv12_to_yv12 (const unsigned char *y_src, int y_src_pitch, unsigned char *y_dst, int y_dst_pitch, const unsigned char *u_src, int u_src_pitch, unsigned char *u_dst, int u_dst_pitch, const unsigned char *v_src, int v_src_pitch, unsigned char *v_dst, int v_dst_pitch, int width, int height) |
void | yuy2_to_yuy2 (const unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch, int width, int height) |
void | _x_nv12_to_yv12 (const uint8_t *y_src, int y_src_pitch, const uint8_t *uv_src, int uv_src_pitch, uint8_t *y_dst, int y_dst_pitch, uint8_t *u_dst, int u_dst_pitch, uint8_t *v_dst, int v_dst_pitch, int width, int height) |
void | xine_hexdump (const void *buf, int length) |
static XINE_DEPRECATED void | _x_abort_is_deprecated (void) |
char * | xine_get_system_encoding (void) |
const char * | xine_guess_spu_encoding (void) |
int | xine_monotonic_clock (struct timeval *tv, struct timezone *tz) |
void | _x_report_video_fourcc (xine_t *, const char *module, uint32_t) |
void | _x_report_audio_format_tag (xine_t *, const char *module, uint32_t) |
Variables | |
void *(* | xine_fast_memcpy )(void *to, const void *from, size_t len) |
void(* | yuv444_to_yuy2 )(const yuv_planes_t *yuv_planes, unsigned char *yuy2_map, int pitch) |
void(* | yuv9_to_yv12 )(const unsigned char *y_src, int y_src_pitch, unsigned char *y_dest, int y_dest_pitch, const unsigned char *u_src, int u_src_pitch, unsigned char *u_dest, int u_dest_pitch, const unsigned char *v_src, int v_src_pitch, unsigned char *v_dest, int v_dest_pitch, int width, int height) |
void(* | yuv411_to_yv12 )(const unsigned char *y_src, int y_src_pitch, unsigned char *y_dest, int y_dest_pitch, const unsigned char *u_src, int u_src_pitch, unsigned char *u_dest, int u_dest_pitch, const unsigned char *v_src, int v_src_pitch, unsigned char *v_dest, int v_dest_pitch, int width, int height) |
void(* | yv12_to_yuy2 )(const unsigned char *y_src, int y_src_pitch, const unsigned char *u_src, int u_src_pitch, const unsigned char *v_src, int v_src_pitch, unsigned char *yuy2_map, int yuy2_pitch, int width, int height, int progressive) |
void(* | yuy2_to_yv12 )(const unsigned char *yuy2_map, int yuy2_pitch, unsigned char *y_dst, int y_dst_pitch, unsigned char *u_dst, int u_dst_pitch, unsigned char *v_dst, int v_dst_pitch, int width, int height) |
int | y_r_table [256] |
int | y_g_table [256] |
int | y_b_table [256] |
int | uv_br_table [256] |
int | u_r_table [256] |
int | u_g_table [256] |
int | u_b_table [256] |
int | v_r_table [256] |
int | v_g_table [256] |
int | v_b_table [256] |
#define _x_abort | ( | ) |
#define _x_assert | ( | exp | ) |
#define CENTERSAMPLE 128 |
#define COMPUTE_U | ( | r, | |
g, | |||
b | |||
) |
#define COMPUTE_V | ( | r, | |
g, | |||
b | |||
) |
#define COMPUTE_Y | ( | r, | |
g, | |||
b | |||
) |
#define DLIST_ADD_HEAD | ( | n, | |
l | |||
) |
#define DLIST_ADD_TAIL | ( | n, | |
l | |||
) |
#define DLIST_H | ( | l | ) | ((void *)(&(l)->head)) |
#define DLIST_INIT | ( | l | ) |
#define DLIST_INSERT | ( | n, | |
h | |||
) |
#define DLIST_IS_EMPTY | ( | l | ) | ((l)->head == DLIST_T(l)) |
#define DLIST_REMOVE | ( | n | ) |
#define DLIST_T | ( | l | ) | ((void *)(&(l)->null)) |
#define EXPECT_FALSE | ( | x | ) | (x) |
#define EXPECT_TRUE | ( | x | ) | (x) |
#define llprintf | ( | cat, | |
... | |||
) |
#define LOG_MODULE __FILE__ |
#define LOG_MODULE_STRING printf("%s: ", LOG_MODULE ); |
#define LONG_LOG_MODULE_STRING LOG_MODULE_STRING |
#define lprintf | ( | ... | ) | do {} while(0) |
#define MM_3DNOW MM_ACCEL_X86_3DNOW |
#define MM_ACCEL_MLIB 0x00000001 |
#define MM_ACCEL_PPC_ALTIVEC 0x04000000 |
#define MM_ACCEL_PPC_CACHE32 0x02000000 |
#define MM_ACCEL_SPARC_VIS 0x01000000 |
#define MM_ACCEL_SPARC_VIS2 0x00800000 |
#define MM_ACCEL_X86_3DNOW 0x40000000 |
#define MM_ACCEL_X86_AVX 0x00400000 |
#define MM_ACCEL_X86_MMX 0x80000000 |
#define MM_ACCEL_X86_MMXEXT 0x20000000 |
#define MM_ACCEL_X86_SSE 0x10000000 |
#define MM_ACCEL_X86_SSE2 0x08000000 |
#define MM_ACCEL_X86_SSE3 0x04000000 |
#define MM_ACCEL_X86_SSE4 0x01000000 |
#define MM_ACCEL_X86_SSE42 0x00800000 |
#define MM_ACCEL_X86_SSSE3 0x02000000 |
#define MM_MMX MM_ACCEL_X86_MMX |
#define MM_MMXEXT MM_ACCEL_X86_MMXEXT |
#define MM_SSE MM_ACCEL_X86_SSE |
#define MM_SSE2 MM_ACCEL_X86_SSE2 |
#define SCALEFACTOR (1<<SCALESHIFT) |
#define SCALESHIFT 16 |
#define UNPACK_BGR15 | ( | packed_pixel, | |
r, | |||
g, | |||
b | |||
) |
#define UNPACK_BGR16 | ( | packed_pixel, | |
r, | |||
g, | |||
b | |||
) |
#define UNPACK_RGB15 | ( | packed_pixel, | |
r, | |||
g, | |||
b | |||
) |
#define UNPACK_RGB16 | ( | packed_pixel, | |
r, | |||
g, | |||
b | |||
) |
#define xine_container_of | ( | ptr, | |
type, | |||
member | |||
) | ((type *)(void *)((char *)(1 ? (ptr) : &((type *)0)->member) - offsetof(type, member))) |
#define xine_freep_aligned | ( | xinefreepptr | ) | do {xine_free_aligned (*(xinefreepptr)); *(xinefreepptr) = NULL; } while (0) |
#define XINE_MEM_ALIGN 32 |
Get/resize/free aligned memory.
#define xine_setenv | ( | NAME, | |
VAL, | |||
XX | |||
) | setenv((NAME), (VAL), (XX)) |
#define xine_small_memcpy | ( | xsm_to, | |
xsm_from, | |||
xsm_len | |||
) | memcpy (xsm_to, xsm_from, xsm_len) |
#define xine_strpbrk | ( | S, | |
ACCEPT | |||
) | strpbrk((S), (ACCEPT)) |
#define xine_strsep | ( | STRINGP, | |
DELIM | |||
) | strsep((STRINGP), (DELIM)) |
#define xprintf | ( | xine, | |
verbose, | |||
... | |||
) |
typedef struct rgb2yuy2_s rgb2yuy2_t |
typedef struct yuv_planes_s yuv_planes_t |
|
inlinestatic |
char * _x_asprintf | ( | const char * | format, |
... | |||
) |
asprintf wrapper allocate a string large enough to hold the output, and return a pointer to it. This pointer should be passed to free when it is no longer needed. return NULL on error.
|
inlinestatic |
References NULL.
Referenced by _aom_dispose(), _cdda_free_cddb_info(), _dav1d_dispose(), _dispose(), _free_vbri_header(), _ftp_dispose(), _x_alphablend_free(), _x_dispose_plugins(), _x_freep_wipe_string(), _x_input_free_mrls(), _x_meta_info_public_reset(), _x_post_dispose(), _x_tls_close(), _x_tls_deinit(), ao_alsa_exit(), ao_exit(), ao_streams_close(), blend_yuv_grow_extra_data(), blend_yuy2_grow_extra_data(), bluray_plugin_dispose(), caca_update_frame_format(), cache_plugin_dispose(), config_dispose(), config_free_string(), demux_avformat_dispose(), demux_film_dispose(), demux_fourxm_dispose(), demux_ipmovie_dispose(), demux_matroska_dispose(), demux_mod_dispose(), demux_mpgaudio_dispose(), demux_mve_dispose(), demux_nsf_dispose(), demux_sputext_dispose(), demux_tta_dispose(), demux_wav_dispose(), dispose_ebml_parser(), dispose_plugin_file_list(), dispose_plugin_list(), dispose_ximage(), do_record(), dvaudio_dispose(), dvb_class_dispose(), dvb_plugin_dispose(), dvd_class_dispose(), dvd_input_saved_delete(), dvd_parse_try_open(), dvd_plugin_dispose(), dvd_plugin_free_buffer(), extract_channel_from_string(), faad_dispose(), ff_audio_dispose(), ff_dispose(), fftgraph_dispose(), fftscope_dispose(), file_input_class_dispose(), file_input_class_get_dir(), file_input_dispose(), file_input_open(), free_autoplay_list(), free_channel_list(), free_subtitle_object(), free_xml_node(), free_xml_property(), gnomevfs_plugin_dispose(), gsm610_dispose(), hls_input_dispose(), hls_input_load_list(), http_plugin_get_optional_data(), input_avformat_dispose(), input_avformat_get_instance(), input_avio_dispose(), input_http_init_class(), internal_video_overlay_free_handle(), lexer_finalize_r(), lpcm_dispose(), lpcm_reset(), mpc_dispose(), net_plugin_dispose(), open_plugin(), oscope_dispose(), osd_free_encoding(), osd_free_object(), osd_renderer_close(), osd_renderer_unload_font(), process_ipmovie_chunk(), pvr_plugin_dispose(), realdec_dispose(), remove_events_handle(), rip_plugin_dispose(), rtp_plugin_dispose(), rtsp_plugin_dispose(), scratch_dispose(), sdpplin_free(), sdpplin_free_stream(), segbuf_decode_object(), segbuf_dispose(), smb_class_dispose(), smb_class_get_dir(), sparse_array_delete(), spudec_dispose(), spudec_dispose_stopped(), sputext_class_dispose(), stdin_plugin_open(), stretch_port_close(), tuner_dispose(), tuner_init(), update_region(), upmix_dispose(), upmix_port_open(), v4l_plugin_dispose(), vaapi_close(), vaapi_dispose_locked(), vaapi_initialize(), vaapi_terminate(), vcd_class_dispose(), vcd_class_get_dir(), video_overlay_dispose(), video_overlay_event(), vo_dispose_grab_video_frame(), vo_grab_grab_video_frame(), xine_array_delete(), xine_ring_buffer_delete(), xxmc_dispose_context(), and yuv2rgb_factory_dispose().
|
inlinestatic |
References _x_freep().
Referenced by _dispose(), _ftp_dispose(), _ftp_open(), _login(), _open_plugin(), input_avio_dispose(), and input_avio_open().
void _x_nv12_to_yv12 | ( | const uint8_t * | y_src, |
int | y_src_pitch, | ||
const uint8_t * | uv_src, | ||
int | uv_src_pitch, | ||
uint8_t * | y_dst, | ||
int | y_dst_pitch, | ||
uint8_t * | u_dst, | ||
int | u_dst_pitch, | ||
uint8_t * | v_dst, | ||
int | v_dst_pitch, | ||
int | width, | ||
int | height | ||
) |
void _x_report_audio_format_tag | ( | xine_t * | xine, |
const char * | module, | ||
uint32_t | code | ||
) |
References _, code, code_to_text(), XINE_VERBOSITY_LOG, and xprintf.
Referenced by asf_read_header(), decode_audio_header(), demux_qt_send_headers(), open_nsv_file(), open_smjpeg_file(), and parse_track_entry().
void _x_report_video_fourcc | ( | xine_t * | xine, |
const char * | module, | ||
uint32_t | code | ||
) |
Unknown FourCC reporting functions
References _, code, code_to_text(), XINE_VERBOSITY_LOG, and xprintf.
Referenced by asf_read_header(), decode_dshow_header(), decode_video_header(), demux_qt_send_headers(), open_film_file(), open_nsv_file(), open_smjpeg_file(), parse_track_entry(), and real_parse_headers().
void free_yuv_planes | ( | yuv_planes_t * | yuv_planes | ) |
References yuv_planes_s::u, yuv_planes_s::v, xine_freep_aligned, and yuv_planes_s::y.
Referenced by goom_port_close(), and goom_port_put_buffer().
void init_yuv_conversion | ( | void | ) |
References CENTERSAMPLE, MM_ACCEL_X86_MMX, MM_ACCEL_X86_MMXEXT, MM_ACCEL_X86_SSE2, SCALEFACTOR, u_b_table, u_g_table, u_r_table, UB, UG, UR, uv_br_table, v_b_table, v_g_table, v_r_table, VB, VG, VR, xine_mm_accel(), y_b_table, y_g_table, y_r_table, YB, YG, YR, yuv411_to_yv12, yuv411_to_yv12_c(), yuv444_to_yuy2, yuv444_to_yuy2_c(), yuv9_to_yv12, yuv9_to_yv12_c(), yuy2_to_yv12, yuy2_to_yv12_c(), yv12_to_yuy2, and yv12_to_yuy2_c().
Referenced by XineOpenGLView::acceptsFirstResponder, xine_init(), and yuv2frame().
void init_yuv_planes | ( | yuv_planes_t * | yuv_planes, |
int | width, | ||
int | height | ||
) |
References height, yuv_planes_s::row_count, yuv_planes_s::row_width, yuv_planes_s::u, yuv_planes_s::v, width, xine_mallocz_aligned(), and yuv_planes_s::y.
Referenced by bitplane_decode_data(), goom_port_open(), goom_port_put_buffer(), and oscope_port_open().
rgb2yuy2_t * rgb2yuy2_alloc | ( | int | color_matrix, |
const char * | format | ||
) |
References rgb2yuy2_s::cm, rgb2yuy2_s::fmt, NULL, rgb2yuy2_s::pfmt, rgb_argb, rgb_bgr, rgb_bgra, rgb_bgra_clut, rgb_rgb, rgb_rgb555be, rgb_rgb555le, rgb_rgb565be, rgb_rgb565le, rgb_rgba, rgb_rgba_clut, rr, rgb2yuy2_s::t0, rgb2yuy2_s::t1, and rgb2yuy2_s::t2.
Referenced by _image_decode_data(), _png_decode_data(), ff_setup_rgb2yuy2(), goom_open_plugin(), image_decode_data(), and rgb_decode_data().
void rgb2yuy2_free | ( | rgb2yuy2_t * | rgb2yuy2 | ) |
Referenced by _image_decode_data(), _png_decode_data(), ff_dispose(), ff_setup_rgb2yuy2(), goom_dispose(), image_decode_data(), rgb_decode_data(), and rgb_dispose().
void rgb2yuy2_palette | ( | rgb2yuy2_t * | rgb2yuy2, |
const uint8_t * | pal, | ||
int | num_colors, | ||
int | bits_per_pixel | ||
) |
References rgb2yuy2_s::fmt, mode(), rgb2yuy2_s::p, rgb2yuy2_s::pfmt, rgb_argb, rgb_bgr, rgb_bgra, rgb_pal1, rgb_pal2, rgb_pal4, rgb_pal8, rgb_rgb, rgb_rgba, rgb2yuy2_s::t0, rgb2yuy2_s::t1, and rgb2yuy2_s::t2.
Referenced by ff_convert_frame(), and rgb_decode_data().
void rgb2yuy2_slice | ( | rgb2yuy2_t * | rgb2yuy2, |
const uint8_t * | in, | ||
int | ipitch, | ||
uint8_t * | out, | ||
int | opitch, | ||
int | width, | ||
int | height | ||
) |
void rgb2yv12_slice | ( | rgb2yuy2_t * | rgb2yuy2, |
const uint8_t * | src, | ||
int | src_stride, | ||
uint8_t * | y_dst, | ||
int | y_pitch, | ||
uint8_t * | u_dst, | ||
int | u_pitch, | ||
uint8_t * | v_dst, | ||
int | v_pitch, | ||
int | width, | ||
int | height | ||
) |
References height, rgb2yuy2_slice(), width, xine_free_aligned(), xine_malloc_aligned(), and yuy2_to_yv12.
Referenced by _image_decode_data(), _png_decode_data(), and image_decode_data().
size_t xine_base64_decode | ( | const char * | from, |
uint8_t * | to | ||
) |
Base64 decoder. from: pointer to input string or line formatted / indented, null terminated text. to: pointer to output buffer. ret: length of output in bytes.
Referenced by config_register_serialized_entry(), sdpplin_parse(), and sdpplin_parse_stream().
size_t xine_base64_encode | ( | uint8_t * | from, |
char * | to, | ||
size_t | size | ||
) |
Base64 encoder. from: pointer to binary input. to: pointer to output string buffer. size: byte length of input. ret: length of output string (without \0). Note that both buffers need 4 writable padding bytes.
References _X_BE_24.
Referenced by _cdda_cdindex(), config_get_serialized_entry(), http_plugin_basicauth(), and rtsp_basicauth().
char * xine_chomp | ( | char * | str | ) |
int xine_cpu_count | ( | void | ) |
References _cpu_count().
Referenced by _open_plugin(), and open_plugin().
uint32_t xine_crc16_ansi | ( | uint32_t | crc, |
const uint8_t * | data, | ||
size_t | len | ||
) |
References rev16, and tab_crc16_ansi.
Referenced by xine_a52_parse_data().
uint32_t xine_crc32_ieee | ( | uint32_t | crc, |
const uint8_t * | data, | ||
size_t | len | ||
) |
Checksum calculator.
References rev32, and tab_crc32_ieee.
Referenced by demux_ts_parse_pat(), demux_ts_parse_pmt(), and ts_rewrite_packets().
int xine_create_cloexec | ( | const char * | name, |
int | flags, | ||
mode_t | mode | ||
) |
creates a file, ensuring that the descriptor will be closed automatically after a fork/execute.
References _x_set_file_close_on_exec(), mode(), name, and O_CLOEXEC.
Referenced by ao_file_open(), do_record(), open_plugin(), and pvr_break_rec_page().
void xine_free_aligned | ( | void * | ptr | ) |
Referenced by _x_ao_new_port(), aa_dispose_frame(), caca_dispose_frame(), dispose_ximage(), ff_audio_dispose(), ff_audio_open_plugin(), fifo_buffer_dispose(), opengl2_frame_dispose(), opengl_frame_dispose(), raw_frame_dispose(), raw_update_frame_format(), rgb2yv12_slice(), vo_none_free_framedata(), xshm_frame_dispose(), xv_frame_dispose(), xv_rem_yuy2_emu(), yuv2rgb_dispose(), and yv12_to_nv12().
const char * xine_get_homedir | ( | void | ) |
Referenced by _ssh_connect(), _x_scan_plugins(), config_save_cb(), do_record(), file_input_class_get_dir(), and xine_init().
char * xine_get_system_encoding | ( | void | ) |
get encoding of current locale
References _get_first_lang_locale(), _get_lang(), lang_locale_t::encoding, and NULL.
Referenced by _meta_info_set_encoding(), and osd_set_encoding().
const char * xine_guess_spu_encoding | ( | void | ) |
References _get_first_lang_locale(), _get_lang(), and lang_locale_t::spu_encoding.
Referenced by init_spu_decoder_plugin().
void xine_hexdump | ( | const void * | buf, |
int | length | ||
) |
Referenced by atom_scan(), decode_audio_header(), decode_dshow_header(), decode_flac_header(), decode_video_header(), hash(), init_codec(), pnm_get_chunk(), pnm_get_stream_chunk(), real_get_rdt_chunk(), real_parse_mdpr(), realdec_decode_data(), rmff_scan_header(), select_mlti_data(), send_header(), and vorbis_decode_data().
void * xine_malloc_aligned | ( | size_t | size | ) |
References NULL, XINE_MEM_ADD, and XINE_MEM_MASK.
Referenced by create_ximage(), ff_audio_open_plugin(), opengl2_update_frame_format(), rgb2yv12_slice(), vdpau_duplicate_frame_data(), vdpau_update_frame_format(), vo_none_update_frame_format(), xshm_update_frame_format(), xv_add_yuy2_emu(), yuv2rgb_configure(), and yv12_to_nv12().
void * xine_mallocz_aligned | ( | size_t | size | ) |
References NULL, XINE_MEM_ADD, and XINE_MEM_MASK.
Referenced by _x_ao_new_port(), _x_fifo_buffer_new(), _x_vo_new_port(), aa_update_frame_format(), caca_update_frame_format(), frame_reallocate(), init_yuv_planes(), initNoise(), mpeg2_init(), opengl_update_frame_format(), raw_update_frame_format(), and vaapi_update_frame_format().
void * xine_memdup | ( | const void * | src, |
size_t | length | ||
) |
References NULL, and xine_fast_memcpy.
Referenced by rmff_new_mdpr(), and rmff_scan_mdpr().
void * xine_memdup0 | ( | const void * | src, |
size_t | length | ||
) |
References NULL, and xine_fast_memcpy.
Referenced by rmff_scan_cont(), and rmff_scan_mdpr().
uint32_t xine_mm_accel | ( | void | ) |
References MM_ACCEL_MLIB, and NULL.
Referenced by check_values(), deinterlace_frame_di_greedyh(), deinterlace_frame_di_tomsmocomp(), deinterlace_init_plugin(), DeinterlaceGreedy2Frame(), eq_open_plugin(), ff_video_open_plugin(), goom_port_put_buffer(), init_postprocess(), init_yuv_conversion(), linearblend_get_method(), mpeg2_init(), noise_draw(), noise_open_plugin(), open_plugin(), pp_open_plugin(), update_fast_memcpy(), xine_probe_fast_memcpy_int(), and yuv2rgb_factory_init().
int xine_monotonic_clock | ( | struct timeval * | tv, |
struct timezone * | tz | ||
) |
References lprintf.
Referenced by ao_file_delay(), ao_file_open(), ao_oss_delay(), ao_oss_write(), get_time(), open_plugin(), pvrscr_adjust(), pvrscr_get_current(), pvrscr_set_pivot(), pvrscr_start(), rip_plugin_seek(), stretchscr_adjust(), stretchscr_get_current(), stretchscr_set_pivot(), stretchscr_start(), unixscr_adjust(), unixscr_get_current(), unixscr_set_pivot(), unixscr_start(), and v4l2_input_read_block().
int xine_mutex_destroy | ( | xine_mutex_t * | mutex | ) |
References xine_mutex_t::mutex.
int xine_mutex_init | ( | xine_mutex_t * | mutex, |
const pthread_mutexattr_t * | mutexattr, | ||
const char * | id | ||
) |
References xine_mutex_t::id, and xine_mutex_t::mutex.
int xine_mutex_lock | ( | xine_mutex_t * | mutex, |
const char * | who | ||
) |
References xine_mutex_t::id, xine_mutex_t::locked_by, and xine_mutex_t::mutex.
int xine_mutex_unlock | ( | xine_mutex_t * | mutex, |
const char * | who | ||
) |
References xine_mutex_t::id, and xine_mutex_t::mutex.
char int xine_open_cloexec | ( | const char * | name, |
int | flags | ||
) |
opens a file, ensuring that the descriptor will be closed automatically after a fork/execute.
References _x_set_file_close_on_exec(), name, and O_CLOEXEC.
Referenced by ao_oss_open(), ao_sun_open(), ao_sun_open_plugin(), cdda_open(), dvb_plugin_open(), dxr3_decode_data(), dxr3_open_plugin(), dxr3_overlay_end(), dxr3_scr_init(), dxr3_spudec_open_plugin(), dxr3_update_frame_format(), dxr3_vo_open_plugin(), file_input_open(), media_eject_media(), open_fb_device(), open_plugin(), open_radio_capture_device(), open_video_capture_device(), pvr_event_handler(), pvr_play_file(), pvr_plugin_open(), realtime_samplecounter_available(), setup_dga(), stdin_plugin_open(), switch_channel(), tuner_init(), v4l_class_get_radio_instance(), v4l_class_get_video_instance(), vcd_class_get_autoplay_list(), vcd_class_get_dir(), vcd_plugin_open(), and vdr_plugin_open_fifo_mrl().
int xine_profiler_allocate_slot | ( | const char * | label | ) |
References MAX_ID, NULL, xine_profiler_t::p_label, profiler, and profiler_lock.
Referenced by audio_decoder_loop(), video_decoder_loop(), and yuv2rgb_configure().
void xine_profiler_init | ( | void | ) |
References profiler, and profiler_lock.
void xine_profiler_print_results | ( | void | ) |
References MAX_ID, NULL, profiler, rdtsc(), and xine_usec_sleep().
void xine_profiler_start_count | ( | int | id | ) |
References MAX_ID, xine_profiler_t::p_start, profiler, and rdtsc().
Referenced by audio_decoder_loop(), scale_line_11_12(), scale_line_11_24(), scale_line_15_16(), scale_line_1_1(), scale_line_1_2(), scale_line_2_3(), scale_line_3_4(), scale_line_45_53(), scale_line_45_64(), scale_line_5_4(), scale_line_5_8(), scale_line_9_16(), scale_line_gen(), and video_decoder_loop().
void xine_profiler_stop_count | ( | int | id | ) |
References MAX_ID, xine_profiler_t::p_calls, xine_profiler_t::p_start, xine_profiler_t::p_times, profiler, and rdtsc().
Referenced by audio_decoder_loop(), scale_line_11_12(), scale_line_11_24(), scale_line_15_16(), scale_line_1_1(), scale_line_1_2(), scale_line_2_3(), scale_line_3_4(), scale_line_45_53(), scale_line_45_64(), scale_line_5_4(), scale_line_5_8(), scale_line_9_16(), scale_line_gen(), and video_decoder_loop().
void * xine_realloc_aligned | ( | void * | ptr, |
size_t | size | ||
) |
References NULL, xine_fast_memcpy, XINE_MEM_ADD, and XINE_MEM_MASK.
Referenced by ff_audio_ensure_buffer_size().
int xine_socket_cloexec | ( | int | domain, |
int | type, | ||
int | protocol | ||
) |
creates a socket, ensuring that the descriptor will be closed automatically after a fork/execute.
References _x_set_socket_close_on_exec().
Referenced by _x_init_broadcaster(), _x_io_tcp_handshake_connect(), host_connect_attempt(), and vdr_plugin_open_socket().
char * xine_strcat_realloc | ( | char ** | dest, |
const char * | append | ||
) |
append to a string, reallocating normally, updates & returns *dest on error, *dest is unchanged & NULL is returned.
void xine_usec_sleep | ( | unsigned | usec | ) |
Referenced by _x_spu_decoder_sleep(), ao_dx2_write(), ao_file_delay(), ao_jack_write(), ao_none_write(), audio_decoder_loop(), bitplane_decode_data(), buffer_service(), dvb_parse_si(), dvb_plugin_read(), dvd_plugin_read_block(), dxr3_display_frame(), fifos_wait(), handle_libbluray_event(), metronom_handle_discontinuity(), pvr_plugin_read_block(), spudec_decode_data(), vdr_execute_rpc_command(), video_decoder_loop(), wait_secs(), xine_dvd_send_button_update(), xine_exit(), xine_profiler_print_results(), and xxmc_display_frame().
void * xine_xcalloc | ( | size_t | nmemb, |
size_t | size | ||
) |
Wrapper around calloc() function.
nmemb | Number of elements to allocate |
size | Size of each element to allocate |
This is a simple wrapper around calloc(), the only thing it does more than calloc() is outputting an error if the calloc fails (returning NULL).
References __XINE_FUNCTION__, and NULL.
Referenced by open_film_file(), open_mve_file(), open_tta_file(), and parse_vbri_header().
void * xine_xmalloc | ( | size_t | size | ) |
Allocate and clean memory size_t 'size', then return the pointer to the allocated memory.
size | Size of the memory area to allocate. |
The behaviour of this function differs from standard malloc() as xine_xmalloc(0) will not return a NULL pointer, but rather a pointer to a memory area of size 1 byte.
The NULL value is only ever returned in case of an error in malloc(), and is reported to stderr stream.
References __XINE_FUNCTION__, and NULL.
Referenced by fooviz_init_plugin().
void yuy2_to_yuy2 | ( | const unsigned char * | src, |
int | src_pitch, | ||
unsigned char * | dst, | ||
int | dst_pitch, | ||
int | width, | ||
int | height | ||
) |
References _copy_plane(), height, and width.
Referenced by _x_get_current_frame_data(), crop_frame(), duplicate_frame(), write_frame_sfb(), and yuv_decode_data().
void yv12_to_yv12 | ( | const unsigned char * | y_src, |
int | y_src_pitch, | ||
unsigned char * | y_dst, | ||
int | y_dst_pitch, | ||
const unsigned char * | u_src, | ||
int | u_src_pitch, | ||
unsigned char * | u_dst, | ||
int | u_dst_pitch, | ||
const unsigned char * | v_src, | ||
int | v_src_pitch, | ||
unsigned char * | v_dst, | ||
int | v_dst_pitch, | ||
int | width, | ||
int | height | ||
) |
References _copy_plane(), height, and width.
Referenced by _draw_image(), _x_get_current_frame_data(), crop_frame(), duplicate_frame(), realdec_decode_data(), send_frames(), vaapi_provide_standard_frame_data(), vaapi_software_render_frame(), vpx_decode_data(), write_frame_sfb(), and yuv_decode_data().
|
extern |
Referenced by init_yuv_conversion().
|
extern |
Referenced by init_yuv_conversion().
|
extern |
Referenced by init_yuv_conversion().
|
extern |
Referenced by init_yuv_conversion().
|
extern |
Referenced by init_yuv_conversion().
|
extern |
Referenced by init_yuv_conversion().
|
extern |
Referenced by init_yuv_conversion().
|
extern |
Referenced by _aom_decode_data(), _copy_plane(), _dav1d_decode_data(), _x_demux_send_data(), _xine_buffer_copyin(), ao_coreaudio_render_proc(), ao_coreaudio_write(), ao_resend_store(), asf_send_buffer_defrag(), audio_fill(), bitplane_decode_data(), cache_plugin_read(), collect_data(), copy_chunk(), copy_slice(), decode_render(), DeinterlaceGreedy2Frame_MMX(), DeinterlaceGreedy2Frame_SSE2(), demux_real_send_chunk(), demux_str_send_chunk(), demux_vc1_es_send_headers(), demux_wv_send_chunk(), draw_fftgraph(), dvaudio_decode_data(), dxr3_spudec_decode_data(), dxr3_spudec_update_nav(), eq2_draw(), eq_draw(), fb_display_frame(), ff_audio_decode_data(), ff_convert_frame(), ff_handle_buffer(), ff_handle_header_buffer(), flac_decode_data(), flac_read_callback(), flush_buffer(), fooaudio_decode_data(), foovideo_decode_data(), frame_copy_content(), gnutls_tcp_pull(), goom_update(), gsm610_decode_data(), handle_realvideo(), handle_sub_utf8(), handle_vobsub(), hevc_decode_data(), init_codec_real(), init_codec_video(), init_codec_vobsub(), init_codec_xiph(), macosx_display_frame(), mad_decode_data(), mms_read(), mmsh_read(), mpc_decode_data(), mpc_reader_read(), nsf_decode_data(), open_dts_file(), open_plugin(), opengl2_draw(), parse_block(), parse_frame(), post_intercept_video_frame(), pvr_plugin_read_block(), qtv_decode_data(), readin_op(), realdec_decode_data(), rgb_decode_data(), scale_line_1_1(), spudec_decode_data(), spudec_process(), stdin_plugin_read(), test_plugin_read(), unsharp(), update_fast_memcpy(), v4l2_input_dequeue_video_buffer(), v4l_plugin_read_block(), vaapi_duplicate_frame_data(), vaapi_overlay_end(), vaapi_ovl_associate(), vdpau_h264_alter_decode_data(), vdpau_mpeg12_decode_data(), vdpau_mpeg4_decode_data(), vdpau_vc1_decode_data(), vdr_execute_rpc_command(), video_overlay_add_event(), vorbis_decode_data(), vpx_decode_data(), w32a_decode_audio(), w32v_decode_data(), wavpack_decode_data(), win32_display_frame(), write_frame_YUV420P2(), xine_buffer_copyout(), xine_buffer_dup(), xine_buffer_read_bytes(), xine_memdup(), xine_memdup0(), xine_probe_fast_memcpy(), xine_realloc_aligned(), xxmc_do_update_frame(), yuv2frame(), yuv2rgb_c_16(), yuv2rgb_c_24_bgr(), yuv2rgb_c_24_rgb(), yuv2rgb_c_32(), yuv2rgb_c_8(), yuv2rgb_c_gray(), yuv2rgb_c_palette(), yuv411_to_yv12_c(), yuv9_to_yv12_c(), yuv_decode_data(), yuy22rgb_c_16(), yuy22rgb_c_24_bgr(), yuy22rgb_c_24_rgb(), yuy22rgb_c_32(), yuy22rgb_c_8(), yuy22rgb_c_gray(), yuy22rgb_c_palette(), and yv12_to_nv12().
|
extern |
Referenced by init_yuv_conversion().
|
extern |
Referenced by init_yuv_conversion().
|
extern |
Referenced by init_yuv_conversion().
|
extern |
Referenced by ff_convert_frame(), and init_yuv_conversion().
|
extern |
Referenced by bitplane_decode_data(), goom_port_put_buffer(), init_yuv_conversion(), oscope_port_put_buffer(), and yuv2frame().
|
extern |
Referenced by ff_convert_frame(), init_yuv_conversion(), and yuv_decode_data().
|
extern |
|
extern |
Referenced by deinterlace_draw(), init_yuv_conversion(), macosx_display_frame(), and write_frame_sfb().