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