openTRI 0.1
avc.h
1/*
2Decoding AVC using sceMpeg Library
3Copyright (c) 2006 by Sorin P. C. <magik@hypermagik.com>
4
5This program is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18*/
19
20/*
21i've made only a little rearrangement over the magiK code posted here:
22http://forums.ps2dev.org/viewtopic.php?t=5820
23*/
24
25
26#ifndef avc_h
27#define avc_h
28
29#include <psptypes.h>
30#include <pspmpeg.h>
31
32#define DMABLOCK 4095
33#define MEAVCBUF 0x4a000
34
35
37 {
38 ScePVoid pSrc;
39 ScePVoid pDst;
40 ScePVoid Next;
41 SceInt32 iSize;
42 };
43
44
46 {
47 int mpeg_init;
48 ScePVoid mpeg_data;
49 int mpeg_ringbuffer_construct;
50 int mpeg_create;
51 int mpeg_format;
52 int mpeg_width;
53
54 SceMpegRingbuffer mpeg_ringbuffer;
55 SceMpeg mpeg;
56 ScePVoid mpeg_es;
57 struct SceMpegLLI *mpeg_lli;
58 SceMpegAu mpeg_au;
59 };
60
61
62SceInt32 sceMpegbase_BEA18F91(struct SceMpegLLI *p);
63
64#ifdef __cplusplus
65extern "C" {
66#endif
67
68char *avc_static_init();
69void avc_safe_constructor(struct avc_struct *p);
70void avc_close(struct avc_struct *p);
71char *avc_open(struct avc_struct *p, unsigned int maximum_frame_size, int bufwidth, int format);
72char *avc_get(struct avc_struct *p, void *source_buffer, int size, void *destination_buffer);
73
74#ifdef __cplusplus
75}
76#endif
77
78#endif
Definition avc.h:37
Definition avc.h:46