xine-lib 1.2.11
Data Structures | Macros | Functions
demux_aiff.c File Reference
#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_aiff_t
 

Macros

#define FOURCC_TAG   BE_FOURCC
 
#define FORM_TAG   FOURCC_TAG('F', 'O', 'R', 'M')
 
#define AIFF_TAG   FOURCC_TAG('A', 'I', 'F', 'F')
 
#define COMM_TAG   FOURCC_TAG('C', 'O', 'M', 'M')
 
#define SSND_TAG   FOURCC_TAG('S', 'S', 'N', 'D')
 
#define APCM_TAG   FOURCC_TAG('A', 'P', 'C', 'M')
 
#define NAME_TAG   FOURCC_TAG('N', 'A', 'M', 'E')
 
#define AUTH_TAG   FOURCC_TAG('A', 'U', 'T', 'H')
 
#define COPY_TAG   FOURCC_TAG('(', 'c', ')', ' ')
 
#define ANNO_TAG   FOURCC_TAG('A', 'N', 'N', 'O')
 
#define PREAMBLE_SIZE   8
 
#define AIFF_SIGNATURE_SIZE   12
 
#define PCM_BLOCK_ALIGN   1024
 

Functions

static int extended_to_int (const unsigned char p[10])
 
static int probe_aiff_file (input_plugin_t *input)
 
static int open_aiff_file (demux_aiff_t *this)
 
static int demux_aiff_send_chunk (demux_plugin_t *this_gen)
 
static void demux_aiff_send_headers (demux_plugin_t *this_gen)
 
static int demux_aiff_seek (demux_plugin_t *this_gen, off_t start_pos, int start_time, int playing)
 
static int demux_aiff_get_status (demux_plugin_t *this_gen)
 
static int demux_aiff_get_stream_length (demux_plugin_t *this_gen)
 
static uint32_t demux_aiff_get_capabilities (demux_plugin_t *this_gen)
 
static int demux_aiff_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_aiff_init_plugin (xine_t *xine, const void *data)
 

Macro Definition Documentation

◆ AIFF_SIGNATURE_SIZE

#define AIFF_SIGNATURE_SIZE   12

◆ AIFF_TAG

#define AIFF_TAG   FOURCC_TAG('A', 'I', 'F', 'F')

◆ ANNO_TAG

#define ANNO_TAG   FOURCC_TAG('A', 'N', 'N', 'O')

◆ APCM_TAG

#define APCM_TAG   FOURCC_TAG('A', 'P', 'C', 'M')

◆ AUTH_TAG

#define AUTH_TAG   FOURCC_TAG('A', 'U', 'T', 'H')

◆ COMM_TAG

#define COMM_TAG   FOURCC_TAG('C', 'O', 'M', 'M')

◆ COPY_TAG

#define COPY_TAG   FOURCC_TAG('(', 'c', ')', ' ')

◆ FORM_TAG

#define FORM_TAG   FOURCC_TAG('F', 'O', 'R', 'M')

◆ FOURCC_TAG

#define FOURCC_TAG   BE_FOURCC

◆ NAME_TAG

#define NAME_TAG   FOURCC_TAG('N', 'A', 'M', 'E')

◆ PCM_BLOCK_ALIGN

#define PCM_BLOCK_ALIGN   1024

◆ PREAMBLE_SIZE

#define PREAMBLE_SIZE   8

◆ SSND_TAG

#define SSND_TAG   FOURCC_TAG('S', 'S', 'N', 'D')

Function Documentation

◆ demux_aiff_get_capabilities()

static uint32_t demux_aiff_get_capabilities ( demux_plugin_t this_gen)
static

References DEMUX_CAP_NOCAP.

Referenced by open_plugin().

◆ demux_aiff_get_optional_data()

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

References DEMUX_OPTIONAL_UNSUPPORTED.

Referenced by open_plugin().

◆ demux_aiff_get_status()

static int demux_aiff_get_status ( demux_plugin_t this_gen)
static

Referenced by open_plugin().

◆ demux_aiff_get_stream_length()

static int demux_aiff_get_stream_length ( demux_plugin_t this_gen)
static

Referenced by open_plugin().

◆ demux_aiff_init_plugin()

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

◆ demux_aiff_seek()

static int demux_aiff_seek ( demux_plugin_t this_gen,
off_t  start_pos,
int  start_time,
int  playing 
)
static

◆ demux_aiff_send_chunk()

static int demux_aiff_send_chunk ( demux_plugin_t this_gen)
static

◆ demux_aiff_send_headers()

static void demux_aiff_send_headers ( demux_plugin_t this_gen)
static

◆ extended_to_int()

static int extended_to_int ( const unsigned char  p[10])
static

Referenced by open_aiff_file().

◆ open_aiff_file()

static int open_aiff_file ( demux_aiff_t this)
static

◆ open_plugin()

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

◆ probe_aiff_file()

static int probe_aiff_file ( input_plugin_t input)
static