1 /*****************************************************************************
2 * avi.h : AVI file Stream input module for vlc
3 *****************************************************************************
4 * Copyright (C) 2001-2004 VideoLAN
5 * $Id: avi.h,v 1.19 2004/01/25 20:05:28 hartman Exp $
6 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
21 *****************************************************************************/
23 typedef struct avi_packet_s
25 vlc_fourcc_t i_fourcc;
28 vlc_fourcc_t i_type; /* only for AVIFOURCC_LIST */
30 uint8_t i_peek[8]; /* first 8 bytes */
32 unsigned int i_stream;
37 typedef struct AVIIndexEntry_s
43 uint32_t i_lengthtotal;
49 vlc_bool_t b_activated;
51 unsigned int i_cat; /* AUDIO_ES, VIDEO_ES */
60 AVIIndexEntry_t *p_index;
62 unsigned int i_idxmax;
64 unsigned int i_idxposc; /* numero of chunk */
65 unsigned int i_idxposb; /* byte in the current chunk */
67 /* For VBR audio only */
68 unsigned int i_blockno;
69 unsigned int i_blocksize;
78 vlc_bool_t b_seekable;
84 off_t i_movi_lastchunk_pos; /* XXX position of last valid chunk */
86 /* number of streams and information */