src/bitmap_font.hpp \
src/dialogs.cpp \
src/dialogs.hpp \
+ src/file_bitmap.cpp \
+ src/file_bitmap.hpp \
src/ft2_bitmap.cpp \
src/ft2_bitmap.hpp \
src/ft2_font.cpp \
src/os_timer.hpp \
src/os_window.hpp \
src/os_tooltip.hpp \
- src/png_bitmap.cpp \
- src/png_bitmap.hpp \
src/scaled_bitmap.cpp \
src/scaled_bitmap.hpp \
src/skin_main.cpp \
#include "builder.hpp"
#include "builder_data.hpp"
#include "interpreter.hpp"
-#include "../src/png_bitmap.hpp"
+#include "../src/file_bitmap.hpp"
#include "../src/os_factory.hpp"
#include "../src/generic_bitmap.hpp"
#include "../src/top_window.hpp"
void Builder::addBitmap( const BuilderData::Bitmap &rData )
{
GenericBitmap *pBmp =
- new PngBitmap( getIntf(), m_pImageHandler,
- rData.m_fileName, rData.m_alphaColor );
+ new FileBitmap( getIntf(), m_pImageHandler,
+ rData.m_fileName, rData.m_alphaColor );
m_pTheme->m_bitmaps[rData.m_id] = GenericBitmapPtr( pBmp );
}
void Builder::addBitmapFont( const BuilderData::BitmapFont &rData )
{
GenericBitmap *pBmp =
- new PngBitmap( getIntf(), m_pImageHandler, rData.m_file, 0 );
+ new FileBitmap( getIntf(), m_pImageHandler, rData.m_file, 0 );
m_pTheme->m_bitmaps[rData.m_id] = GenericBitmapPtr( pBmp );
GenericFont *pFont = new BitmapFont( getIntf(), *pBmp, rData.m_type );
/*****************************************************************************
- * png_bitmap.cpp
+ * file_bitmap.cpp
*****************************************************************************
* Copyright (C) 2003 the VideoLAN team
* $Id$
#include <vlc/vlc.h>
#include "vlc_image.h"
-#include "png_bitmap.hpp"
+#include "file_bitmap.hpp"
-PngBitmap::PngBitmap( intf_thread_t *pIntf, image_handler_t *pImageHandler,
- string fileName, uint32_t aColor ):
+FileBitmap::FileBitmap( intf_thread_t *pIntf, image_handler_t *pImageHandler,
+ string fileName, uint32_t aColor ):
GenericBitmap( pIntf ), m_width( 0 ), m_height( 0 )
{
video_format_t fmt_in = {0}, fmt_out = {0};
}
-PngBitmap::~PngBitmap()
+FileBitmap::~FileBitmap()
{
if( m_pData ) delete[] m_pData;
}
-uint8_t *PngBitmap::getData() const
+uint8_t *FileBitmap::getData() const
{
if( m_pData == NULL )
{
- msg_Warn( getIntf(), "PngBitmap::getData() returns NULL" );
+ msg_Warn( getIntf(), "FileBitmap::getData() returns NULL" );
}
return m_pData;
}
/*****************************************************************************
- * png_bitmap.hpp
+ * file_bitmap.hpp
*****************************************************************************
* Copyright (C) 2003 the VideoLAN team
* $Id$
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-#ifndef PNG_BITMAP_HPP
-#define PNG_BITMAP_HPP
+#ifndef FILE_BITMAP_HPP
+#define FILE_BITMAP_HPP
#include "generic_bitmap.hpp"
#include <string>
-/// Class for PNG bitmaps
-class PngBitmap: public GenericBitmap
+/// Class for file bitmaps
+class FileBitmap: public GenericBitmap
{
public:
- /// Load a PNG bitmap from a file. aColor is the transparency
+ /// Load a bitmap from a file. aColor is the transparency
/// color, in the format 0xRRGGBB
- PngBitmap( intf_thread_t *pIntf, image_handler_t *pImageHandler,
- string fileName, uint32_t aColor );
+ FileBitmap( intf_thread_t *pIntf, image_handler_t *pImageHandler,
+ string fileName, uint32_t aColor );
- virtual ~PngBitmap();
+ virtual ~FileBitmap();
/// Get the width of the bitmap
virtual int getWidth() const { return m_width; }