openTRI
0.1
pmp
pmp.h
1
/*
2
PMP Mod - mini lib
3
Copyright (C) 2006 jonny
4
Copyright (C) 2007 Raphael <raphael@fx-world.org>
5
6
Homepage: http://jonny.leffe.dnsalias.com
7
http://wordpress.fx-world.org
8
E-mail: jonny@leffe.dnsalias.com
9
10
This program is free software; you can redistribute it and/or modify
11
it under the terms of the GNU General Public License as published by
12
the Free Software Foundation; either version 2 of the License, or
13
(at your option) any later version.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23
*/
24
25
/*
26
this lib should be used to play .pmp files
27
*/
28
29
30
#ifndef pmp_h
31
#define pmp_h
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
37
// Call once on startup to initialize pmp playback (loads the codecs)
38
char
* pmp_init();
39
40
// play file s and decode in pixelformat 'format' (see pspmpeg.h for modes, possible are 4444,5650,5551 and 8888)
41
// if show is set to 1 the display of the video will be handled by the output thread
42
// else the caller has to display the video itself by querying the frames with pmp_get_frame and somehow getting them
43
// displayed on screen
44
char
*pmp_play(
char
*s,
int
show,
int
format);
45
46
// return pointer to current frame, also set frame format, width, height and buffer width
47
void
* pmp_get_frame(
int
* format,
int
* width,
int
* height,
int
* vbw );
48
49
// Stop the playback and free all resources
50
void
pmp_stop();
51
52
// Check if playback is still running
53
int
pmp_isplaying();
54
55
#ifdef __cplusplus
56
}
57
#endif
58
59
#endif
Generated by
1.14.0