📄 navreader.h
字号:
//// Copyright (c) 2003 by Istv醤 V醨adi//// This file is part of dxr3Player, a DVD player written specifically // for the DXR3 (aka Hollywood+) decoder card.// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.//// This program 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 General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA#ifndef DXR3PLAYER_IFODUMP_NAVREADER_H#define DXR3PLAYER_IFODUMP_NAVREADER_H//------------------------------------------------------------------------------#include "Reader.h"extern "C" {#include <libmpdvdkit/nav_types.h>}//------------------------------------------------------------------------------namespace ifodump {//------------------------------------------------------------------------------/** * Reader for PCI and DSI packets. */class NAVReader : public Reader<NAVReader>{private: /** * Read a 16-bit unsigned value. */ void read(uint16_t& x); /** * Read a 32-bit unsigned value. */ void read(uint32_t& x); /** * Read a 64-bit unsigned value. */ void read(uint64_t& x); /** * Read an array of bytes. */ void read(void* buffer, size_t length); /** * Read a VM command. */ void read(vm_cmd_t& cmd); /** * Read a user operations structure. */ void read(user_ops_t& userOperations); /** * Read a PCI general information structure. */ void read(pci_gi_t& pciGeneral); /** * Read a PCI non-seamless angle information structure */ void read(nsml_agli_t& pciAngle); /** * Read a PCI highlight general information structure. */ void read(hl_gi_t& pciHighlightGeneral); /** * Read a PCI button colour table. */ void read(btn_colit_t& pciButtonColor); /** * Read a PCI button information structure */ void read(btni_t& pciButton); /** * Read a PCI highlight information structure. */ void read(hli_t& pciHighlight); /** * Read a DSI general information structure. */ void read(dsi_gi_t& dsiGeneral); /** * Read a DSI VOBI search information */ void read(vobu_sri_t& dsiVOBUSearch); /** * Read a DSI seamless angle data structure. */ void read(sml_agl_data_t& dsiAngleData); /** * Read a DSI seamless angle information */ void read(sml_agli_t& dsiAngle); public: /** * Construct the reader with the given file. */ NAVReader(FILE* file, unsigned version); /** * Read an 8-bit unsigned value. */ void read(uint8_t& x); /** * Read a PCI (this currently reads only the most important * data). */ void read(pci_t& pci); /** * Read a DSI (this currently reads only the most important * data). */ void read(dsi_t& dsi); friend class Reader<NAVReader>;};//------------------------------------------------------------------------------// Inline definitions//------------------------------------------------------------------------------inline void NAVReader::read(uint8_t& x){ FileReader::read(x);}} /* namespace ifodump *///------------------------------------------------------------------------------#endif // DXR3PLAYER_IFODUMP_NAVREADER_H// Local variables:// mode: c++// End:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -