xine-lib 1.2.13-20230125hg15249
|
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/demux.h>
#include <xine/buffer.h>
#include "bswap.h"
#include "group_audio.h"
Data Structures | |
struct | demux_voc_t |
Macros | |
#define | PCM_BLOCK_ALIGN 1024 |
#define | VOC_HEADER_SIZE 0x1A |
#define | VOC_SIGNATURE "Creative Voice File\x1A" |
#define | BLOCK_PREAMBLE_SIZE 4 |
Functions | |
static int | probe_voc_file (input_plugin_t *input, int *first_block_offset) |
static int | open_voc_file (demux_voc_t *this, int first_block_offset) |
static int | demux_voc_send_chunk (demux_plugin_t *this_gen) |
static void | demux_voc_send_headers (demux_plugin_t *this_gen) |
static int | demux_voc_seek (demux_plugin_t *this_gen, off_t start_pos, int start_time, int playing) |
static int | demux_voc_get_status (demux_plugin_t *this_gen) |
static int | demux_voc_get_stream_length (demux_plugin_t *this_gen) |
static uint32_t | demux_voc_get_capabilities (demux_plugin_t *this_gen) |
static int | demux_voc_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_voc_init_plugin (xine_t *xine, const void *data) |
#define BLOCK_PREAMBLE_SIZE 4 |
Referenced by open_voc_file().
#define PCM_BLOCK_ALIGN 1024 |
Referenced by demux_voc_seek(), and demux_voc_send_chunk().
#define VOC_HEADER_SIZE 0x1A |
Referenced by probe_voc_file().
#define VOC_SIGNATURE "Creative Voice File\x1A" |
Referenced by probe_voc_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 |
Referenced by open_plugin().
void * demux_voc_init_plugin | ( | 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_flush_engine(), DEMUX_FINISHED, DEMUX_OK, input(), INPUT_IS_SEEKABLE, and PCM_BLOCK_ALIGN.
Referenced by open_plugin().
|
static |
References _x_demux_control_newpts(), BUF_FLAG_FRAME_END, BUF_FLAG_SEEK, buf_element_s::content, buf_element_s::decoder_flags, 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, NULL, PCM_BLOCK_ALIGN, buf_element_s::pts, buf_element_s::size, and buf_element_s::type.
Referenced by open_plugin().
|
static |
References _x_demux_control_start(), _x_stream_info_set(), BUF_FLAG_FRAME_END, BUF_FLAG_HEADER, BUF_FLAG_STDHEADER, buf_element_s::decoder_flags, buf_element_s::decoder_info, DEMUX_OK, buf_element_s::size, buf_element_s::type, XINE_STREAM_INFO_AUDIO_BITS, XINE_STREAM_INFO_AUDIO_CHANNELS, XINE_STREAM_INFO_AUDIO_SAMPLERATE, XINE_STREAM_INFO_HAS_AUDIO, and XINE_STREAM_INFO_HAS_VIDEO.
Referenced by open_plugin().
|
static |
References xine_stream_s::content_detection_method, default_demux_plugin_dispose, DEMUX_FINISHED, demux_voc_get_capabilities(), demux_voc_get_optional_data(), demux_voc_get_status(), demux_voc_get_stream_length(), demux_voc_seek(), demux_voc_send_chunk(), demux_voc_send_headers(), input(), METHOD_BY_CONTENT, METHOD_BY_MRL, METHOD_EXPLICIT, NULL, open_voc_file(), probe_voc_file(), and input_plugin_s::seek.
Referenced by demux_voc_init_plugin().
|
static |
References _, _X_LE_24, BLOCK_PREAMBLE_SIZE, BUF_AUDIO_LPCM_BE, input(), xine_log(), and XINE_LOG_MSG.
Referenced by open_plugin().
|
static |
References _x_demux_read_header(), _X_LE_16, input(), VOC_HEADER_SIZE, and VOC_SIGNATURE.
Referenced by open_plugin().