PS2SDK
PS2 Homebrew Libraries
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#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
44typedef struct MPEGSequenceInfo {
45 int m_Width;
46 int m_Height;
47 int m_FrameCnt;
48 int m_Profile;
49 int m_Level;
50 int m_ChromaFmt;
51 int m_VideoFmt;
52 int m_fEOF;
53 int m_MSPerFrame;
55
56#ifdef __cplusplus
57extern "C" {
58#endif
59
60extern void MPEG_Initialize ( int ( * ) ( void* ), void*, void* ( * ) ( void*, MPEGSequenceInfo* ), void*, s64* );
61extern void MPEG_Destroy ( void );
62extern int ( *MPEG_Picture ) ( void*, s64* );
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif /* __LIBMPEG_H__ */