Mercurial > libdvdnav.hg
annotate decoder.h @ 15:74aee0b81da0 src
only one bits function now.
| author | jcdutton |
|---|---|
| date | Wed, 10 Apr 2002 13:33:12 +0000 |
| parents | 6f0fb88d1463 |
| children | 7e8628911b4f |
| rev | line source |
|---|---|
| 0 | 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]; | |
|
10
6f0fb88d1463
Added some debug info, to hopefully help in tracking bugs in libdvdnav.
jcdutton
parents:
0
diff
changeset
|
88 uint8_t GPRM_mode[16]; /* Need to have some thing to indicate normal/counter mode for every GPRM */ |
| 0 | 89 } registers_t; |
| 90 | |
| 15 | 91 typedef struct |
| 92 { | |
| 93 uint64_t instruction; | |
| 94 uint64_t examined; | |
| 95 registers_t *registers; | |
| 96 } command_t; | |
| 97 | |
| 0 | 98 int vmEval_CMD(vm_cmd_t commands[], int num_commands, |
| 99 registers_t *registers, link_t *return_values); | |
| 100 | |
| 101 void vmPrint_LINK(link_t value); | |
|
10
6f0fb88d1463
Added some debug info, to hopefully help in tracking bugs in libdvdnav.
jcdutton
parents:
0
diff
changeset
|
102 void vmPrint_registers( registers_t *registers ); |
| 15 | 103 uint32_t vm_getbits(command_t* command, int start, int count); |
| 0 | 104 |
| 105 #endif /* DECODER_H_INCLUDED */ |
