xine-lib 1.2.13-20230125hg15249
|
#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_t * | open_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) |
#define LOG_MODULE "demux_yuv4mpeg2" |
#define Y4M_FRAME_SIGNATURE "FRAME\x0A" |
Referenced by demux_yuv4mpeg2_send_chunk().
#define Y4M_FRAME_SIGNATURE_SIZE 6 |
Referenced by demux_yuv4mpeg2_get_stream_length(), demux_yuv4mpeg2_seek(), and demux_yuv4mpeg2_send_chunk().
#define Y4M_HEADER_BYTES 100 |
Referenced by open_yuv4mpeg2_file().
#define Y4M_SIGNATURE "YUV4MPEG2" |
Referenced by open_yuv4mpeg2_file().
#define Y4M_SIGNATURE_SIZE 9 |
Referenced by open_yuv4mpeg2_file().
|
static |
References DEMUX_CAP_NOCAP.
Referenced by open_plugin().
|
static |
References DEMUX_OPTIONAL_UNSUPPORTED.
Referenced by open_plugin().
|
static |
Referenced by open_plugin().
|
static |
References Y4M_FRAME_SIGNATURE_SIZE.
Referenced by open_plugin().
void * demux_yuv4mpeg2_init_class | ( | xine_t * | xine, |
const void * | data ) |
References demux_plugin_s::dispose, N_, NULL, open_plugin(), and demux_class_s::open_plugin.
|
static |
References _x_demux_control_newpts(), _x_demux_flush_engine(), DEMUX_OK, input(), INPUT_IS_SEEKABLE, demux_plugin_s::seek, and Y4M_FRAME_SIGNATURE_SIZE.
Referenced by open_plugin().
|
static |
References _x_demux_control_newpts(), BUF_FLAG_COLOR_MATRIX, BUF_FLAG_FRAME_END, BUF_FLAG_SEEK, BUF_VIDEO_I420, buf_element_s::content, buf_element_s::decoder_flags, buf_element_s::decoder_info, DEMUX_FINISHED, buf_element_s::extra_info, buf_element_s::free_buffer, input(), extra_info_s::input_normpos, extra_info_s::input_time, buf_element_s::max_size, MIN, buf_element_s::pts, buf_element_s::size, buf_element_s::type, Y4M_FRAME_SIGNATURE, and Y4M_FRAME_SIGNATURE_SIZE.
Referenced by open_plugin().
|
static |
References _x_demux_control_start(), _x_stream_info_set(), BUF_FLAG_ASPECT, BUF_FLAG_FRAME_END, BUF_FLAG_FRAMERATE, BUF_FLAG_HEADER, BUF_FLAG_STDHEADER, BUF_VIDEO_I420, buf_element_s::content, buf_element_s::decoder_flags, buf_element_s::decoder_info, DEMUX_OK, buf_element_s::size, buf_element_s::type, XINE_STREAM_INFO_HAS_AUDIO, XINE_STREAM_INFO_HAS_VIDEO, XINE_STREAM_INFO_VIDEO_HEIGHT, and XINE_STREAM_INFO_VIDEO_WIDTH.
Referenced by open_plugin().
|
static |
References xine_stream_s::content_detection_method, default_demux_plugin_dispose, DEMUX_FINISHED, demux_yuv4mpeg2_get_capabilities(), demux_yuv4mpeg2_get_optional_data(), demux_yuv4mpeg2_get_status(), demux_yuv4mpeg2_get_stream_length(), demux_yuv4mpeg2_seek(), demux_yuv4mpeg2_send_chunk(), demux_yuv4mpeg2_send_headers(), input(), METHOD_BY_CONTENT, METHOD_BY_MRL, METHOD_EXPLICIT, NULL, open_yuv4mpeg2_file(), and input_plugin_s::seek.
Referenced by demux_yuv4mpeg2_init_class().
|
static |
References _x_demux_read_header(), input(), INPUT_IS_SEEKABLE, NULL, Y4M_HEADER_BYTES, Y4M_SIGNATURE, and Y4M_SIGNATURE_SIZE.
Referenced by open_plugin().