亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? jarrsrc.c

?? windows CE下jpeg壓縮源碼
?? C
字號:
/*
 * jdatasrc.c
 *
 * Copyright (C) 1994-1996, Thomas G. Lane.
 * This file is part of the Independent JPEG Group's software.
 * For conditions of distribution and use, see the accompanying README file.
 *
 * This file contains decompression data source routines for the case of
 * reading JPEG data from a file (or any stdio stream).  While these routines
 * are sufficient for most applications, some will want to use a different
 * source manager.
 * IMPORTANT: we assume that fread() will correctly transcribe an array of
 * JOCTETs from 8-bit-wide elements on external storage.  If char is wider
 * than 8 bits on your machine, you may need to do some tweaking.
 */

/* this is not a core library module, so it doesn't define JPEG_INTERNALS */

#include "jinclude.h"
#include "jpeglib.h"
#include "jerror.h"


/* Expanded data source object for stdio input */

typedef struct {
  struct jpeg_source_mgr pub;	/* public fields */

  JOCTET* image_data_buffer;
  size_t image_data_size;
} arr_source_mgr;

typedef arr_source_mgr * arr_src_ptr;

/*
 * Initialize source --- called by jpeg_read_header
 * before any data is actually read.
 */

METHODDEF(void)
init_source (j_decompress_ptr cinfo)
{
}


/*
 * Fill the input buffer --- called whenever buffer is emptied.
 *
 * In typical applications, this should read fresh data into the buffer
 * (ignoring the current state of next_input_byte & bytes_in_buffer),
 * reset the pointer & count to the start of the buffer, and return TRUE
 * indicating that the buffer has been reloaded.  It is not necessary to
 * fill the buffer entirely, only to obtain at least one more byte.
 *
 * There is no such thing as an EOF return.  If the end of the file has been
 * reached, the routine has a choice of ERREXIT() or inserting fake data into
 * the buffer.  In most cases, generating a warning message and inserting a
 * fake EOI marker is the best course of action --- this will allow the
 * decompressor to output however much of the image is there.  However,
 * the resulting error message is misleading if the real problem is an empty
 * input file, so we handle that case specially.
 *
 * In applications that need to be able to suspend compression due to input
 * not being available yet, a FALSE return indicates that no more data can be
 * obtained right now, but more may be forthcoming later.  In this situation,
 * the decompressor will return to its caller (with an indication of the
 * number of scanlines it has read, if any).  The application should resume
 * decompression after it has loaded more data into the input buffer.  Note
 * that there are substantial restrictions on the use of suspension --- see
 * the documentation.
 *
 * When suspending, the decompressor will back up to a convenient restart point
 * (typically the start of the current MCU). next_input_byte & bytes_in_buffer
 * indicate where the restart point will be if the current call returns FALSE.
 * Data beyond this point must be rescanned after resumption, so move it to
 * the front of the buffer rather than discarding it.
 */

METHODDEF(boolean)
fill_input_buffer (j_decompress_ptr cinfo)
{
	arr_src_ptr src = (arr_src_ptr) cinfo->src;

	src->pub.next_input_byte = src->image_data_buffer;
	src->pub.bytes_in_buffer = src->image_data_size;

	return TRUE;
}


/*
 * Skip data --- used to skip over a potentially large amount of
 * uninteresting data (such as an APPn marker).
 *
 * Writers of suspendable-input applications must note that skip_input_data
 * is not granted the right to give a suspension return.  If the skip extends
 * beyond the data currently in the buffer, the buffer can be marked empty so
 * that the next read will cause a fill_input_buffer call that can suspend.
 * Arranging for additional bytes to be discarded before reloading the input
 * buffer is the application writer's problem.
 */

METHODDEF(void)
skip_input_data (j_decompress_ptr cinfo, long num_bytes)
{
	arr_src_ptr src = (arr_src_ptr) cinfo->src;

	if (num_bytes > 0) {
		src->pub.next_input_byte += (size_t) num_bytes;
		src->pub.bytes_in_buffer -= (size_t) num_bytes;
	}
}


/*
 * An additional method that can be provided by data source modules is the
 * resync_to_restart method for error recovery in the presence of RST markers.
 * For the moment, this source module just uses the default resync method
 * provided by the JPEG library.  That method assumes that no backtracking
 * is possible.
 */


/*
 * Terminate source --- called by jpeg_finish_decompress
 * after all data has been read.  Often a no-op.
 *
 * NB: *not* called by jpeg_abort or jpeg_destroy; surrounding
 * application must deal with any cleanup that should happen even
 * for error exit.
 */

METHODDEF(void)
term_source (j_decompress_ptr cinfo)
{
  /* no work necessary here */
}


/*
 * Prepare for input from a stdio stream.
 * The caller must have already opened the stream, and is responsible
 * for closing it after finishing decompression.
 */

GLOBAL(void)
jpeg_arr_src (j_decompress_ptr cinfo, JOCTET *buffer, size_t size)
{
	arr_src_ptr src;

	/* The source object and input buffer are made permanent so that a series
	 * of JPEG images can be read from the same file by calling jpeg_stdio_src
	 * only before the first one.  (If we discarded the buffer at the end of
	 * one image, we'd likely lose the start of the next one.)
	 * This makes it unsafe to use this manager and a different source
	 * manager serially with the same JPEG object.  Caveat programmer.
	 */
	if (cinfo->src == NULL) {	/* first time for this JPEG object? */
		cinfo->src = (struct jpeg_source_mgr *)
			(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT, SIZEOF(arr_source_mgr));
	}

	src = (arr_src_ptr) cinfo->src;
	src->pub.init_source = init_source;
	src->pub.fill_input_buffer = fill_input_buffer;
	src->pub.skip_input_data = skip_input_data;
	src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */
	src->pub.term_source = term_source;
	src->pub.bytes_in_buffer = 0; /* forces fill_input_buffer on first read */
	src->pub.next_input_byte = NULL; /* until buffer loaded */

	src->image_data_buffer = buffer;
	src->image_data_size = size;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩激情视频在线观看| 国产91对白在线观看九色| 欧美系列一区二区| 亚洲综合色视频| 91久久精品午夜一区二区| 亚洲人妖av一区二区| 高清国产一区二区三区| 国产精品色呦呦| 国产精品88888| 国产欧美精品区一区二区三区 | 国产精品久久免费看| 国产成人亚洲精品狼色在线 | 日韩视频在线观看一区二区| 日av在线不卡| 日韩一区二区视频| 精品一区二区精品| 久久久另类综合| 国产a级毛片一区| 国产精品初高中害羞小美女文| www.成人网.com| 一区二区三区在线视频观看| 色一情一乱一乱一91av| 亚洲一区二区欧美激情| 欧美一区二区三区在线观看| 日本中文在线一区| 精品国产乱码久久久久久蜜臀| 精品无码三级在线观看视频| 久久久久久久久久电影| 高清在线不卡av| 伊人一区二区三区| 91精品欧美一区二区三区综合在| 麻豆国产精品官网| 免费人成在线不卡| 精品国产欧美一区二区| 国产成人在线视频网站| 亚洲欧洲国产日韩| 欧美艳星brazzers| 日本午夜一本久久久综合| 久久婷婷成人综合色| 99亚偷拍自图区亚洲| 一区二区三区在线视频免费 | 日韩视频免费观看高清完整版| 麻豆91小视频| 国产日韩欧美不卡| 欧美在线你懂得| 久久电影网电视剧免费观看| 国产午夜精品一区二区三区四区| 99久久精品国产毛片| 天堂一区二区在线| 久久精品一区蜜桃臀影院| 色哟哟一区二区在线观看| 免费看欧美美女黄的网站| 久久久久国产精品人| 色综合av在线| 精品一区二区三区免费| 亚洲人亚洲人成电影网站色| 制服.丝袜.亚洲.另类.中文| 盗摄精品av一区二区三区| 一区二区在线看| 欧美xfplay| 色综合久久六月婷婷中文字幕| 日本视频一区二区三区| 国产精品国产三级国产有无不卡| 欧美日本一区二区三区| 国产精品2024| 亚洲成av人片在线观看| 久久久久高清精品| 欧美日韩mp4| 成人免费高清视频| 人人超碰91尤物精品国产| 国产精品免费网站在线观看| 在线不卡a资源高清| 成人免费视频app| 日本人妖一区二区| 亚洲视频一区在线观看| 久久综合久久综合久久| 欧美日韩一区成人| 99亚偷拍自图区亚洲| 久久精品国产色蜜蜜麻豆| 亚洲精品成人在线| 久久精品在线观看| 日韩一区二区不卡| 欧美视频中文一区二区三区在线观看| 国产原创一区二区| 丝袜亚洲精品中文字幕一区| 中文字幕一区二区在线播放 | 精品久久久久久最新网址| 在线观看日韩毛片| 床上的激情91.| 裸体在线国模精品偷拍| 亚洲综合区在线| 中文乱码免费一区二区| 日韩一区二区影院| 欧美日韩午夜影院| 99精品欧美一区二区三区综合在线| 久久99久久精品欧美| 亚洲国产欧美在线| 亚洲美女一区二区三区| 中文一区在线播放| 久久这里都是精品| 亚洲人123区| 国产欧美日本一区二区三区| 精品免费国产一区二区三区四区| 欧美无砖专区一中文字| 91小视频免费观看| 成人白浆超碰人人人人| 国产高清久久久| 九九视频精品免费| 日韩av一区二| 午夜不卡在线视频| 亚洲国产另类av| 亚洲精选在线视频| 亚洲欧美日韩系列| 综合久久久久久久| 国产精品国产三级国产有无不卡 | 奇米精品一区二区三区在线观看 | 中文字幕不卡的av| 精品毛片乱码1区2区3区| 欧美男人的天堂一二区| 欧美日韩一区 二区 三区 久久精品 | 亚洲成人精品影院| 一区二区在线观看av| 亚洲欧洲精品成人久久奇米网| 中文字幕欧美激情| 国产偷v国产偷v亚洲高清| 欧美精品一区二区久久婷婷| 精品国产91久久久久久久妲己 | 91精品在线免费观看| 欧美日韩在线一区二区| 欧美色综合网站| 欧美四级电影在线观看| 欧美日韩久久一区| 欧美日韩三级在线| 欧美喷潮久久久xxxxx| 欧美高清精品3d| 日韩一区二区精品葵司在线| 日韩欧美在线不卡| 精品动漫一区二区三区在线观看| 精品国产伦一区二区三区免费| 久久久一区二区三区捆绑**| 久久久美女毛片| 国产精品国产三级国产a| 中文字幕亚洲不卡| 亚洲理论在线观看| 午夜精品免费在线| 蜜桃免费网站一区二区三区| 久久国产综合精品| 国产精品一级在线| 99久久精品免费| 日本韩国精品在线| 91精品福利在线一区二区三区| 日韩欧美一二三| 国产色爱av资源综合区| 国产精品国产三级国产aⅴ原创| 亚洲免费观看高清在线观看| 亚洲影院久久精品| 日日嗨av一区二区三区四区| 精久久久久久久久久久| 成人av网站免费| 在线观看日韩精品| 日韩免费在线观看| 国产精品久久三| 性欧美大战久久久久久久久| 久久av资源网| 不卡av在线免费观看| 欧美在线视频你懂得| 日韩欧美亚洲国产另类| 国产精品网友自拍| 夜夜精品浪潮av一区二区三区| 日本vs亚洲vs韩国一区三区 | 久久综合给合久久狠狠狠97色69| 久久久午夜精品理论片中文字幕| 自拍偷拍国产精品| 视频在线在亚洲| 国产精品中文欧美| 在线视频欧美区| 精品国产一区二区精华| 最新国产成人在线观看| 日本v片在线高清不卡在线观看| 国产成人免费xxxxxxxx| 色就色 综合激情| 26uuu精品一区二区| 亚洲精品免费在线| 欧美aⅴ一区二区三区视频| 成人久久18免费网站麻豆| 欧美精品123区| 中文字幕制服丝袜成人av| 日韩精品一二三区| 成人美女在线视频| 欧美群妇大交群中文字幕| 国产午夜亚洲精品羞羞网站| 一区二区三区 在线观看视频| 精品一区二区三区视频| 日本韩国欧美国产| 久久精品欧美日韩| 亚洲狠狠爱一区二区三区| 国产不卡视频一区| 日韩视频不卡中文| 亚洲激情图片qvod| 国产在线视频一区二区三区|