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