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

Data Structures

struct  demux_image_s
 

Macros

#define LOG_MODULE   "demux_image"
 
#define LOG_VERBOSE
 
#define IMAGE_HEADER_LEN   4
 

Typedefs

typedef struct demux_image_s demux_image_t
 

Functions

static uint32_t _probe (xine_t *xine, const uint8_t *header)
 
static int demux_image_get_status (demux_plugin_t *this_gen)
 
static int demux_image_next (demux_plugin_t *this_gen, int decoder_flags)
 
static int demux_image_send_chunk (demux_plugin_t *this_gen)
 
static void demux_image_send_headers (demux_plugin_t *this_gen)
 
static int demux_image_seek (demux_plugin_t *this_gen, off_t start_pos, int start_time, int playing)
 
static int demux_image_get_stream_length (demux_plugin_t *this_gen)
 
static uint32_t demux_image_get_capabilities (demux_plugin_t *this_gen)
 
static int demux_image_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_class (xine_t *xine, const void *data)
 

Variables

static const demuxer_info_t demux_info_image
 
const plugin_info_t xine_plugin_info[] EXPORTED
 

Macro Definition Documentation

◆ IMAGE_HEADER_LEN

#define IMAGE_HEADER_LEN   4

Referenced by open_plugin().

◆ LOG_MODULE

#define LOG_MODULE   "demux_image"

◆ LOG_VERBOSE

#define LOG_VERBOSE

Typedef Documentation

◆ demux_image_t

typedef struct demux_image_s demux_image_t

Function Documentation

◆ _probe()

static uint32_t _probe ( xine_t * xine,
const uint8_t * header )
static

◆ demux_image_get_capabilities()

static uint32_t demux_image_get_capabilities ( demux_plugin_t * this_gen)
static

References DEMUX_CAP_NOCAP.

Referenced by open_plugin().

◆ demux_image_get_optional_data()

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

References DEMUX_OPTIONAL_UNSUPPORTED.

Referenced by open_plugin().

◆ demux_image_get_status()

static int demux_image_get_status ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_image_get_stream_length()

static int demux_image_get_stream_length ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_image_next()

static int demux_image_next ( demux_plugin_t * this_gen,
int decoder_flags )
static

◆ demux_image_seek()

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

◆ demux_image_send_chunk()

static int demux_image_send_chunk ( demux_plugin_t * this_gen)
static

References demux_image_next().

Referenced by open_plugin().

◆ demux_image_send_headers()

static void demux_image_send_headers ( demux_plugin_t * this_gen)
static

◆ init_class()

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

◆ 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_image

const demuxer_info_t demux_info_image
static
Initial value:
= {
.priority = 11,
}

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL }
}
static void * init_class(xine_t *xine, const void *data)
Definition demux_image.c:246
static const demuxer_info_t demux_info_image
Definition demux_image.c:282
#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