libavformat/xmv.c File Reference

Microsoft XMV demuxer. More...

#include <stdint.h>
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
#include "riff.h"

Go to the source code of this file.

Data Structures

struct  XMVVideoPacket
 A video packet with an XMV file. More...
struct  XMVAudioPacket
 An audio packet with an XMV file. More...
struct  XMVDemuxContext
 Context for demuxing an XMV file. More...

Defines

#define XMV_MIN_HEADER_SIZE   36
 The min size of an XMV header.
#define XMV_AUDIO_ADPCM51_FRONTLEFTRIGHT   1
 Audio flag: ADPCM'd 5.1 stream, front left / right channels.
#define XMV_AUDIO_ADPCM51_FRONTCENTERLOW   2
 Audio flag: ADPCM'd 5.1 stream, front center / low frequency channels.
#define XMV_AUDIO_ADPCM51_REARLEFTRIGHT   4
 Audio flag: ADPCM'd 5.1 stream, rear left / right channels.
#define XMV_AUDIO_ADPCM51
 Audio flag: Any of the ADPCM'd 5.1 stream flags.

Typedefs

typedef struct XMVVideoPacket XMVVideoPacket
 A video packet with an XMV file.
typedef struct XMVAudioPacket XMVAudioPacket
 An audio packet with an XMV file.
typedef struct XMVDemuxContext XMVDemuxContext
 Context for demuxing an XMV file.

Functions

static int xmv_probe (AVProbeData *p)
static int xmv_read_header (AVFormatContext *s, AVFormatParameters *ap)
static void xmv_read_extradata (uint8_t *extradata, AVIOContext *pb)
static int xmv_process_packet_header (AVFormatContext *s)
static int xmv_fetch_new_packet (AVFormatContext *s)
static int xmv_fetch_audio_packet (AVFormatContext *s, AVPacket *pkt, uint32_t stream)
static int xmv_fetch_video_packet (AVFormatContext *s, AVPacket *pkt)
static int xmv_read_packet (AVFormatContext *s, AVPacket *pkt)
static int xmv_read_close (AVFormatContext *s)

Variables

AVInputFormat ff_xmv_demuxer

Detailed Description

Microsoft XMV demuxer.

Definition in file xmv.c.


Define Documentation

#define XMV_AUDIO_ADPCM51
Value:

Audio flag: Any of the ADPCM'd 5.1 stream flags.

Definition at line 47 of file xmv.c.

Referenced by xmv_read_header().

#define XMV_AUDIO_ADPCM51_FRONTCENTERLOW   2

Audio flag: ADPCM'd 5.1 stream, front center / low frequency channels.

Definition at line 42 of file xmv.c.

#define XMV_AUDIO_ADPCM51_FRONTLEFTRIGHT   1

Audio flag: ADPCM'd 5.1 stream, front left / right channels.

Definition at line 40 of file xmv.c.

#define XMV_AUDIO_ADPCM51_REARLEFTRIGHT   4

Audio flag: ADPCM'd 5.1 stream, rear left / right channels.

Definition at line 44 of file xmv.c.

#define XMV_MIN_HEADER_SIZE   36

The min size of an XMV header.

Definition at line 37 of file xmv.c.

Referenced by xmv_probe().


Typedef Documentation

An audio packet with an XMV file.

Context for demuxing an XMV file.

A video packet with an XMV file.


Function Documentation

static int xmv_fetch_audio_packet ( AVFormatContext s,
AVPacket pkt,
uint32_t  stream 
) [static]

Definition at line 398 of file xmv.c.

Referenced by xmv_read_packet().

static int xmv_fetch_new_packet ( AVFormatContext s) [static]

Definition at line 371 of file xmv.c.

Referenced by xmv_read_packet().

static int xmv_fetch_video_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 444 of file xmv.c.

Referenced by xmv_read_packet().

static int xmv_probe ( AVProbeData p) [static]

Definition at line 109 of file xmv.c.

static int xmv_process_packet_header ( AVFormatContext s) [static]

Definition at line 265 of file xmv.c.

Referenced by xmv_fetch_new_packet().

static int xmv_read_close ( AVFormatContext s) [static]

Definition at line 541 of file xmv.c.

static void xmv_read_extradata ( uint8_t *  extradata,
AVIOContext pb 
) [static]

Definition at line 236 of file xmv.c.

Referenced by xmv_process_packet_header().

static int xmv_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 126 of file xmv.c.

static int xmv_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 503 of file xmv.c.


Variable Documentation

Initial value:
 {
    .name           = "xmv",
    .long_name      = NULL_IF_CONFIG_SMALL("Microsoft XMV"),
    .priv_data_size = sizeof(XMVDemuxContext),
    .read_probe     = xmv_probe,
    .read_header    = xmv_read_header,
    .read_packet    = xmv_read_packet,
    .read_close     = xmv_read_close,
}

Definition at line 550 of file xmv.c.