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

Data Structures

struct  demux_yuv4mpeg2_t
 

Macros

#define LOG_MODULE   "demux_yuv4mpeg2"
 
#define Y4M_SIGNATURE_SIZE   9
 
#define Y4M_SIGNATURE   "YUV4MPEG2"
 
#define Y4M_FRAME_SIGNATURE_SIZE   6
 
#define Y4M_FRAME_SIGNATURE   "FRAME\x0A"
 
#define Y4M_HEADER_BYTES   100
 

Functions

static int open_yuv4mpeg2_file (demux_yuv4mpeg2_t *this)
 
static int demux_yuv4mpeg2_send_chunk (demux_plugin_t *this_gen)
 
static void demux_yuv4mpeg2_send_headers (demux_plugin_t *this_gen)
 
static int demux_yuv4mpeg2_seek (demux_plugin_t *this_gen, off_t start_pos, int start_time, int playing)
 
static int demux_yuv4mpeg2_get_status (demux_plugin_t *this_gen)
 
static int demux_yuv4mpeg2_get_stream_length (demux_plugin_t *this_gen)
 
static uint32_t demux_yuv4mpeg2_get_capabilities (demux_plugin_t *this_gen)
 
static int demux_yuv4mpeg2_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)
 
void * demux_yuv4mpeg2_init_class (xine_t *xine, const void *data)
 

Macro Definition Documentation

◆ LOG_MODULE

#define LOG_MODULE   "demux_yuv4mpeg2"

◆ Y4M_FRAME_SIGNATURE

#define Y4M_FRAME_SIGNATURE   "FRAME\x0A"

◆ Y4M_FRAME_SIGNATURE_SIZE

#define Y4M_FRAME_SIGNATURE_SIZE   6

◆ Y4M_HEADER_BYTES

#define Y4M_HEADER_BYTES   100

Referenced by open_yuv4mpeg2_file().

◆ Y4M_SIGNATURE

#define Y4M_SIGNATURE   "YUV4MPEG2"

Referenced by open_yuv4mpeg2_file().

◆ Y4M_SIGNATURE_SIZE

#define Y4M_SIGNATURE_SIZE   9

Referenced by open_yuv4mpeg2_file().

Function Documentation

◆ demux_yuv4mpeg2_get_capabilities()

static uint32_t demux_yuv4mpeg2_get_capabilities ( demux_plugin_t * this_gen)
static

References DEMUX_CAP_NOCAP.

Referenced by open_plugin().

◆ demux_yuv4mpeg2_get_optional_data()

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

References DEMUX_OPTIONAL_UNSUPPORTED.

Referenced by open_plugin().

◆ demux_yuv4mpeg2_get_status()

static int demux_yuv4mpeg2_get_status ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_yuv4mpeg2_get_stream_length()

static int demux_yuv4mpeg2_get_stream_length ( demux_plugin_t * this_gen)
static

References Y4M_FRAME_SIGNATURE_SIZE.

Referenced by open_plugin().

◆ demux_yuv4mpeg2_init_class()

void * demux_yuv4mpeg2_init_class ( xine_t * xine,
const void * data )

◆ demux_yuv4mpeg2_seek()

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

◆ demux_yuv4mpeg2_send_chunk()

static int demux_yuv4mpeg2_send_chunk ( demux_plugin_t * this_gen)
static

◆ demux_yuv4mpeg2_send_headers()

static void demux_yuv4mpeg2_send_headers ( demux_plugin_t * this_gen)
static

◆ open_plugin()

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

◆ open_yuv4mpeg2_file()

static int open_yuv4mpeg2_file ( demux_yuv4mpeg2_t * this)
static