xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Functions | Variables
demux_mng.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/demux.h>
#include <libmng.h>

Data Structures

struct  demux_mng_t
 

Macros

#define LOG_MODULE   "demux_mng"
 
#define LOG_VERBOSE
 

Functions

static mng_ptr mymng_alloc (mng_size_t size)
 
static void mymng_free (mng_ptr p, mng_size_t size)
 
static mng_bool mymng_open_stream (mng_handle mngh)
 
static mng_bool mymng_close_stream (mng_handle mngh)
 
static mng_bool mymng_read_stream (mng_handle mngh, mng_ptr buffer, mng_uint32 size, mng_uint32 *bytesread)
 
static mng_bool mymng_process_header (mng_handle mngh, mng_uint32 width, mng_uint32 height)
 
static mng_uint32 mymng_get_tick_count (mng_handle mngh)
 
static mng_bool mymng_set_timer (mng_handle mngh, mng_uint32 msecs)
 
static mng_ptr mymng_get_canvas_line (mng_handle mngh, mng_uint32 line)
 
static mng_bool mymng_refresh (mng_handle mngh, mng_uint32 x, mng_uint32 y, mng_uint32 w, mng_uint32 h)
 
static int demux_mng_send_chunk (demux_plugin_t *this_gen)
 
static void demux_mng_send_headers (demux_plugin_t *this_gen)
 
static int demux_mng_seek (demux_plugin_t *this_gen, off_t start_pos, int start_time, int playing)
 
static void demux_mng_dispose (demux_plugin_t *this_gen)
 
static int demux_mng_get_status (demux_plugin_t *this_gen)
 
static int demux_mng_get_stream_length (demux_plugin_t *this_gen)
 
static uint32_t demux_mng_get_capabilities (demux_plugin_t *this_gen)
 
static int demux_mng_get_optional_data (demux_plugin_t *this_gen, void *data, int data_type)
 
static demux_plugin_topen_plugin (demux_class_t *class_gen, xine_stream_t *stream, input_plugin_t *input)
 
static void * init_plugin (xine_t *xine, const void *data)
 

Variables

static const demuxer_info_t demux_info_mng
 
const plugin_info_t xine_plugin_info[] EXPORTED
 

Macro Definition Documentation

◆ LOG_MODULE

#define LOG_MODULE   "demux_mng"

◆ LOG_VERBOSE

#define LOG_VERBOSE

Function Documentation

◆ demux_mng_dispose()

static void demux_mng_dispose ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_mng_get_capabilities()

static uint32_t demux_mng_get_capabilities ( demux_plugin_t * this_gen)
static

References DEMUX_CAP_NOCAP.

Referenced by open_plugin().

◆ demux_mng_get_optional_data()

static int demux_mng_get_optional_data ( demux_plugin_t * this_gen,
void * data,
int data_type )
static

References DEMUX_OPTIONAL_UNSUPPORTED.

Referenced by open_plugin().

◆ demux_mng_get_status()

static int demux_mng_get_status ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_mng_get_stream_length()

static int demux_mng_get_stream_length ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_mng_seek()

static int demux_mng_seek ( demux_plugin_t * this_gen,
off_t start_pos,
int start_time,
int playing )
static

Referenced by open_plugin().

◆ demux_mng_send_chunk()

static int demux_mng_send_chunk ( demux_plugin_t * this_gen)
static

◆ demux_mng_send_headers()

static void demux_mng_send_headers ( demux_plugin_t * this_gen)
static

◆ init_plugin()

static void * init_plugin ( xine_t * xine,
const void * data )
static

◆ mymng_alloc()

static mng_ptr mymng_alloc ( mng_size_t size)
static

Referenced by open_plugin().

◆ mymng_close_stream()

static mng_bool mymng_close_stream ( mng_handle mngh)
static

References DEMUX_FINISHED.

Referenced by open_plugin().

◆ mymng_free()

static void mymng_free ( mng_ptr p,
mng_size_t size )
static

Referenced by open_plugin().

◆ mymng_get_canvas_line()

static mng_ptr mymng_get_canvas_line ( mng_handle mngh,
mng_uint32 line )
static

Referenced by open_plugin().

◆ mymng_get_tick_count()

static mng_uint32 mymng_get_tick_count ( mng_handle mngh)
static

Referenced by open_plugin().

◆ mymng_open_stream()

static mng_bool mymng_open_stream ( mng_handle mngh)
static

References input(), and INPUT_IS_SEEKABLE.

Referenced by open_plugin().

◆ mymng_process_header()

static mng_bool mymng_process_header ( mng_handle mngh,
mng_uint32 width,
mng_uint32 height )
static

References height, and width.

Referenced by open_plugin().

◆ mymng_read_stream()

static mng_bool mymng_read_stream ( mng_handle mngh,
mng_ptr buffer,
mng_uint32 size,
mng_uint32 * bytesread )
static

References input().

Referenced by open_plugin().

◆ mymng_refresh()

static mng_bool mymng_refresh ( mng_handle mngh,
mng_uint32 x,
mng_uint32 y,
mng_uint32 w,
mng_uint32 h )
static

Referenced by open_plugin().

◆ mymng_set_timer()

static mng_bool mymng_set_timer ( mng_handle mngh,
mng_uint32 msecs )
static

Referenced by open_plugin().

◆ open_plugin()

static demux_plugin_t * open_plugin ( demux_class_t * class_gen,
xine_stream_t * stream,
input_plugin_t * input )
static

Variable Documentation

◆ demux_info_mng

const demuxer_info_t demux_info_mng
static
Initial value:
= {
.priority = 10,
}

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL }
}
static const demuxer_info_t demux_info_mng
Definition demux_mng.c:377
static void * init_plugin(xine_t *xine, const void *data)
Definition demux_mng.c:356
#define XINE_VERSION_CODE
Definition xine_internal.h:57
NULL
Definition xine_plugin.c:78
#define PLUGIN_DEMUX
Definition xine_plugin.h:31
#define PLUGIN_NONE
Definition xine_plugin.h:29