openTRI 0.1
pmp_file.h
1/*
2PMP Mod
3Copyright (C) 2006 jonny
4
5Homepage: http://jonny.leffe.dnsalias.com
6E-mail: jonny@leffe.dnsalias.com
7
8This program is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 2 of the License, or
11(at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program; if not, write to the Free Software
20Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21*/
22
23/*
24.pmp header reading routines
25*/
26
27
28#ifndef pmp_file_h
29#define pmp_file_h
30
31
32#include <stdio.h>
33#include "mem64.h"
34
35
37 {
38 unsigned int pmpm;
39 unsigned int version;
40 };
41
42
44 {
45 unsigned int format;
46 unsigned int number_of_frames;
47 unsigned int width;
48 unsigned int height;
49 unsigned int scale;
50 unsigned int rate;
51 };
52
53
55 {
56 unsigned int format;
57 unsigned int number_of_streams;
58 unsigned int maximum_number_of_frames;
59 unsigned int scale;
60 unsigned int rate;
61 unsigned int stereo;
62 };
63
64
66 {
67 struct pmp_signature_struct signature;
68 struct pmp_video_struct video;
69 struct pmp_audio_struct audio;
70 };
71
72
74 {
75 FILE *f;
76
77 struct pmp_header_struct header;
78
79 unsigned int *packet_index;
80 unsigned int packet_start;
81 unsigned int maximum_packet_size;
82 };
83
84
85void pmp_file_safe_constructor(struct pmp_file_struct *p);
86void pmp_file_close(struct pmp_file_struct *p);
87char *pmp_file_open(struct pmp_file_struct *p, char *s);
88
89
90#endif
Definition: pmp_file.h:55
Definition: pmp_file.h:74
Definition: pmp_file.h:66
Definition: pmp_file.h:37
Definition: pmp_file.h:44