FFmpeg
Data Structures | Macros | Functions | Variables
mxg.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavcodec/mjpeg.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "avio.h"

Go to the source code of this file.

Data Structures

struct  MXGContext
 

Macros

#define DEFAULT_PACKET_SIZE   1024
 
#define OVERREAD_SIZE   3
 

Functions

static int mxg_read_header (AVFormatContext *s)
 
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

const FFInputFormat ff_mxg_demuxer
 

Macro Definition Documentation

◆ DEFAULT_PACKET_SIZE

#define DEFAULT_PACKET_SIZE   1024

Definition at line 32 of file mxg.c.

◆ OVERREAD_SIZE

#define OVERREAD_SIZE   3

Definition at line 33 of file mxg.c.

Function Documentation

◆ mxg_read_header()

static int mxg_read_header ( AVFormatContext s)
static

Definition at line 44 of file mxg.c.

◆ mxg_find_startmarker()

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

Definition at line 76 of file mxg.c.

Referenced by mxg_read_packet().

◆ mxg_update_cache()

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

Definition at line 101 of file mxg.c.

Referenced by mxg_read_packet().

◆ mxg_read_packet()

static int mxg_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 133 of file mxg.c.

◆ mxg_close()

static int mxg_close ( struct AVFormatContext s)
static

Definition at line 246 of file mxg.c.

Variable Documentation

◆ ff_mxg_demuxer

const FFInputFormat ff_mxg_demuxer
Initial value:
= {
.p.name = "mxg",
.p.long_name = NULL_IF_CONFIG_SMALL("MxPEG clip"),
.p.extensions = "mxg",
.priv_data_size = sizeof(MXGContext),
}

Definition at line 253 of file mxg.c.

mxg_read_header
static int mxg_read_header(AVFormatContext *s)
Definition: mxg.c:44
read_close
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:143
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
mxg_read_packet
static int mxg_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: mxg.c:133
MXGContext
Definition: mxg.c:35
mxg_close
static int mxg_close(struct AVFormatContext *s)
Definition: mxg.c:246