Mercurial > libdvdnav.hg
annotate decoder.h @ 60:30995ad032cf src
use new memcopy'less read ahead cache
| author | mroi |
|---|---|
| date | Fri, 12 Jul 2002 15:46:44 +0000 |
| parents | cea44c0d638a |
| children | e106f51eb8f5 |
| 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 <inttypes.h> | |
|
19
7e8628911b4f
Implement General Register Counters or GPRM counters.
jcdutton
parents:
15
diff
changeset
|
29 #include <sys/time.h> |
|
7e8628911b4f
Implement General Register Counters or GPRM counters.
jcdutton
parents:
15
diff
changeset
|
30 |
| 0 | 31 #include <dvdread/ifo_types.h> /* vm_cmd_t */ |
| 32 | |
| 33 /* Uncomment for tracing */ | |
| 60 | 34 /* #define TRACE */ |
| 0 | 35 |
| 36 typedef enum { | |
| 37 LinkNoLink = 0, | |
| 38 | |
| 39 LinkTopC = 1, | |
| 40 LinkNextC = 2, | |
| 41 LinkPrevC = 3, | |
| 42 | |
| 43 LinkTopPG = 5, | |
| 44 LinkNextPG = 6, | |
| 45 LinkPrevPG = 7, | |
| 46 | |
| 47 LinkTopPGC = 9, | |
| 48 LinkNextPGC = 10, | |
| 49 LinkPrevPGC = 11, | |
| 50 LinkGoUpPGC = 12, | |
| 51 LinkTailPGC = 13, | |
| 52 | |
| 53 LinkRSM = 16, | |
| 54 | |
| 55 LinkPGCN, | |
| 56 LinkPTTN, | |
| 57 LinkPGN, | |
| 58 LinkCN, | |
| 59 | |
| 60 Exit, | |
| 61 | |
| 62 JumpTT, /* 22 */ | |
| 63 JumpVTS_TT, | |
| 64 JumpVTS_PTT, | |
| 65 | |
| 66 JumpSS_FP, | |
| 67 JumpSS_VMGM_MENU, | |
| 68 JumpSS_VTSM, | |
| 69 JumpSS_VMGM_PGC, | |
| 70 | |
| 71 CallSS_FP, /* 29 */ | |
| 72 CallSS_VMGM_MENU, | |
| 73 CallSS_VTSM, | |
| 74 CallSS_VMGM_PGC, | |
| 75 | |
| 76 PlayThis | |
| 77 } link_cmd_t; | |
| 78 | |
| 79 typedef struct { | |
| 80 link_cmd_t command; | |
| 81 uint16_t data1; | |
| 82 uint16_t data2; | |
| 83 uint16_t data3; | |
| 84 } link_t; | |
| 85 | |
| 86 typedef struct { | |
| 87 uint16_t SPRM[24]; | |
| 88 uint16_t GPRM[16]; | |
|
10
6f0fb88d1463
Added some debug info, to hopefully help in tracking bugs in libdvdnav.
jcdutton
parents:
0
diff
changeset
|
89 uint8_t GPRM_mode[16]; /* Need to have some thing to indicate normal/counter mode for every GPRM */ |
|
19
7e8628911b4f
Implement General Register Counters or GPRM counters.
jcdutton
parents:
15
diff
changeset
|
90 struct timeval GPRM_time[16]; /* For counter mode */ |
| 0 | 91 } registers_t; |
| 92 | |
| 15 | 93 typedef struct |
| 94 { | |
| 95 uint64_t instruction; | |
| 96 uint64_t examined; | |
| 97 registers_t *registers; | |
| 98 } command_t; | |
| 99 | |
| 0 | 100 int vmEval_CMD(vm_cmd_t commands[], int num_commands, |
| 101 registers_t *registers, link_t *return_values); | |
| 102 | |
| 103 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
|
104 void vmPrint_registers( registers_t *registers ); |
| 15 | 105 uint32_t vm_getbits(command_t* command, int start, int count); |
| 0 | 106 |
| 107 #endif /* DECODER_H_INCLUDED */ |
