libavformat/mxg.c File Reference

#include "libavutil/intreadwrite.h"
#include "libavcodec/mjpeg.h"
#include "avformat.h"
#include "avio.h"

Go to the source code of this file.

Data Structures

struct  MXGContext

Defines

#define VIDEO_STREAM_INDEX   0
#define AUDIO_STREAM_INDEX   1
#define DEFAULT_PACKET_SIZE   1024
#define OVERREAD_SIZE   3

Functions

static int mxg_read_header (AVFormatContext *s, AVFormatParameters *ap)
static uint8_t * mxg_find_startmarker (uint8_t *p, uint8_t *end)
static int mxg_update_cache (AVFormatContext *s, unsigned int cache_size)
static int mxg_read_packet (AVFormatContext *s, AVPacket *pkt)
static int mxg_close (struct AVFormatContext *s)

Variables

AVInputFormat ff_mxg_demuxer


Define Documentation

#define AUDIO_STREAM_INDEX   1

Definition at line 28 of file mxg.c.

Referenced by mxg_read_header(), and mxg_read_packet().

#define DEFAULT_PACKET_SIZE   1024

Definition at line 29 of file mxg.c.

Referenced by mxg_read_packet().

#define OVERREAD_SIZE   3

Definition at line 30 of file mxg.c.

Referenced by mxg_read_packet().

#define VIDEO_STREAM_INDEX   0

Definition at line 27 of file mxg.c.

Referenced by mxg_read_header(), and mxg_read_packet().


Function Documentation

static int mxg_close ( struct AVFormatContext s  )  [static]

Definition at line 236 of file mxg.c.

static uint8_t* mxg_find_startmarker ( uint8_t *  p,
uint8_t *  end 
) [static]

Definition at line 73 of file mxg.c.

Referenced by mxg_read_packet().

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

Definition at line 41 of file mxg.c.

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

Definition at line 128 of file mxg.c.

static int mxg_update_cache ( AVFormatContext s,
unsigned int  cache_size 
) [static]

Definition at line 98 of file mxg.c.

Referenced by mxg_read_packet().


Variable Documentation

Initial value:

 {
    .name = "mxg",
    .long_name = NULL_IF_CONFIG_SMALL("MxPEG clip file format"),
    .priv_data_size = sizeof(MXGContext),
    .read_header = mxg_read_header,
    .read_packet = mxg_read_packet,
    .read_close = mxg_close,
    .extensions = "mxg"
}

Definition at line 243 of file mxg.c.


Generated on Fri Oct 26 02:38:20 2012 for FFmpeg by  doxygen 1.5.8