Mercurial > libdvdnav.hg
comparison decoder.h @ 0:3ddf0eaece51 src
Initial revision
author | richwareham |
---|---|
date | Tue, 12 Mar 2002 19:45:53 +0000 |
parents | |
children | 6f0fb88d1463 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3ddf0eaece51 |
---|---|
1 /* | |
2 * Copyright (C) 2000, 2001 Martin Norbäck, Håkan Hjort | |
3 * | |
4 * This file is part of libdvdnav, a DVD navigation library. It is modified | |
5 * from a file originally part of the Ogle DVD player. | |
6 * | |
7 * libdvdnav is free software; you can redistribute it and/or modify | |
8 * it under the terms of the GNU General Public License as published by | |
9 * the Free Software Foundation; either version 2 of the License, or | |
10 * (at your option) any later version. | |
11 * | |
12 * libdvdnav is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 * GNU General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU General Public License | |
18 * along with this program; if not, write to the Free Software | |
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | |
20 * | |
21 * $Id$ | |
22 * | |
23 */ | |
24 | |
25 #ifndef DECODER_H_INCLUDED | |
26 #define DECODER_H_INCLUDED | |
27 | |
28 #include "config.h" | |
29 #include <inttypes.h> | |
30 #include <dvdread/ifo_types.h> /* vm_cmd_t */ | |
31 | |
32 /* Uncomment for tracing */ | |
33 #define TRACE | |
34 | |
35 typedef enum { | |
36 LinkNoLink = 0, | |
37 | |
38 LinkTopC = 1, | |
39 LinkNextC = 2, | |
40 LinkPrevC = 3, | |
41 | |
42 LinkTopPG = 5, | |
43 LinkNextPG = 6, | |
44 LinkPrevPG = 7, | |
45 | |
46 LinkTopPGC = 9, | |
47 LinkNextPGC = 10, | |
48 LinkPrevPGC = 11, | |
49 LinkGoUpPGC = 12, | |
50 LinkTailPGC = 13, | |
51 | |
52 LinkRSM = 16, | |
53 | |
54 LinkPGCN, | |
55 LinkPTTN, | |
56 LinkPGN, | |
57 LinkCN, | |
58 | |
59 Exit, | |
60 | |
61 JumpTT, /* 22 */ | |
62 JumpVTS_TT, | |
63 JumpVTS_PTT, | |
64 | |
65 JumpSS_FP, | |
66 JumpSS_VMGM_MENU, | |
67 JumpSS_VTSM, | |
68 JumpSS_VMGM_PGC, | |
69 | |
70 CallSS_FP, /* 29 */ | |
71 CallSS_VMGM_MENU, | |
72 CallSS_VTSM, | |
73 CallSS_VMGM_PGC, | |
74 | |
75 PlayThis | |
76 } link_cmd_t; | |
77 | |
78 typedef struct { | |
79 link_cmd_t command; | |
80 uint16_t data1; | |
81 uint16_t data2; | |
82 uint16_t data3; | |
83 } link_t; | |
84 | |
85 typedef struct { | |
86 uint16_t SPRM[24]; | |
87 uint16_t GPRM[16]; | |
88 /* Need to have some thing to indicate normal/counter mode for every GPRM */ | |
89 /* int GPRM_mode[16]; */ | |
90 } registers_t; | |
91 | |
92 int vmEval_CMD(vm_cmd_t commands[], int num_commands, | |
93 registers_t *registers, link_t *return_values); | |
94 | |
95 void vmPrint_LINK(link_t value); | |
96 | |
97 #endif /* DECODER_H_INCLUDED */ |