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  XMVAudioTrack
 
struct  XMVVideoPacket
 
struct  XMVAudioPacket
 
struct  XMVDemuxContext
 

Macros

#define XMV_MIN_HEADER_SIZE   36
 
#define XMV_AUDIO_ADPCM51_FRONTLEFTRIGHT   1
 
#define XMV_AUDIO_ADPCM51_FRONTCENTERLOW   2
 
#define XMV_AUDIO_ADPCM51_REARLEFTRIGHT   4
 
#define XMV_AUDIO_ADPCM51
 
#define XMV_BLOCK_ALIGN_SIZE   36
 

Typedefs

typedef struct XMVAudioTrack XMVAudioTrack
 
typedef struct XMVVideoPacket XMVVideoPacket
 
typedef struct XMVAudioPacket XMVAudioPacket
 
typedef struct XMVDemuxContext XMVDemuxContext
 

Functions

static int xmv_probe (AVProbeData *p)
 
static int xmv_read_close (AVFormatContext *s)
 
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)
 

Variables

AVInputFormat ff_xmv_demuxer
 

Detailed Description

Microsoft XMV demuxer.

Definition in file xmv.c.

Macro Definition Documentation

#define XMV_AUDIO_ADPCM51
Value:
#define XMV_AUDIO_ADPCM51_REARLEFTRIGHT
Definition: xmv.c:40
#define XMV_AUDIO_ADPCM51_FRONTLEFTRIGHT
Definition: xmv.c:38
#define XMV_AUDIO_ADPCM51_FRONTCENTERLOW
Definition: xmv.c:39

Definition at line 42 of file xmv.c.

Referenced by xmv_read_header().

#define XMV_AUDIO_ADPCM51_FRONTCENTERLOW   2

Definition at line 39 of file xmv.c.

#define XMV_AUDIO_ADPCM51_FRONTLEFTRIGHT   1

Definition at line 38 of file xmv.c.

#define XMV_AUDIO_ADPCM51_REARLEFTRIGHT   4

Definition at line 40 of file xmv.c.

#define XMV_BLOCK_ALIGN_SIZE   36

Definition at line 46 of file xmv.c.

Referenced by xmv_read_header().

#define XMV_MIN_HEADER_SIZE   36

Definition at line 36 of file xmv.c.

Referenced by xmv_probe().

Typedef Documentation

typedef struct XMVAudioTrack XMVAudioTrack

Function Documentation

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

Definition at line 436 of file xmv.c.

Referenced by xmv_read_packet().

static int xmv_fetch_new_packet ( AVFormatContext s)
static

Definition at line 409 of file xmv.c.

Referenced by xmv_read_packet().

static int xmv_fetch_video_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 482 of file xmv.c.

Referenced by xmv_read_packet().

static int xmv_probe ( AVProbeData p)
static

Definition at line 114 of file xmv.c.

static int xmv_process_packet_header ( AVFormatContext s)
static

Carve up the audio data in frame_count slices

Definition at line 303 of file xmv.c.

Referenced by xmv_fetch_new_packet().

static int xmv_read_close ( AVFormatContext s)
static

Definition at line 131 of file xmv.c.

Referenced by xmv_read_header().

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

Definition at line 274 of file xmv.c.

Referenced by xmv_process_packet_header().

static int xmv_read_header ( AVFormatContext s,
AVFormatParameters ap 
)
static

Initialize the packet context

Definition at line 141 of file xmv.c.

static int xmv_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 541 of file xmv.c.

Variable Documentation

AVInputFormat ff_xmv_demuxer
Initial value:
= {
.name = "xmv",
.long_name = NULL_IF_CONFIG_SMALL("Microsoft XMV"),
.priv_data_size = sizeof(XMVDemuxContext),
}
struct XMVDemuxContext XMVDemuxContext
static int xmv_probe(AVProbeData *p)
Definition: xmv.c:114
static int xmv_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: xmv.c:541
static int read_header(FFV1Context *f)
Definition: ffv1.c:1513
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:140
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
static int read_probe(AVProbeData *p)
Definition: img2.c:185
static int xmv_read_header(AVFormatContext *s, AVFormatParameters *ap)
Definition: xmv.c:141
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:109
static int xmv_read_close(AVFormatContext *s)
Definition: xmv.c:131

Definition at line 579 of file xmv.c.