1 /*
2 
3    Ming, an SWF output library
4    Copyright (C) 2002  Opaque Industries - http://www.opaque.net/
5 
6    15.12.2003 Klaus Rechert
7 
8    This library is free software; you can redistribute it and/or
9    modify it under the terms of the GNU Lesser General Public
10    License as published by the Free Software Foundation; either
11    version 2.1 of the License, or (at your option) any later version.
12 
13    This library 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 GNU
16    Lesser General Public License for more details.
17 
18    You should have received a copy of the GNU Lesser General Public
19    License along with this library; if not, write to the Free Software
20    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21 
22 */
23 
24 
25 #ifndef SWF_VIDEOSTREAM_H_INCLUDED
26 #define SWF_VIDEOSTREAM_H_INCLUDED
27 
28 #include "ming.h"
29 
30 typedef struct SWFVideoFrame_s *SWFVideoFrame;
31 
32 #define VIDEO_DEF_WIDTH 160
33 #define VIDEO_DEF_HEIGHT 120
34 
35 int SWFVideoStream_getFrameNumber(SWFVideoFrame frame);
36 int SWFVideoStream_getNumFrames(SWFVideoStream stream);
37 
38 SWFVideoStream newSWFVideoStream_fromFile(FILE *f);
39 SWFVideoStream newSWFVideoStream(void);
40 
41 SWFBlock SWFVideoStream_getVideoFrame(SWFVideoStream stream);
42 void SWFVideoStream_setDimension(SWFVideoStream stream, int width, int height);
43 #endif
44