📄 navwriter.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_NAVWRITER_H#define DXR3PLAYER_IFODUMP_NAVWRITER_H//------------------------------------------------------------------------------#include "Writer.h"extern "C" {#include <libmpdvdkit/nav_types.h>}//------------------------------------------------------------------------------namespace ifodump {//------------------------------------------------------------------------------/** * Writer for PCI and DSI packets. */class NAVWriter : public Writer<NAVWriter>{private: /** * Write out a 16-bit unsigned value. */ void write(uint16_t x); /** * Write out a 32-bit unsigned value. */ void write(uint32_t x); /** * Write out a 64-bit unsigned value. */ void write(uint64_t x); /** * Write out an array of bytes. */ void write(const void* buffer, size_t length); /** * Write a VM command. */ void write(const vm_cmd_t& cmd); /** * Write a user operations structure. */ void write(const user_ops_t& userOperations); /** * Write a PCI general information structure. */ void write(const pci_gi_t& pciGeneral); /** * Write a PCI non-seamless angle information structure */ void write(const nsml_agli_t& pciAngle); /** * Write a PCI highlight general information structure. */ void write(const hl_gi_t& pciHighlightGeneral); /** * Write a PCI button colour table. */ void write(const btn_colit_t& pciButtonColor); /** * Write a PCI button information structure */ void write(const btni_t& pciButton); /** * Write a PCI highlight information structure. */ void write(const hli_t& pciHighlight); /** * Write a DSI general information structure. */ void write(const dsi_gi_t& dsiGeneral); /** * Write a DSI VOBI search information */ void write(const vobu_sri_t& dsiVOBUSearch); /** * Write a DSI seamless angle data structure. */ void write(const sml_agl_data_t& dsiAngleData); /** * Write a DSI seamless angle information */ void write(const sml_agli_t& dsiAngle); public: /** * Construct the writer with the given file. */ NAVWriter(FILE* file); /** * Write out an 8-bit unsigned value. */ void write(uint8_t x); /** * Write a PCI (this currently writes only the most important * data). */ void write(const pci_t& pci); /** * Write a DSI (this currently writes only the most important * data). */ void write(const dsi_t& dsi); friend class Writer<NAVWriter>;};//------------------------------------------------------------------------------// Inline definitions//------------------------------------------------------------------------------inline void NAVWriter::write(uint8_t x){ FileWriter::write(x);}//------------------------------------------------------------------------------} /* namespace ifodump *///------------------------------------------------------------------------------#endif // DXR3PLAYER_IFODUMP_NAVWRITER_H// Local variables:// mode: c++// End:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -