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

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

?? jmemmgr.c

?? 基于Linux的ffmepg decoder
?? C
字號:
/* * jmemmgr.c * * Copyright (C) 1991-1997, 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 the JPEG system-independent memory management * routines.  This code is usable across a wide variety of machines; most * of the system dependencies have been isolated in a separate file. * The major functions provided here are: *   * pool-based allocation and freeing of memory; *   * policy decisions about how to divide available memory among the *     virtual arrays; *   * control logic for swapping virtual arrays between main memory and *     backing storage. * The separate system-dependent file provides the actual backing-storage * access code, and it contains the policy decision about how much total * main memory to use. * This file is system-dependent in the sense that some of its functions * are unnecessary in some systems.  For example, if there is enough virtual * memory so that backing storage will never be used, much of the virtual * array control logic could be removed.  (Of course, if you have that much * memory then you shouldn't care about a little bit of unused code...) */#define JPEG_INTERNALS#define AM_MEMORY_MANAGER	/* we define jvirt_Xarray_control structs */#include "jinclude.h"#include "jpeglib.h"#include "jmemsys.h"		/* import the system-dependent declarations */#ifndef NO_GETENV#ifndef HAVE_STDLIB_H		/* <stdlib.h> should declare getenv() *///extern char * getenv JPP((const char * name));#endif#endif/* * Some important notes: *   The allocation routines provided here must never return NULL. *   They should exit to error_exit if unsuccessful. * *   It's not a good idea to try to merge the sarray and barray routines, *   even though they are textually almost the same, because samples are *   usually stored as bytes while coefficients are shorts or ints.  Thus, *   in machines where byte pointers have a different representation from *   word pointers, the resulting machine code could not be the same. *//* * Many machines require storage alignment: longs must start on 4-byte * boundaries, doubles on 8-byte boundaries, etc.  On such machines, malloc() * always returns pointers that are multiples of the worst-case alignment * requirement, and we had better do so too. * There isn't any really portable way to determine the worst-case alignment * requirement.  This module assumes that the alignment requirement is * multiples of sizeof(ALIGN_TYPE). * By default, we define ALIGN_TYPE as double.  This is necessary on some * workstations (where doubles really do need 8-byte alignment) and will work * fine on nearly everything.  If your machine has lesser alignment needs, * you can save a few bytes by making ALIGN_TYPE smaller. * The only place I know of where this will NOT work is certain Macintosh * 680x0 compilers that define double as a 10-byte IEEE extended float. * Doing 10-byte alignment is counterproductive because longwords won't be * aligned well.  Put "#define ALIGN_TYPE long" in jconfig.h if you have * such a compiler. */#ifndef ALIGN_TYPE		/* so can override from jconfig.h */#define ALIGN_TYPE  double#endif/* * We allocate objects from "pools", where each pool is gotten with a single * request to jpeg_get_small() or jpeg_get_large().  There is no per-object * overhead within a pool, except for alignment padding.  Each pool has a * header with a link to the next pool of the same class. * Small and large pool headers are identical except that the latter's * link pointer must be FAR on 80x86 machines. * Notice that the "real" header fields are union'ed with a dummy ALIGN_TYPE * field.  This forces the compiler to make SIZEOF(small_pool_hdr) a multiple * of the alignment requirement of ALIGN_TYPE. */typedef union small_pool_struct * small_pool_ptr;typedef union small_pool_struct {  struct {    small_pool_ptr next;	/* next in list of pools */    size_t bytes_used;		/* how many bytes already used within pool */    size_t bytes_left;		/* bytes still available in this pool */  } hdr;  ALIGN_TYPE dummy;		/* included in union to ensure alignment */} small_pool_hdr;typedef union large_pool_struct FAR * large_pool_ptr;typedef union large_pool_struct {  struct {    large_pool_ptr next;	/* next in list of pools */    size_t bytes_used;		/* how many bytes already used within pool */    size_t bytes_left;		/* bytes still available in this pool */  } hdr;  ALIGN_TYPE dummy;		/* included in union to ensure alignment */} large_pool_hdr;/* * Here is the full definition of a memory manager object. */typedef struct {  struct jpeg_memory_mgr pub;	/* public fields */  /* Each pool identifier (lifetime class) names a linked list of pools. */  small_pool_ptr small_list[JPOOL_NUMPOOLS];  large_pool_ptr large_list[JPOOL_NUMPOOLS];  /* Since we only have one lifetime class of virtual arrays, only one   * linked list is necessary (for each datatype).  Note that the virtual   * array control blocks being linked together are actually stored somewhere   * in the small-pool list.   */  jvirt_sarray_ptr virt_sarray_list;  jvirt_barray_ptr virt_barray_list;  /* This counts total space obtained from jpeg_get_small/large */  long total_space_allocated;  /* alloc_sarray and alloc_barray set this value for use by virtual   * array routines.   */  JDIMENSION last_rowsperchunk;	/* from most recent alloc_sarray/barray */} my_memory_mgr;typedef my_memory_mgr * my_mem_ptr;/* * The control blocks for virtual arrays. * Note that these blocks are allocated in the "small" pool area. * System-dependent info for the associated backing store (if any) is hidden * inside the backing_store_info struct. */struct jvirt_sarray_control {  JSAMPARRAY mem_buffer;	/* => the in-memory buffer */  JDIMENSION rows_in_array;	/* total virtual array height */  JDIMENSION samplesperrow;	/* width of array (and of memory buffer) */  JDIMENSION maxaccess;		/* max rows accessed by access_virt_sarray */  JDIMENSION rows_in_mem;	/* height of memory buffer */  JDIMENSION rowsperchunk;	/* allocation chunk size in mem_buffer */  JDIMENSION cur_start_row;	/* first logical row # in the buffer */  JDIMENSION first_undef_row;	/* row # of first uninitialized row */  boolean pre_zero;		/* pre-zero mode requested? */  boolean dirty;		/* do current buffer contents need written? */  boolean b_s_open;		/* is backing-store data valid? */  jvirt_sarray_ptr next;	/* link to next virtual sarray control block */  backing_store_info b_s_info;	/* System-dependent control info */};struct jvirt_barray_control {  JBLOCKARRAY mem_buffer;	/* => the in-memory buffer */  JDIMENSION rows_in_array;	/* total virtual array height */  JDIMENSION blocksperrow;	/* width of array (and of memory buffer) */  JDIMENSION maxaccess;		/* max rows accessed by access_virt_barray */  JDIMENSION rows_in_mem;	/* height of memory buffer */  JDIMENSION rowsperchunk;	/* allocation chunk size in mem_buffer */  JDIMENSION cur_start_row;	/* first logical row # in the buffer */  JDIMENSION first_undef_row;	/* row # of first uninitialized row */  boolean pre_zero;		/* pre-zero mode requested? */  boolean dirty;		/* do current buffer contents need written? */  boolean b_s_open;		/* is backing-store data valid? */  jvirt_barray_ptr next;	/* link to next virtual barray control block */  backing_store_info b_s_info;	/* System-dependent control info */};#ifdef MEM_STATS		/* optional extra stuff for statistics */LOCAL(void)print_mem_stats (j_common_ptr cinfo, int pool_id){#if 0  my_mem_ptr mem = (my_mem_ptr) cinfo->mem;  small_pool_ptr shdr_ptr;  large_pool_ptr lhdr_ptr;  /* Since this is only a debugging stub, we can cheat a little by using   * fprintf directly rather than going through the trace message code.   * This is helpful because message parm array can't handle longs.   *///  fprintf(stderr, "Freeing pool %d, total space = %ld\n",//	  pool_id, mem->total_space_allocated);  for (lhdr_ptr = mem->large_list[pool_id]; lhdr_ptr != NULL;       lhdr_ptr = lhdr_ptr->hdr.next) {//    fprintf(stderr, "  Large chunk used %ld\n",//	    (long) lhdr_ptr->hdr.bytes_used);  }  for (shdr_ptr = mem->small_list[pool_id]; shdr_ptr != NULL;       shdr_ptr = shdr_ptr->hdr.next) {//    fprintf(stderr, "  Small chunk used %ld free %ld\n",//	    (long) shdr_ptr->hdr.bytes_used,//	    (long) shdr_ptr->hdr.bytes_left);  }#endif }#endif /* MEM_STATS */LOCAL(void)out_of_memory (j_common_ptr cinfo, int which)/* Report an out-of-memory error and stop execution *//* If we compiled MEM_STATS support, report alloc requests before dying */{#ifdef MEM_STATS  cinfo->err->trace_level = 2;	/* force self_destruct to report stats */#endif  ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, which);}/* * Allocation of "small" objects. * * For these, we use pooled storage.  When a new pool must be created, * we try to get enough space for the current request plus a "slop" factor, * where the slop will be the amount of leftover space in the new pool. * The speed vs. space tradeoff is largely determined by the slop values. * A different slop value is provided for each pool class (lifetime), * and we also distinguish the first pool of a class from later ones. * NOTE: the values given work fairly well on both 16- and 32-bit-int * machines, but may be too small if longs are 64 bits or more. */static const size_t first_pool_slop[JPOOL_NUMPOOLS] = {	1600,			/* first PERMANENT pool */	16000			/* first IMAGE pool */};static const size_t extra_pool_slop[JPOOL_NUMPOOLS] = {	0,			/* additional PERMANENT pools */	5000			/* additional IMAGE pools */};#define MIN_SLOP  50		/* greater than 0 to avoid futile looping */METHODDEF(void *)alloc_small (j_common_ptr cinfo, int pool_id, size_t sizeofobject)/* Allocate a "small" object */{  my_mem_ptr mem = (my_mem_ptr) cinfo->mem;  small_pool_ptr hdr_ptr, prev_hdr_ptr;  char * data_ptr;  size_t odd_bytes, min_request, slop;  //pwhsu:20031013  This isn't the procedure of alloc_small  /* Check for unsatisfiable request (do now to ensure no overflow below) */  if (sizeofobject > (size_t) (MAX_ALLOC_CHUNK-SIZEOF(small_pool_hdr)))    out_of_memory(cinfo, 1);	/* request exceeds malloc's ability */  //pwhsu:20031013  干Θdouble

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷一区二区三区四区| 亚洲欧美日韩人成在线播放| 久久69国产一区二区蜜臀| 欧美一区二区三区思思人| 美女高潮久久久| 精品女同一区二区| 国产成人综合精品三级| 欧美激情一区二区三区不卡| 99久久久国产精品免费蜜臀| 一区二区三区.www| 制服视频三区第一页精品| 韩国三级在线一区| 国产精品久久久久久久久久免费看| 91亚洲大成网污www| 亚洲成av人片www| 欧美成人三级在线| 成人高清在线视频| 亚洲成av人片在www色猫咪| 91麻豆精品国产91久久久久| 国产一区二区三区蝌蚪| 国产精品二三区| 欧美福利视频导航| 成人久久18免费网站麻豆 | 成人精品国产一区二区4080| 综合激情成人伊人| 日韩一级二级三级| 风间由美一区二区av101| 亚洲成人综合视频| 欧美激情艳妇裸体舞| 欧美日韩精品是欧美日韩精品| 精油按摩中文字幕久久| 亚洲欧美另类在线| 日韩美女在线视频| 色网站国产精品| 九一九一国产精品| 亚洲综合色自拍一区| 精品免费国产二区三区| 一本大道av一区二区在线播放| 久久99精品久久久久婷婷| 亚洲人成小说网站色在线 | 久久久久亚洲综合| 欧美三级韩国三级日本一级| 国产精品69久久久久水密桃| 午夜av区久久| 亚洲欧美在线另类| 精品女同一区二区| 欧美精品久久久久久久多人混战| 国产成人精品亚洲日本在线桃色 | 日韩电影在线免费看| 国产精品免费视频观看| 日韩一区二区在线观看视频播放| 北条麻妃国产九九精品视频| 理论电影国产精品| 亚洲国产精品久久不卡毛片| 中文字幕一区三区| 国产肉丝袜一区二区| 日韩欧美中文字幕制服| 色哟哟一区二区三区| 国产成人综合在线播放| 紧缚捆绑精品一区二区| 日韩一区精品视频| 一区二区三区国产| 国产精品国产自产拍高清av王其| 欧美不卡在线视频| 91精品欧美福利在线观看| 色播五月激情综合网| gogo大胆日本视频一区| 国产毛片精品一区| 久久精品国产亚洲一区二区三区 | 成人欧美一区二区三区1314| 日韩欧美亚洲国产精品字幕久久久| 欧美性色黄大片| 欧美午夜一区二区三区免费大片| 91浏览器打开| 一本色道久久综合亚洲aⅴ蜜桃 | 国产一区 二区| 麻豆精品国产传媒mv男同| 日日夜夜免费精品视频| 日韩精品亚洲专区| 天堂午夜影视日韩欧美一区二区| 亚洲一区二区视频| 亚洲午夜视频在线观看| 亚洲二区在线观看| 亚洲成人免费视频| 午夜精品一区二区三区电影天堂| 午夜婷婷国产麻豆精品| 午夜成人免费电影| 免费在线观看成人| 狠狠色丁香婷综合久久| 国产伦精一区二区三区| 国产精品99久久久久久有的能看| 国产高清成人在线| av电影在线观看不卡| 91偷拍与自偷拍精品| 在线观看日韩一区| 欧美一区二区网站| 国产亚洲一区二区三区在线观看| 中文乱码免费一区二区| 亚洲免费观看在线观看| 亚洲.国产.中文慕字在线| 日本亚洲三级在线| 国产成人99久久亚洲综合精品| aaa亚洲精品| 欧美日韩国产欧美日美国产精品| 欧美一区二区日韩| 国产亚洲精品超碰| 亚洲日本欧美天堂| 日韩精品一二三| 国产黄人亚洲片| 欧美亚洲丝袜传媒另类| 日韩欧美中文字幕一区| 国产精品水嫩水嫩| 亚洲v日本v欧美v久久精品| 国产在线视频一区二区| 色综合中文字幕国产 | 日韩视频一区二区| 国产无遮挡一区二区三区毛片日本| 国产精品高潮呻吟久久| 亚洲一区二区免费视频| 国产一区999| 在线观看91视频| 精品国内片67194| 亚洲男人电影天堂| 蜜臀久久99精品久久久画质超高清| 久久99精品网久久| 欧美在线999| 国产人伦精品一区二区| 亚洲午夜精品17c| 国产成人免费视频网站| 欧美另类一区二区三区| 国产精品色噜噜| 麻豆精品精品国产自在97香蕉| eeuss国产一区二区三区| 欧美一区二区三区不卡| 日韩美女精品在线| 精品一区二区免费看| 日本精品一区二区三区四区的功能| 日韩欧美国产一区二区三区| 亚洲另类春色校园小说| 国产不卡在线视频| 日韩精品一区二区三区四区视频 | 石原莉奈在线亚洲二区| av一区二区久久| 国产亚洲成av人在线观看导航| 天堂午夜影视日韩欧美一区二区| 一本到不卡免费一区二区| 国产欧美视频在线观看| 久久99热这里只有精品| 欧美精品一二三四| 一区二区三区在线观看动漫| 成人网男人的天堂| 久久综合九色综合97_久久久| 天堂av在线一区| 欧美日韩中文字幕一区二区| 国产精品国产三级国产三级人妇| 国产美女在线精品| 精品久久99ma| 久久精品国产99国产精品| 在线不卡一区二区| 午夜精品久久久久久久久| 欧日韩精品视频| 亚洲自拍与偷拍| 91高清视频在线| 一区二区在线看| 色视频成人在线观看免| 一区二区三区欧美亚洲| 91在线观看高清| 亚洲天堂av老司机| jiyouzz国产精品久久| 国产精品国产三级国产aⅴ原创 | 2020国产成人综合网| 久久99日本精品| 久久综合久久综合亚洲| 国产福利一区二区三区视频在线| 国产亚洲人成网站| 成人免费高清视频| 亚洲欧美在线视频| 欧美做爰猛烈大尺度电影无法无天| 亚洲影院久久精品| 欧美一区在线视频| 精品亚洲欧美一区| 国产日韩欧美激情| 91免费版在线看| 亚洲嫩草精品久久| 欧美日韩国产不卡| 久久成人免费日本黄色| 国产亚洲欧美日韩日本| 国产精品99久久久久久久vr| 国产精品另类一区| 色综合咪咪久久| 日韩高清在线不卡| 久久久久久麻豆| 91麻豆精品一区二区三区| 一区二区三区国产豹纹内裤在线| 欧美精品少妇一区二区三区| 精油按摩中文字幕久久| 国产精品私房写真福利视频| 欧美亚洲另类激情小说| 天堂精品中文字幕在线| 国产午夜精品美女毛片视频|