openTRI
0.1
pmp
pmp_file.h
1
/*
2
PMP Mod
3
Copyright (C) 2006 jonny
4
5
Homepage: http://jonny.leffe.dnsalias.com
6
E-mail: jonny@leffe.dnsalias.com
7
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.
12
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.
17
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., 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
36
struct
pmp_signature_struct
37
{
38
unsigned
int
pmpm;
39
unsigned
int
version;
40
};
41
42
43
struct
pmp_video_struct
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
54
struct
pmp_audio_struct
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
65
struct
pmp_header_struct
66
{
67
struct
pmp_signature_struct
signature;
68
struct
pmp_video_struct
video;
69
struct
pmp_audio_struct
audio;
70
};
71
72
73
struct
pmp_file_struct
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
85
void
pmp_file_safe_constructor(
struct
pmp_file_struct
*p);
86
void
pmp_file_close(
struct
pmp_file_struct
*p);
87
char
*pmp_file_open(
struct
pmp_file_struct
*p,
char
*s);
88
89
90
#endif
pmp_audio_struct
Definition
pmp_file.h:55
pmp_file_struct
Definition
pmp_file.h:74
pmp_header_struct
Definition
pmp_file.h:66
pmp_signature_struct
Definition
pmp_file.h:37
pmp_video_struct
Definition
pmp_file.h:44
Generated by
1.12.0