xine-lib 1.2.11
|
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/compat.h>
#include <xine/input_plugin.h>
#include <xine/video_out.h>
#include "input_helper.h"
Data Structures | |
struct | test_input_class_t |
struct | test_input_plugin_t |
Macros | |
#define | LOG_MODULE "input_test" |
#define | LOG_VERBOSE |
#define | TEST_FILES ((sizeof (test_names) / sizeof (char *)) - 1) |
#define | SSHIFT 17 |
#define | SFACTOR (1 << SSHIFT) |
#define | INPUT_TEST_CATALOG { PLUGIN_INPUT | PLUGIN_MUST_PRELOAD, 18, "TEST", XINE_VERSION_CODE, &input_info_test, test_init_plugin } |
Functions | |
static void | put32le (unsigned int v, unsigned char *p) |
static unsigned int | isqr (unsigned int v) |
static int | iatan (int x, int y) |
static int | adiff (int a, int b) |
static void | render_parallelogram (unsigned char *buf, int buf_width, int buf_height, unsigned int gray, int x, int y, int width, int height, int slant, int sc) |
static void | render_turn (unsigned char *buf, int buf_width, int buf_height, unsigned int gray, int x, int y, int size, int quad) |
static void | render_xine_logo (unsigned char *buf, int buf_width, int buf_height, unsigned int gray) |
static int | test_make (test_input_plugin_t *this) |
static off_t | test_plugin_read (input_plugin_t *this_gen, void *buf, off_t len) |
static off_t | test_plugin_seek (input_plugin_t *this_gen, off_t offset, int origin) |
static off_t | test_plugin_get_current_pos (input_plugin_t *this_gen) |
static off_t | test_plugin_get_length (input_plugin_t *this_gen) |
static const char * | test_plugin_get_mrl (input_plugin_t *this_gen) |
static void | test_plugin_dispose (input_plugin_t *this_gen) |
static int | test_plugin_open (input_plugin_t *this_gen) |
static input_plugin_t * | test_class_get_instance (input_class_t *cls_gen, xine_stream_t *stream, const char *data) |
static const char *const * | test_get_autoplay_list (input_class_t *this_gen, int *num_files) |
static xine_mrl_t ** | test_class_get_dir (input_class_t *this_gen, const char *filename, int *nFiles) |
static void | test_class_dispose (input_class_t *this_gen) |
static void * | test_init_plugin (xine_t *xine, const void *data) |
Variables | |
static const char *const | test_names [] |
static const char | test_type [] = {2, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 2} |
static const char | test_is_yuv [] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1} |
static const char | test_is_mpeg_range [] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0} |
static const input_info_t | input_info_test |
const plugin_info_t xine_plugin_info[] | EXPORTED |
#define INPUT_TEST_CATALOG { PLUGIN_INPUT | PLUGIN_MUST_PRELOAD, 18, "TEST", XINE_VERSION_CODE, &input_info_test, test_init_plugin } |
#define LOG_MODULE "input_test" |
#define LOG_VERBOSE |
#define SFACTOR (1 << SSHIFT) |
#define SSHIFT 17 |
#define TEST_FILES ((sizeof (test_names) / sizeof (char *)) - 1) |
|
static |
Referenced by test_make().
|
static |
Referenced by test_make().
|
static |
Referenced by render_parallelogram(), and test_make().
|
static |
Referenced by test_make().
|
static |
References height, isqr(), and width.
Referenced by render_xine_logo().
|
static |
Referenced by render_xine_logo().
|
static |
References height, render_parallelogram(), render_turn(), and width.
Referenced by test_make().
|
static |
Referenced by test_init_plugin().
|
static |
References xine_mrl_s::link, xine_mrl_s::mrl, mrl_file, mrl_file_normal, NULL, xine_mrl_s::origin, xine_mrl_s::size, TEST_FILES, test_names, and xine_mrl_s::type.
Referenced by test_init_plugin().
|
static |
References _x_input_default_get_blocksize(), _x_input_default_get_optional_data(), _x_input_default_read_block(), _x_input_get_capabilities_seekable(), NULL, TEST_FILES, test_names, test_plugin_dispose(), test_plugin_get_current_pos(), test_plugin_get_length(), test_plugin_get_mrl(), test_plugin_open(), test_plugin_read(), and test_plugin_seek().
Referenced by test_init_plugin().
|
static |
References TEST_FILES, and test_names.
Referenced by test_init_plugin().
|
static |
References N_, NULL, test_class_dispose(), test_class_get_dir(), test_class_get_instance(), and test_get_autoplay_list().
|
static |
References _, _x_asprintf(), _x_lock_port_rewiring(), _x_meta_info_set(), _x_unlock_port_rewiring(), adiff(), height, iatan(), isqr(), NULL, put32le(), render_xine_logo(), SFACTOR, SSHIFT, test_is_mpeg_range, test_is_yuv, test_type, VO_PROP_WINDOW_WIDTH, width, and XINE_META_INFO_TITLE.
Referenced by test_plugin_open().
|
static |
Referenced by test_class_get_instance().
|
static |
Referenced by test_class_get_instance().
|
static |
Referenced by test_class_get_instance().
|
static |
References test_names.
Referenced by test_class_get_instance().
|
static |
References test_make().
Referenced by test_class_get_instance().
|
static |
References test_is_yuv, and xine_fast_memcpy.
Referenced by test_class_get_instance().
|
static |
References _x_input_translate_seek().
Referenced by test_class_get_instance().
const plugin_info_t xine_plugin_info [] EXPORTED |
|
static |
|
static |
Referenced by test_make().
|
static |
Referenced by test_make(), and test_plugin_read().
|
static |
Referenced by test_class_get_dir(), test_class_get_instance(), test_get_autoplay_list(), and test_plugin_get_mrl().
|
static |
Referenced by test_make().