Libav
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
libavformat
mxg.c
Go to the documentation of this file.
1
/*
2
* MxPEG clip file demuxer
3
* Copyright (c) 2010 Anatoly Nenashev
4
*
5
* This file is part of Libav.
6
*
7
* Libav 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
* Libav 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 Libav; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#include "
libavutil/channel_layout.h
"
23
#include "
libavutil/internal.h
"
24
#include "
libavutil/intreadwrite.h
"
25
#include "
libavcodec/mjpeg.h
"
26
#include "
avformat.h
"
27
#include "
internal.h
"
28
#include "
avio.h
"
29
30
#define DEFAULT_PACKET_SIZE 1024
31
#define OVERREAD_SIZE 3
32
33
typedef
struct
MXGContext
{
34
uint8_t
*
buffer
;
35
uint8_t
*
buffer_ptr
;
36
uint8_t
*
soi_ptr
;
37
unsigned
int
buffer_size
;
38
int64_t
dts
;
39
unsigned
int
cache_size
;
40
}