Mercurial > libavformat.hg
annotate gxf.h @ 5836:2997c88028cd libavformat
Move the probe loop from av_open_input_file() into its own method
av_probe_input_buffer() so that it can be reused. Here are a few
differences to the original way things were probed:
- maximum probe buffer size can be specified as a parameter.
- offset within the stream to probe from can be specified as a parameter.
- instead of seeking back to the start each time a probe fails, stream
data is appended to the reallocated buffer. This lowers the amount
of data read from the stream (there is no repetition) and results in
fewer closed and reopened streams (when seeking fails).
New attempt after r22296, which was revert in r22315 due to a FATE
failure.
See the thread:
Subject: [FFmpeg-devel] [PATCH] Move av_open_input_file probe loop to its own method
Date: 2010-03-05 03:23:57 GMT
Patch by Micah F. Galizia printf("%s%s@%s.%s", "micah", "galizia", "gmail", "com").
author | stefano |
---|---|
date | Sun, 14 Mar 2010 22:40:16 +0000 |
parents | 10d52cda08dd |
children |
rev | line source |
---|---|
1306
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
1 /* |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
2 * GXF demuxer |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
3 * copyright (c) 2006 Reimar Doeffinger |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
4 * |
1358
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1306
diff
changeset
|
5 * This file is part of FFmpeg. |
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1306
diff
changeset
|
6 * |
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1306
diff
changeset
|
7 * FFmpeg is free software; you can redistribute it and/or |
1306
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
8 * modify it under the terms of the GNU Lesser General Public |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
9 * License as published by the Free Software Foundation; either |
1358
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1306
diff
changeset
|
10 * version 2.1 of the License, or (at your option) any later version. |
1306
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
11 * |
1358
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1306
diff
changeset
|
12 * FFmpeg is distributed in the hope that it will be useful, |
1306
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
15 * Lesser General Public License for more details. |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
16 * |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
17 * You should have received a copy of the GNU Lesser General Public |
1358
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1306
diff
changeset
|
18 * License along with FFmpeg; if not, write to the Free Software |
1306
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
20 */ |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1183
diff
changeset
|
21 |
3852 | 22 #ifndef AVFORMAT_GXF_H |
23 #define AVFORMAT_GXF_H | |
1183 | 24 |
25 typedef enum { | |
2283 | 26 PKT_MAP = 0xbc, |
27 PKT_MEDIA = 0xbf, | |
28 PKT_EOS = 0xfb, | |
29 PKT_FLT = 0xfc, | |
30 PKT_UMF = 0xfd, | |
4098 | 31 } GXFPktType; |
1183 | 32 |
2282
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
33 typedef enum { |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
34 MAT_NAME = 0x40, |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
35 MAT_FIRST_FIELD = 0x41, |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
36 MAT_LAST_FIELD = 0x42, |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
37 MAT_MARK_IN = 0x43, |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
38 MAT_MARK_OUT = 0x44, |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
39 MAT_SIZE = 0x45, |
4098 | 40 } GXFMatTag; |
2282
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
41 |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
42 typedef enum { |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
43 TRACK_NAME = 0x4c, |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
44 TRACK_AUX = 0x4d, |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
45 TRACK_VER = 0x4e, |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
46 TRACK_MPG_AUX = 0x4f, |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
47 TRACK_FPS = 0x50, |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
48 TRACK_LINES = 0x51, |
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
49 TRACK_FPF = 0x52, |
4098 | 50 } GXFTrackTag; |
2282
47f5906c30cc
replaces hardcoded values by the equivalent enum definitions
aurel
parents:
1358
diff
changeset
|
51 |
3852 | 52 #endif /* AVFORMAT_GXF_H */ |