openTRI
0.1
pmp
avc.h
1
/*
2
Decoding AVC using sceMpeg Library
3
Copyright (c) 2006 by Sorin P. C. <magik@hypermagik.com>
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
*/
19
20
/*
21
i've made only a little rearrangement over the magiK code posted here:
22
http://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
36
struct
SceMpegLLI
37
{
38
ScePVoid pSrc;
39
ScePVoid pDst;
40
ScePVoid Next;
41
SceInt32 iSize;
42
};
43
44
45
struct
avc_struct
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
62
SceInt32 sceMpegbase_BEA18F91(
struct
SceMpegLLI
*p);
63
64
#ifdef __cplusplus
65
extern
"C"
{
66
#endif
67
68
char
*avc_static_init();
69
void
avc_safe_constructor(
struct
avc_struct
*p);
70
void
avc_close(
struct
avc_struct
*p);
71
char
*avc_open(
struct
avc_struct
*p,
unsigned
int
maximum_frame_size,
int
bufwidth,
int
format);
72
char
*avc_get(
struct
avc_struct
*p,
void
*source_buffer,
int
size,
void
*destination_buffer);
73
74
#ifdef __cplusplus
75
}
76
#endif
77
78
#endif
SceMpegLLI
Definition
avc.h:37
avc_struct
Definition
avc.h:46
Generated by
1.14.0