pspsdk-1.0+beta2
pspmpegbase.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * pspmpegbase.h - Prototypes for the sceMpegbase library
7  *
8  * Copyright (c) 2006 Sorin P. C. <magik@hypermagik.com>
9  * Copyright (c) 2007 cooleyes
10  * Copyright (c) 2007 Alexander Berl <raphael@fx-world.org>
11  *
12  * $Id: pspmpegbase.h 2341 2007-12-06 20:05:52Z raphael $
13  */
14 
15 #ifndef __SCELIBMPEGBASE_H__
16 #define __SCELIBMPEGBASE_H__
17 
18 
19 #include <psptypes.h>
20 
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 
27 typedef struct SceMpegLLI
28 {
33 } __attribute__((aligned(64))) SceMpegLLI;
34 
35 
36 
37 typedef struct SceMpegYCrCbBuffer
38 {
41  SceInt32 iUnknown; // Set to 0
42  SceInt32 iUnknown2; // Set to 1
43  ScePVoid pYBuffer; // pointer to YBuffer (in VME EDRAM?)
44  ScePVoid pYBuffer2; // pointer to YBuffer + framebufferwidth*(frameheight/32)
45  ScePVoid pCrBuffer; // pointer to CrBuffer (in VME EDRAM?)
46  ScePVoid pCbBuffer; // pointer to CbBuffer (in VME EDRAM?)
47  ScePVoid pCrBuffer2; // pointer to CrBuffer + (framebufferwidth/2)*(frameheight/64)
48  ScePVoid pCbBuffer2; // pointer to CbBuffer + (framebufferwidth/2)*(frameheight/64)
53 } __attribute__((aligned(64))) SceMpegYCrCbBuffer;
54 
55 
58 SceInt32 sceMpegBaseCscVme(ScePVoid pRGBbuffer, ScePVoid pRGBbuffer2, SceInt32 width, SceMpegYCrCbBuffer* pYCrCbBuffer);
59 
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif