8
8
// SS SS tt ee ll ll aa aa
9
9
// SSSS ttt eeeee llll llll aaaaa
11
// Copyright (c) 1995-2008 by Bradford W. Mott and the Stella team
11
// Copyright (c) 1995-2010 by Bradford W. Mott, Stephen Anthony
12
// and the Stella Team
13
// See the file "license" for information on usage and redistribution of
14
// See the file "License.txt" for information on usage and redistribution of
14
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
// $Id: RomInfoWidget.hxx,v 1.4 2008/03/13 22:58:07 stephena Exp $
17
// $Id: RomInfoWidget.hxx 2001 2010-04-10 21:37:23Z stephena $
17
18
//============================================================================
19
20
#ifndef ROM_INFO_WIDGET_HXX
49
47
void parseProperties();
50
static bool isValidPNGHeader(uInt8* header);
51
static void readPNGChunk(ifstream& in, string& type, uInt8** data, int& size);
52
static bool parseIHDR(int& width, int& height, uInt8* data, int size);
53
static bool parseIDATChunk(const FrameBuffer& fb, GUI::Surface* surface,
54
int width, int height, uInt8* data, int size);
55
static string parseTextChunk(uInt8* data, int size);
48
bool isValidPNGHeader(uInt8* header);
49
void readPNGChunk(ifstream& in, string& type, uInt8** data, int& size);
50
bool parseIHDR(int& width, int& height, uInt8* data, int size);
51
bool parseIDATChunk(FBSurface* surface, int width, int height,
52
uInt8* data, int size);
53
string parseTextChunk(uInt8* data, int size);
58
// Surface holding the scaled PNG image
59
GUI::Surface* mySurface;
56
// Surface id and pointer holding the scaled PNG image
60
// How much to zoom the PNG image
61
63
// Whether the surface should be redrawn by drawWidget()
64
bool mySurfaceIsValid;
64
66
// Some ROM properties info, as well as 'tEXt' chunks from the PNG image
65
67
StringList myRomInfo;