<commit_before>//
// Copyright (c) 2001-2003 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//

#ifndef VTOSG_IMAGEH
#define VTOSG_IMAGEH

#include "vtdata/vtDIB.h"

class vtImage: public vtImageBase, public osg::Referenced
{
public:
	vtImage(const char *fname, int internalformat = -1);
	vtImage(class vtDIB *pDIB, int internalformat = -1);
	void Release();

	// Implementation
	osg::ref_ptr<osg::Image>	m_pOsgImage;

protected:
	int		m_internalformat;
	unsigned char *m_pPngData;

	void _CreateFromDIB(vtDIB *pDIB);
	bool _ReadPNG(const char *filename);

private:
	virtual ~vtImage();
};

#endif	// VTOSG_IMAGEH
<commit_msg>fix gcc warning on private destructor<commit_after>//
// Copyright (c) 2001-2003 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//

#ifndef VTOSG_IMAGEH
#define VTOSG_IMAGEH

#include "vtdata/vtDIB.h"

class vtImage: public vtImageBase, public osg::Referenced
{
public:
	vtImage(const char *fname, int internalformat = -1);
	vtImage(class vtDIB *pDIB, int internalformat = -1);
	void Release();

	// Implementation
	osg::ref_ptr<osg::Image>	m_pOsgImage;

protected:
	int		m_internalformat;
	unsigned char *m_pPngData;

	void _CreateFromDIB(vtDIB *pDIB);
	bool _ReadPNG(const char *filename);

protected:	// should be private, but that causes an annoying gcc warning
	virtual ~vtImage();
};

#endif	// VTOSG_IMAGEH

{'fraction_non_alphanumeric': 0.11389684813753581, 'fraction_numerical': 0.014326647564469915, 'mean_word_length': 4.845188284518828, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3930898', 'n_tokens_mistral': 540, 'n_tokens_neox': 515, 'n_words': 141}