|
Packit |
5e46da |
/*
|
|
Packit |
5e46da |
* This file is part of libbluray
|
|
Packit |
5e46da |
* Copyright (C) 2010-2017 Petri Hintukainen <phintuka@users.sourceforge.net>
|
|
Packit |
5e46da |
*
|
|
Packit |
5e46da |
* This library is free software; you can redistribute it and/or
|
|
Packit |
5e46da |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
5e46da |
* License as published by the Free Software Foundation; either
|
|
Packit |
5e46da |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
5e46da |
*
|
|
Packit |
5e46da |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
5e46da |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
5e46da |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
5e46da |
* Lesser General Public License for more details.
|
|
Packit |
5e46da |
*
|
|
Packit |
5e46da |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
5e46da |
* License along with this library. If not, see
|
|
Packit |
5e46da |
* <http://www.gnu.org/licenses/>.
|
|
Packit |
5e46da |
*/
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
#if !defined(_MOBJ_DATA_H_)
|
|
Packit |
5e46da |
#define _MOBJ_DATA_H_
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
#include <stdint.h>
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
typedef struct {
|
|
Packit |
5e46da |
unsigned int sub_grp : 3; /* command sub-group */
|
|
Packit |
5e46da |
unsigned int op_cnt : 3; /* operand count */
|
|
Packit |
5e46da |
unsigned int grp : 2; /* command group */
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
unsigned int branch_opt : 4; /* branch option */
|
|
Packit |
5e46da |
unsigned int reserved1 : 2;
|
|
Packit |
5e46da |
unsigned int imm_op2 : 1; /* I-flag for operand 2 */
|
|
Packit |
5e46da |
unsigned int imm_op1 : 1; /* I-flag for operand 1 */
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
unsigned int cmp_opt : 4; /* compare option */
|
|
Packit |
5e46da |
unsigned int reserved2 : 4;
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
unsigned int set_opt : 5; /* set option */
|
|
Packit |
5e46da |
unsigned int reserved3 : 3;
|
|
Packit |
5e46da |
} HDMV_INSN;
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
typedef struct mobj_cmd {
|
|
Packit |
5e46da |
HDMV_INSN insn;
|
|
Packit |
5e46da |
uint32_t dst;
|
|
Packit |
5e46da |
uint32_t src;
|
|
Packit |
5e46da |
} MOBJ_CMD;
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
typedef struct {
|
|
Packit |
5e46da |
uint8_t resume_intention_flag /*: 1*/;
|
|
Packit |
5e46da |
uint8_t menu_call_mask /*: 1*/;
|
|
Packit |
5e46da |
uint8_t title_search_mask /*: 1*/;
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
uint16_t num_cmds;
|
|
Packit |
5e46da |
MOBJ_CMD *cmds;
|
|
Packit |
5e46da |
} MOBJ_OBJECT;
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
typedef struct mobj_objects {
|
|
Packit |
5e46da |
uint32_t mobj_version;
|
|
Packit |
5e46da |
uint16_t num_objects;
|
|
Packit |
5e46da |
MOBJ_OBJECT *objects;
|
|
Packit |
5e46da |
} MOBJ_OBJECTS;
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
#endif // _MOBJ_DATA_H_
|