ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
libmpeg.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright (c) 2006-2007 Eugene Plotnikov <e-plotnikov@operamail.com>
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
16 #ifndef __LIBMPEG_H__
17 #define __LIBMPEG_H__
18 
19 #include <tamtypes.h>
20 
21 #define MPEG_CHROMA_FORMAT_420 1
22 #define MPEG_CHROMA_FORMAT_422 2
23 #define MPEG_CHROMA_FORMAT_444 3
24 
25 #define MPEG_PROFILE_422 133
26 #define MPEG_PROFILE_SIMPLE 5
27 #define MPEG_PROFILE_MAIN_ 4
28 #define MPEG_PROFILE_SNR_SCALABLE 3
29 #define MPEG_PROFILE_SPT_SCALABLE 2
30 #define MPEG_PROFILE_HIGH 1
31 
32 #define MPEG_LEVEL_MAIN 8
33 #define MPEG_LEVEL_LOW 12
34 #define MPEG_LEVEL_HIGH1440 6
35 #define MPEG_LEVEL_HIGH 4
36 
37 #define MPEG_VIDEO_FORMAT_COMPONENT 0
38 #define MPEG_VIDEO_FORMAT_PAL 1
39 #define MPEG_VIDEO_FORMAT_NTSC 2
40 #define MPEG_VIDEO_FORMAT_SECAM 3
41 #define MPEG_VIDEO_FORMAT_MAC 4
42 #define MPEG_VIDEO_FORMAT_UNSPEC 5
43 
44 typedef struct MPEGSequenceInfo {
45  int m_Width;
46  int m_Height;
48  int m_Profile;
49  int m_Level;
52  int m_fEOF;
55 
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59 
60 void MPEG_Initialize ( int ( * ) ( void* ), void*, void* ( * ) ( void*, MPEGSequenceInfo* ), void*, s64* );
61 void MPEG_Destroy ( void );
62 int ( *MPEG_Picture ) ( void*, s64* );
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif /* __LIBMPEG_H__ */
void MPEG_Destroy(void)
Definition: libmpeg.c:117
int(* MPEG_Picture)(void *, s64 *)
Definition: libmpeg.h:62
void MPEG_Initialize(int(*)(void *), void *, void *(*)(void *, MPEGSequenceInfo *), void *, s64 *)
int m_MSPerFrame
Definition: libmpeg.h:53
signed long s64
Definition: tamtypes.h:62