jpginputmapstream.h
来自「Jpeg编解码器的源代码」· C头文件 代码 · 共 55 行
H
55 行
#ifndef CB__JPGINPUTMAPSTREAM_H
#define CB__JPGINPUTMAPSTREAM_H
//
// Copyright (c) 1999 Colosseum Builders, Inc.
// All rights reserved.
//
// Colosseum Builders, Inc. makes no warranty, expressed or implied
// with regards to this software. It is provided as is.
//
// See the README.TXT file that came with this software for restrictions
// on the use and redistribution of this file or send E-mail to
// info@colosseumbuilders.com
//
#include <fstream>
#include <windows.h>
#include "jpginputstream.h"
namespace Colosseum
{
class JpegInputMapStream : virtual public JpegInputStream
{
public:
JpegInputMapStream () ;
virtual ~JpegInputMapStream () ;
operator bool () ;
void open (const std::string &filename) ;
void close () ;
virtual POSITIONTYPE tellg () ;
virtual void seekg (POSITIONTYPE) ;
private:
JpegInputMapStream (const JpegInputMapStream &) ;
JpegInputMapStream &operator=(const JpegInputMapStream &) ;
virtual void fillBuffer () ;
virtual bool endReached () ;
HFILE file_handle ;
HANDLE file_mapping ;
void *map_location ;
bool is_open ;
} ;
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?