2 Copyright 2004-2005 Chris Tallon
4 This file is part of VOMP.
6 VOMP is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 VOMP is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with VOMP; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33 int MtdMVP::init(char* device)
35 if (initted) return 0;
40 if ((fd = open("/dev/mtd1", O_RDONLY)) < 0)
42 Log::getInstance()->log("MTD", Log::DEBUG, "Open fail");
47 if (read(fd, data, 8192) < 8192)
49 Log::getInstance()->log("MTD", Log::DEBUG, "Read fail");
61 int MtdMVP::shutdown()
63 if (!initted) return 0;
68 short MtdMVP::getPALorNTSC()
74 short MtdMVP::getAspect()
79 short MtdMVP::getFlicker()
84 short MtdMVP::getBootLogoOutput()
89 short MtdMVP::getBootLogoDisplayVideoLeft()
94 short MtdMVP::getBootLogoDisplayVideoUpper()
99 short MtdMVP::getBootLogoDisplayVideoWidth()
104 short MtdMVP::getBootLogoDisplayVideoHeight()
111 Log* logger = Log::getInstance();
113 logger->log("MTD", Log::DEBUG, "Mode: %i", getPALorNTSC());
114 logger->log("MTD", Log::DEBUG, "Aspect: %i", getAspect());
115 logger->log("MTD", Log::DEBUG, "Flicker: %i", getFlicker());
116 logger->log("MTD", Log::DEBUG, "Bootlogo output: %i", getBootLogoOutput());
117 logger->log("MTD", Log::DEBUG, "Bootlogo display video left: %i", getBootLogoDisplayVideoLeft());
118 logger->log("MTD", Log::DEBUG, "Bootlogo display video upper: %i", getBootLogoDisplayVideoUpper());
119 logger->log("MTD", Log::DEBUG, "Bootlogo display video width: %i", getBootLogoDisplayVideoWidth());
120 logger->log("MTD", Log::DEBUG, "Bootlogo display video height: %i", getBootLogoDisplayVideoHeight());