⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jpeg.h

📁 一个开源的Flash 播放器,可以在Windows/Linux 上运行
💻 H
字号:
// jpeg.h	-- Thatcher Ulrich <tu@tulrich.com> 2002// This source code has been donated to the Public Domain.  Do// whatever you want with it.// Wrapper for jpeg file operations.  The actual work is done by the// IJG jpeg lib.#ifndef JPEG_H#define JPEG_H#include "base/tu_config.h"struct jpeg_decompress_struct;struct jpeg_compress_struct;class tu_file;namespace jpeg{	// wrapper around jpeg_decompress_struct.	struct input {		// Read header and create a jpeg input object.		static input*	create(tu_file* in);// 		// Read SWF JPEG2-style header (separate encoding// 		// table followed by image data), and create jpeg// 		// input object.// 		static input*	create_swf_jpeg2(SDL_RWops* in);		static input*	create_swf_jpeg2_header_only(tu_file* in);		virtual ~input();		virtual void	discard_partial_buffer() = 0;		virtual void	start_image() = 0;		virtual void	finish_image() = 0;		virtual int	get_height() const = 0;		virtual int	get_width() const = 0;		virtual void	read_scanline(unsigned char* rgb_data) = 0;	};	// Helper object for writing jpeg image data.	struct output	{		// Create an output object.   Quality goes from 1-100.		static output*	create(tu_file* out, int width, int height, int quality);		virtual ~output();		// ...		virtual void	write_scanline(unsigned char* rgb_data) = 0;	};};#endif // JPEG_H// Local Variables:// mode: C++// c-basic-offset: 8 // tab-width: 8// indent-tabs-mode: t// End:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -