All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
mpjpegdec.c File Reference
#include "libavutil/avstring.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.


static int get_line (AVIOContext *pb, char *line, int line_size)
static int split_tag_value (char **tag, char **value, char *line)
static int check_content_type (char *line)
static int mpjpeg_read_probe (AVProbeData *p)
static int mpjpeg_read_header (AVFormatContext *s)
static int parse_content_length (const char *value)
static int parse_multipart_header (AVFormatContext *s)
static int mpjpeg_read_packet (AVFormatContext *s, AVPacket *pkt)


AVInputFormat ff_mpjpeg_demuxer

Function Documentation

static int get_line ( AVIOContext pb,
char *  line,
int  line_size 

Definition at line 27 of file mpjpegdec.c.

Referenced by mpjpeg_read_header(), mpjpeg_read_probe(), and parse_multipart_header().

static int split_tag_value ( char **  tag,
char **  value,
char *  line 

Definition at line 43 of file mpjpegdec.c.

Referenced by check_content_type(), and parse_multipart_header().

static int check_content_type ( char *  line)

Definition at line 65 of file mpjpegdec.c.

Referenced by mpjpeg_read_probe().

static int mpjpeg_read_probe ( AVProbeData p)

Definition at line 80 of file mpjpegdec.c.

static int mpjpeg_read_header ( AVFormatContext s)

Definition at line 110 of file mpjpegdec.c.

static int parse_content_length ( const char *  value)

Definition at line 139 of file mpjpegdec.c.

Referenced by parse_multipart_header().

static int parse_multipart_header ( AVFormatContext s)

Definition at line 150 of file mpjpegdec.c.

Referenced by mpjpeg_read_packet().

static int mpjpeg_read_packet ( AVFormatContext s,
AVPacket pkt 

Definition at line 199 of file mpjpegdec.c.

Variable Documentation

AVInputFormat ff_mpjpeg_demuxer
Initial value:
= {
.name = "mpjpeg",
.long_name = NULL_IF_CONFIG_SMALL("MIME multipart JPEG"),
.mime_type = "multipart/x-mixed-replace",
.extensions = "mjpg",
.read_probe = mpjpeg_read_probe,
.read_header = mpjpeg_read_header,
.read_packet = mpjpeg_read_packet,
static int mpjpeg_read_header(AVFormatContext *s)
Definition: mpjpegdec.c:110
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static int mpjpeg_read_probe(AVProbeData *p)
Definition: mpjpegdec.c:80
static int mpjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: mpjpegdec.c:199

Definition at line 217 of file mpjpegdec.c.