sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
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
17#ifndef __LIBMPEG_H__
18#define __LIBMPEG_H__
19
20#include <tamtypes.h>
21
22#define MPEG_CHROMA_FORMAT_420 1
23#define MPEG_CHROMA_FORMAT_422 2
24#define MPEG_CHROMA_FORMAT_444 3
25
26#define MPEG_PROFILE_422 133
27#define MPEG_PROFILE_SIMPLE 5
28#define MPEG_PROFILE_MAIN_ 4
29#define MPEG_PROFILE_SNR_SCALABLE 3
30#define MPEG_PROFILE_SPT_SCALABLE 2
31#define MPEG_PROFILE_HIGH 1
32
33#define MPEG_LEVEL_MAIN 8
34#define MPEG_LEVEL_LOW 12
35#define MPEG_LEVEL_HIGH1440 6
36#define MPEG_LEVEL_HIGH 4
37
38#define MPEG_VIDEO_FORMAT_COMPONENT 0
39#define MPEG_VIDEO_FORMAT_PAL 1
40#define MPEG_VIDEO_FORMAT_NTSC 2
41#define MPEG_VIDEO_FORMAT_SECAM 3
42#define MPEG_VIDEO_FORMAT_MAC 4
43#define MPEG_VIDEO_FORMAT_UNSPEC 5
44
45typedef struct MPEGSequenceInfo {
46 int m_Width;
47 int m_Height;
48 int m_FrameCnt;
49 int m_Profile;
50 int m_Level;
51 int m_ChromaFmt;
52 int m_VideoFmt;
53 int m_fEOF;
54 int m_MSPerFrame;
56
57#ifdef __cplusplus
58extern "C" {
59#endif
60
61extern void MPEG_Initialize(int (*apDataCB)(void *userdata), void *apDataCBParam, void *(*apInitCB)(void *userdata, MPEGSequenceInfo *si), void *apInitCBParam, s64 *apCurPTS);
62extern void MPEG_Destroy ( void );
63extern int ( *MPEG_Picture ) ( void *apData, s64 *apPTS );
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif /* __LIBMPEG_H__ */