1 /*
2 * Multipart JPEG format
3 * Copyright (c) 2000, 2001, 2002, 2003 Fabrice Bellard
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
23
24 /* Multipart JPEG */
25
26 #define BOUNDARY_TAG "ffserver"
27
32
34 {
38 return 0;
39 }
40
42 {
48
50 return 0;
51 }
52
54 {
55 return 0;
56 }
57
61 };
62
68 };
69
73 .mime_type =
"multipart/x-mixed-replace;boundary=" BOUNDARY_TAG,
74 .extensions = "mjpg",
82 .priv_class = &mpjpeg_muxer_class,
83 };
static const AVOption options[]
static int mpjpeg_write_trailer(AVFormatContext *s)
#define LIBAVUTIL_VERSION_INT
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
AVOutputFormat ff_mpjpeg_muxer
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int void avio_flush(AVIOContext *s)
Force flushing of buffered data.
static int write_trailer(AVFormatContext *s1)
AVIOContext * pb
I/O context.
Describe the class of an AVClass context structure.
static const AVClass mpjpeg_muxer_class
static int mpjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
static int mpjpeg_write_header(AVFormatContext *s)
void * priv_data
Format private data.
static void write_header(FFV1Context *f)
This structure stores compressed data.
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
int avio_printf(AVIOContext *s, const char *fmt,...) av_printf_format(2