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

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

?? jmemname.c

?? 基于Linux的ffmepg decoder
?? C
字號:
/* * jmemname.c * * Copyright (C) 1992-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 provides a generic implementation of the system-dependent * portion of the JPEG memory manager.  This implementation assumes that * you must explicitly construct a name for each temp file. * Also, the problem of determining the amount of memory available * is shoved onto the user. */#define JPEG_INTERNALS#include "jinclude.h"#include "jpeglib.h"#include "jmemsys.h"		/* import the system-dependent declarations */#ifndef HAVE_STDLIB_H		/* <stdlib.h> should declare malloc(),free() */extern void * malloc JPP((size_t size));extern void free JPP((void *ptr));#endif#ifndef SEEK_SET		/* pre-ANSI systems may not define this; */#define SEEK_SET  0		/* if not, assume 0 is correct */#endif#ifdef DONT_USE_B_MODE		/* define mode parameters for fopen() */#define READ_BINARY	"r"#define RW_BINARY	"w+"#else#ifdef VMS			/* VMS is very nonstandard */#define READ_BINARY	"rb", "ctx=stm"#define RW_BINARY	"w+b", "ctx=stm"#else				/* standard ANSI-compliant case */#define READ_BINARY	"rb"#define RW_BINARY	"w+b"#endif#endif/* * Selection of a file name for a temporary file. * This is system-dependent! * * The code as given is suitable for most Unix systems, and it is easily * modified for most non-Unix systems.  Some notes: *  1.  The temp file is created in the directory named by TEMP_DIRECTORY. *      The default value is /usr/tmp, which is the conventional place for *      creating large temp files on Unix.  On other systems you'll probably *      want to change the file location.  You can do this by editing the *      #define, or (preferred) by defining TEMP_DIRECTORY in jconfig.h. * *  2.  If you need to change the file name as well as its location, *      you can override the TEMP_FILE_NAME macro.  (Note that this is *      actually a printf format string; it must contain %s and %d.) *      Few people should need to do this. * *  3.  mktemp() is used to ensure that multiple processes running *      simultaneously won't select the same file names.  If your system *      doesn't have mktemp(), define NO_MKTEMP to do it the hard way. *      (If you don't have <errno.h>, also define NO_ERRNO_H.) * *  4.  You probably want to define NEED_SIGNAL_CATCHER so that cjpeg.c/djpeg.c *      will cause the temp files to be removed if you stop the program early. */#ifndef TEMP_DIRECTORY		/* can override from jconfig.h or Makefile *///#define TEMP_DIRECTORY  "/usr/tmp/" /* recommended setting for Unix */#define TEMP_DIRECTORY  "./" /* modified by Leo */#endifstatic int next_file_num;	/* to distinguish among several temp files */#ifdef NO_MKTEMP#ifndef TEMP_FILE_NAME		/* can override from jconfig.h or Makefile */#define TEMP_FILE_NAME  "%sJPG%03d.TMP"#endif#ifndef NO_ERRNO_H#include <errno.h>		/* to define ENOENT */#endif/* ANSI C specifies that errno is a macro, but on older systems it's more * likely to be a plain int variable.  And not all versions of errno.h * bother to declare it, so we have to in order to be most portable.  Thus: */#ifndef errnoextern int errno;#endif/*LOCAL(void)select_file_name (char * fname){  FILE * tfile;  // Keep generating file names till we find one that's not in use  for (;;) {    next_file_num++;		// advance counter     sprintf(fname, TEMP_FILE_NAME, TEMP_DIRECTORY, next_file_num);    if ((tfile = fopen(fname, READ_BINARY)) == NULL) {      // fopen could have failed for a reason other than the file not      // being there; for example, file there but unreadable.      // If <errno.h> isn't available, then we cannot test the cause.      //#ifdef ENOENT      if (errno != ENOENT)	continue;#endif      break;    }    fclose(tfile);		// oops, it's there; close tfile & try again   }  }*/#else /* ! NO_MKTEMP */// Note that mktemp() requires the initial filename to end in six X's #ifndef TEMP_FILE_NAME		// can override from jconfig.h or Makefile#define TEMP_FILE_NAME  "%sJPG%dXXXXXX"#endif/*LOCAL(void)select_file_name (char * fname){  next_file_num++;		// advance counter   sprintf(fname, TEMP_FILE_NAME, TEMP_DIRECTORY, next_file_num);  mktemp(fname);		// make sure file name is unique   // mktemp replaces the trailing XXXXXX with a unique string of characters }*/#endif /* NO_MKTEMP *//* * Memory allocation and freeing are controlled by the regular library * routines malloc() and free(). */GLOBAL(void *)jpeg_get_small (j_common_ptr cinfo, size_t sizeofobject){  return (void *) malloc(sizeofobject);}GLOBAL(void)jpeg_free_small (j_common_ptr cinfo, void * object, size_t sizeofobject){  free(object);}/* * "Large" objects are treated the same as "small" ones. * NB: although we include FAR keywords in the routine declarations, * this file won't actually work in 80x86 small/medium model; at least, * you probably won't be able to process useful-size images in only 64KB. */GLOBAL(void FAR *)jpeg_get_large (j_common_ptr cinfo, size_t sizeofobject){  return (void FAR *) malloc(sizeofobject);}GLOBAL(void)jpeg_free_large (j_common_ptr cinfo, void FAR * object, size_t sizeofobject){  free(object);}/* * This routine computes the total memory space available for allocation. * It's impossible to do this in a portable way; our current solution is * to make the user tell us (with a default value set at compile time). * If you can actually get the available space, it's a good idea to subtract * a slop factor of 5% or so. */#ifndef DEFAULT_MAX_MEM		/* so can override from makefile */#define DEFAULT_MAX_MEM		1000000L /* default: one megabyte */#endifGLOBAL(long)jpeg_mem_available (j_common_ptr cinfo, long min_bytes_needed,		    long max_bytes_needed, long already_allocated){  return cinfo->mem->max_memory_to_use - already_allocated;}/* * Backing store (temporary file) management. * Backing store objects are only used when the value returned by * jpeg_mem_available is less than the total space needed.  You can dispense * with these routines if you have plenty of virtual memory; see jmemnobs.c. */METHODDEF(void)read_backing_store (j_common_ptr cinfo, backing_store_ptr info,		    void FAR * buffer_address,		    long file_offset, long byte_count){  /*  if (fseek(info->temp_file, file_offset, SEEK_SET))    ERREXIT(cinfo, JERR_TFILE_SEEK);  if (JFREAD(info->temp_file, buffer_address, byte_count)      != (size_t) byte_count)    ERREXIT(cinfo, JERR_TFILE_READ);  */}METHODDEF(void)write_backing_store (j_common_ptr cinfo, backing_store_ptr info,		     void FAR * buffer_address,		     long file_offset, long byte_count){  /*  if (fseek(info->temp_file, file_offset, SEEK_SET))    ERREXIT(cinfo, JERR_TFILE_SEEK);  if (JFWRITE(info->temp_file, buffer_address, byte_count)      != (size_t) byte_count)    ERREXIT(cinfo, JERR_TFILE_WRITE);  */}METHODDEF(void)close_backing_store (j_common_ptr cinfo, backing_store_ptr info){  /*  fclose(info->temp_file);	// close the file   remove(info->temp_name);	// using remove operation under ARM processor    // unlink(info->temp_name);	// delete the file // original code    // If your system doesn't have unlink(), use remove() instead.// remove() is the ANSI-standard name for this function, but if// your system was ANSI you'd be using jmemansi.c, right?//  TRACEMSS(cinfo, 1, JTRC_TFILE_CLOSE, info->temp_name);  */}/* * Initial opening of a backing-store object. */GLOBAL(void)jpeg_open_backing_store (j_common_ptr cinfo, backing_store_ptr info,			 long total_bytes_needed){  /*  select_file_name(info->temp_name);    if ((info->temp_file = fopen(info->temp_name, RW_BINARY)) == NULL)    ERREXITS(cinfo, JERR_TFILE_CREATE, info->temp_name);  */  info->read_backing_store = read_backing_store;  info->write_backing_store = write_backing_store;  info->close_backing_store = close_backing_store;  TRACEMSS(cinfo, 1, JTRC_TFILE_OPEN, info->temp_name);}/* * These routines take care of any system-dependent initialization and * cleanup required. */GLOBAL(long)jpeg_mem_init (j_common_ptr cinfo){  next_file_num = 0;		/* initialize temp file name generator */  return DEFAULT_MAX_MEM;	/* default for max_memory_to_use */}GLOBAL(void)jpeg_mem_term (j_common_ptr cinfo){  /* no work */}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区三区电影| 亚洲精品一区二区三区99| 欧美美女直播网站| 久久综合九色综合97婷婷| 亚洲美女一区二区三区| 国产久卡久卡久卡久卡视频精品| 色哟哟一区二区三区| ww久久中文字幕| 日韩高清在线电影| 91久久人澡人人添人人爽欧美| 欧美成人猛片aaaaaaa| 亚洲成a人在线观看| proumb性欧美在线观看| 日韩欧美国产三级电影视频| 亚洲国产精品久久不卡毛片| 97久久精品人人做人人爽| 日韩欧美在线观看一区二区三区| 亚洲精品视频在线| eeuss鲁片一区二区三区在线看| 久久影院午夜论| 美腿丝袜亚洲三区| 在线观看91精品国产麻豆| 亚洲第一精品在线| 在线欧美日韩国产| 亚洲裸体xxx| 91视频在线看| 国产精品狼人久久影院观看方式| 国产不卡一区视频| 亚洲国产成人一区二区三区| 国产电影一区二区三区| 久久婷婷国产综合精品青草| 国产麻豆精品在线| 久久香蕉国产线看观看99| 国内久久精品视频| 久久久久久久久久久久久女国产乱| 麻豆精品精品国产自在97香蕉 | 亚洲不卡av一区二区三区| 91丝袜美腿高跟国产极品老师| 亚洲欧洲av一区二区三区久久| 成人精品视频一区二区三区尤物| 久久综合九色欧美综合狠狠| 国产盗摄女厕一区二区三区| 中文av字幕一区| 日本精品一级二级| 亚洲成人av一区二区三区| 欧美日韩国产大片| 毛片不卡一区二区| 久久精品亚洲麻豆av一区二区| 国产99久久久精品| 中文字幕高清一区| 在线免费观看成人短视频| 日韩成人午夜精品| 日韩一级片网站| 国产福利一区二区| 亚洲制服欧美中文字幕中文字幕| 欧美色中文字幕| 韩国女主播一区二区三区| 国产亚洲1区2区3区| 色狠狠桃花综合| 免费欧美日韩国产三级电影| 久久久久久久一区| 91精品福利视频| 蜜桃av一区二区在线观看| 久久久九九九九| 91猫先生在线| 日本va欧美va瓶| 国产欧美日韩麻豆91| 色播五月激情综合网| 奇米一区二区三区av| 国产欧美精品一区二区色综合朱莉| 色av综合在线| 久久99精品国产麻豆婷婷| 亚洲欧洲日本在线| 日韩网站在线看片你懂的| 国产福利精品导航| 丝袜美腿亚洲一区二区图片| 国产视频亚洲色图| 欧美日韩国产中文| 91亚洲精品一区二区乱码| 蜜臂av日日欢夜夜爽一区| 亚洲欧洲精品一区二区精品久久久 | 欧美日韩精品系列| 国产自产2019最新不卡| 亚洲免费在线视频一区 二区| 日韩欧美一区电影| 成人毛片在线观看| 人人狠狠综合久久亚洲| 中文字幕永久在线不卡| 精品国产99国产精品| 日本韩国精品在线| 免费一级片91| 亚洲美女精品一区| 亚洲国产成人午夜在线一区| 精品国产乱码久久久久久图片| 色哟哟一区二区三区| 成人av资源网站| 久草精品在线观看| 爽好久久久欧美精品| 一区二区成人在线观看| 国产精品你懂的在线| 精品福利视频一区二区三区| 欧美日韩在线不卡| 欧美中文字幕一区| 在线观看91视频| 91麻豆产精品久久久久久| 国产91在线看| 成人一区二区视频| 国产一区二区三区精品视频| 久久黄色级2电影| 久久精品99国产精品日本| 欧美aⅴ一区二区三区视频| 亚洲第一搞黄网站| 亚洲成人动漫在线观看| 亚洲国产精品综合小说图片区| 亚洲色图19p| 一区二区三区日韩精品视频| 一区二区三区四区蜜桃| 综合分类小说区另类春色亚洲小说欧美| 国产精品天天摸av网| 国产精品网站导航| 国产精品丝袜久久久久久app| 欧美激情综合五月色丁香小说| 国产女同性恋一区二区| 中文字幕一区二区在线观看 | 日韩免费电影一区| 日韩视频不卡中文| 精品区一区二区| 欧美激情资源网| 国产精品福利电影一区二区三区四区| 国产精品乱人伦一区二区| 亚洲欧美二区三区| 日日夜夜精品视频免费| 久久成人久久爱| 国产成人精品影视| 91色.com| 欧美一区二区三区日韩视频| 日韩欧美精品在线| 欧美激情中文字幕一区二区| 亚洲免费资源在线播放| 日韩福利视频导航| 国产伦精品一区二区三区免费| 成人精品视频一区二区三区尤物| 在线亚洲+欧美+日本专区| 91精品国产欧美一区二区| 久久久精品人体av艺术| 一区二区三区不卡视频| 久久99精品久久久久| 不卡高清视频专区| 制服丝袜亚洲播放| 国产日韩亚洲欧美综合| 亚洲一区二区欧美| 精品午夜久久福利影院| 91在线视频网址| 欧美一级淫片007| 国产精品福利一区二区| 蜜臀99久久精品久久久久久软件 | 国产在线不卡视频| 91丨九色porny丨蝌蚪| 欧美成人aa大片| 亚洲男帅同性gay1069| 免费高清在线一区| 91色.com| 中文字幕乱码一区二区免费| 日本不卡在线视频| 91精彩视频在线| 久久精品视频在线免费观看| 婷婷综合五月天| 91在线国内视频| 精品国产成人在线影院 | 亚洲免费高清视频在线| 国产中文一区二区三区| 欧美日韩一区二区三区免费看 | 久久这里只有精品首页| 亚洲小说欧美激情另类| 成人永久免费视频| 26uuu亚洲婷婷狠狠天堂| 日韩vs国产vs欧美| 欧美色网站导航| 亚洲三级久久久| 丁香六月久久综合狠狠色| 欧美大片日本大片免费观看| 午夜精品福利视频网站| 色综合一区二区| 综合久久久久综合| 成人h精品动漫一区二区三区| 精品国产乱码久久久久久久| 性久久久久久久久久久久| 色综合色综合色综合色综合色综合| 国产欧美视频一区二区三区| 精品在线观看免费| 91精品国产91热久久久做人人| 亚洲午夜在线电影| 精品视频一区 二区 三区| 亚洲激情第一区| 91理论电影在线观看| 亚洲视频在线一区| 色88888久久久久久影院按摩| 欧美高清在线一区二区| 丁香另类激情小说| 亚洲欧洲成人av每日更新|