xine-lib 1.2.11
Data Structures | Macros | Typedefs | Functions | Variables
libjpeg.c File Reference
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <jpeglib.h>
#include <xine/xine_internal.h>
#include <xine/video_out.h>
#include <xine/buffer.h>
#include <xine/xine_buffer.h>

Data Structures

struct  jpeg_decoder_s
 

Macros

#define LOG_MODULE   "jpeg_video_decoder"
 
#define LOG_VERBOSE
 

Typedefs

typedef struct jpeg_decoder_s jpeg_decoder_t
 

Functions

 mem_init_source (j_decompress_ptr cinfo)
 
 mem_fill_input_buffer (j_decompress_ptr cinfo)
 
 mem_skip_input_data (j_decompress_ptr cinfo, long num_bytes)
 
 mem_term_source (j_decompress_ptr cinfo)
 
static void jpeg_memory_src (j_decompress_ptr cinfo, const JOCTET *data, size_t size)
 
static vo_frame_t_jpeg_decode_data (jpeg_decoder_t *this, const char *data, size_t size)
 
static void jpeg_decode_data (video_decoder_t *this_gen, buf_element_t *buf)
 
static void jpeg_flush (video_decoder_t *this_gen)
 
static void jpeg_reset (video_decoder_t *this_gen)
 
static void jpeg_discontinuity (video_decoder_t *this_gen)
 
static void jpeg_dispose (video_decoder_t *this_gen)
 
static video_decoder_topen_plugin (video_decoder_class_t *class_gen, xine_stream_t *stream)
 
static void * init_class (xine_t *xine, const void *data)
 

Variables

static const uint32_t supported_types [] = { BUF_VIDEO_JPEG, 0 }
 
static const decoder_info_t dec_info_jpeg
 
const plugin_info_t xine_plugin_info[] EXPORTED
 

Macro Definition Documentation

◆ LOG_MODULE

#define LOG_MODULE   "jpeg_video_decoder"

◆ LOG_VERBOSE

#define LOG_VERBOSE

Typedef Documentation

◆ jpeg_decoder_t

Function Documentation

◆ _jpeg_decode_data()

static vo_frame_t * _jpeg_decode_data ( jpeg_decoder_t this,
const char *  data,
size_t  size 
)
static

◆ init_class()

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

◆ jpeg_decode_data()

static void jpeg_decode_data ( video_decoder_t this_gen,
buf_element_t buf 
)
static

◆ jpeg_discontinuity()

static void jpeg_discontinuity ( video_decoder_t this_gen)
static

Referenced by open_plugin().

◆ jpeg_dispose()

static void jpeg_dispose ( video_decoder_t this_gen)
static

References lprintf, NULL, and xine_buffer_free.

Referenced by open_plugin().

◆ jpeg_flush()

static void jpeg_flush ( video_decoder_t this_gen)
static

References NULL.

Referenced by open_plugin().

◆ jpeg_memory_src()

static void jpeg_memory_src ( j_decompress_ptr  cinfo,
const JOCTET *  data,
size_t  size 
)
static

◆ jpeg_reset()

static void jpeg_reset ( video_decoder_t this_gen)
static

References NULL.

Referenced by open_plugin().

◆ mem_fill_input_buffer()

mem_fill_input_buffer ( j_decompress_ptr  cinfo)

◆ mem_init_source()

mem_init_source ( j_decompress_ptr  cinfo)

Referenced by jpeg_memory_src().

◆ mem_skip_input_data()

mem_skip_input_data ( j_decompress_ptr  cinfo,
long  num_bytes 
)

References mem_fill_input_buffer().

Referenced by jpeg_memory_src().

◆ mem_term_source()

mem_term_source ( j_decompress_ptr  cinfo)

Referenced by jpeg_memory_src().

◆ open_plugin()

static video_decoder_t * open_plugin ( video_decoder_class_t class_gen,
xine_stream_t stream 
)
static

Variable Documentation

◆ dec_info_jpeg

const decoder_info_t dec_info_jpeg
static
Initial value:
= {
.supported_types = supported_types,
.priority = 10,
}
static const uint32_t supported_types[]
Definition: libjpeg.c:530

◆ 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: libjpeg.c:498
static const decoder_info_t dec_info_jpeg
Definition: libjpeg.c:532
#define XINE_VERSION_CODE
Definition: xine_internal.h:57
NULL
Definition: xine_plugin.c:78
#define PLUGIN_NONE
Definition: xine_plugin.h:29
#define PLUGIN_VIDEO_DECODER
Definition: xine_plugin.h:33

◆ supported_types

const uint32_t supported_types[] = { BUF_VIDEO_JPEG, 0 }
static