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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? jcmarker.c

?? MPEG4解碼程序源代碼(能夠?qū)Ω鞣NMPEG4文件進行解碼)
?? C
?? 第 1 頁 / 共 2 頁
字號:
////////////////////////////////////////////////////////////////////////
//
//	Note : this file is included as part of the Smaller Animals Software
//	JpegFile package. Though this file has not been modified from it's 
//	original IJG 6a form, it is not the responsibility on the Independent
//	JPEG Group to answer questions regarding this code.
//	
//	Any questions you have about this code should be addressed to :
//
//	CHRISDL@PAGESZ.NET	- the distributor of this package.
//
//	Remember, by including this code in the JpegFile package, Smaller 
//	Animals Software assumes all responsibilities for answering questions
//	about it. If we (SA Software) can't answer your questions ourselves, we 
//	will direct you to people who can.
//
//	Thanks, CDL.
//
////////////////////////////////////////////////////////////////////////


/*
 * jcmarker.c
 *
 * Copyright (C) 1991-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 routines to write JPEG datastream markers.
 */

#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"


typedef enum {			/* JPEG marker codes */
  M_SOF0  = 0xc0,
  M_SOF1  = 0xc1,
  M_SOF2  = 0xc2,
  M_SOF3  = 0xc3,
  
  M_SOF5  = 0xc5,
  M_SOF6  = 0xc6,
  M_SOF7  = 0xc7,
  
  M_JPG   = 0xc8,
  M_SOF9  = 0xc9,
  M_SOF10 = 0xca,
  M_SOF11 = 0xcb,
  
  M_SOF13 = 0xcd,
  M_SOF14 = 0xce,
  M_SOF15 = 0xcf,
  
  M_DHT   = 0xc4,
  
  M_DAC   = 0xcc,
  
  M_RST0  = 0xd0,
  M_RST1  = 0xd1,
  M_RST2  = 0xd2,
  M_RST3  = 0xd3,
  M_RST4  = 0xd4,
  M_RST5  = 0xd5,
  M_RST6  = 0xd6,
  M_RST7  = 0xd7,
  
  M_SOI   = 0xd8,
  M_EOI   = 0xd9,
  M_SOS   = 0xda,
  M_DQT   = 0xdb,
  M_DNL   = 0xdc,
  M_DRI   = 0xdd,
  M_DHP   = 0xde,
  M_EXP   = 0xdf,
  
  M_APP0  = 0xe0,
  M_APP1  = 0xe1,
  M_APP2  = 0xe2,
  M_APP3  = 0xe3,
  M_APP4  = 0xe4,
  M_APP5  = 0xe5,
  M_APP6  = 0xe6,
  M_APP7  = 0xe7,
  M_APP8  = 0xe8,
  M_APP9  = 0xe9,
  M_APP10 = 0xea,
  M_APP11 = 0xeb,
  M_APP12 = 0xec,
  M_APP13 = 0xed,
  M_APP14 = 0xee,
  M_APP15 = 0xef,
  
  M_JPG0  = 0xf0,
  M_JPG13 = 0xfd,
  M_COM   = 0xfe,
  
  M_TEM   = 0x01,
  
  M_ERROR = 0x100
} JPEG_MARKER;


/*
 * Basic output routines.
 *
 * Note that we do not support suspension while writing a marker.
 * Therefore, an application using suspension must ensure that there is
 * enough buffer space for the initial markers (typ. 600-700 bytes) before
 * calling jpeg_start_compress, and enough space to write the trailing EOI
 * (a few bytes) before calling jpeg_finish_compress.  Multipass compression
 * modes are not supported at all with suspension, so those two are the only
 * points where markers will be written.
 */

LOCAL(void)
emit_byte (j_compress_ptr cinfo, int val)
/* Emit a byte */
{
  struct jpeg_destination_mgr * dest = cinfo->dest;

  *(dest->next_output_byte)++ = (JOCTET) val;
  if (--dest->free_in_buffer == 0) {
    if (! (*dest->empty_output_buffer) (cinfo))
      ERREXIT(cinfo, JERR_CANT_SUSPEND);
  }
}


LOCAL(void)
emit_marker (j_compress_ptr cinfo, JPEG_MARKER mark)
/* Emit a marker code */
{
  emit_byte(cinfo, 0xFF);
  emit_byte(cinfo, (int) mark);
}


LOCAL(void)
emit_2bytes (j_compress_ptr cinfo, int value)
/* Emit a 2-byte integer; these are always MSB first in JPEG files */
{
  emit_byte(cinfo, (value >> 8) & 0xFF);
  emit_byte(cinfo, value & 0xFF);
}


/*
 * Routines to write specific marker types.
 */

LOCAL(int)
emit_dqt (j_compress_ptr cinfo, int index)
/* Emit a DQT marker */
/* Returns the precision used (0 = 8bits, 1 = 16bits) for baseline checking */
{
  JQUANT_TBL * qtbl = cinfo->quant_tbl_ptrs[index];
  int prec;
  int i;

  if (qtbl == NULL)
    ERREXIT1(cinfo, JERR_NO_QUANT_TABLE, index);

  prec = 0;
  for (i = 0; i < DCTSIZE2; i++) {
    if (qtbl->quantval[i] > 255)
      prec = 1;
  }

  if (! qtbl->sent_table) {
    emit_marker(cinfo, M_DQT);

    emit_2bytes(cinfo, prec ? DCTSIZE2*2 + 1 + 2 : DCTSIZE2 + 1 + 2);

    emit_byte(cinfo, index + (prec<<4));

    for (i = 0; i < DCTSIZE2; i++) {
      /* The table entries must be emitted in zigzag order. */
      unsigned int qval = qtbl->quantval[jpeg_natural_order[i]];
      if (prec)
	emit_byte(cinfo, qval >> 8);
      emit_byte(cinfo, qval & 0xFF);
    }

    qtbl->sent_table = TRUE;
  }

  return prec;
}


LOCAL(void)
emit_dht (j_compress_ptr cinfo, int index, boolean is_ac)
/* Emit a DHT marker */
{
  JHUFF_TBL * htbl;
  int length, i;
  
  if (is_ac) {
    htbl = cinfo->ac_huff_tbl_ptrs[index];
    index += 0x10;		/* output index has AC bit set */
  } else {
    htbl = cinfo->dc_huff_tbl_ptrs[index];
  }

  if (htbl == NULL)
    ERREXIT1(cinfo, JERR_NO_HUFF_TABLE, index);
  
  if (! htbl->sent_table) {
    emit_marker(cinfo, M_DHT);
    
    length = 0;
    for (i = 1; i <= 16; i++)
      length += htbl->bits[i];
    
    emit_2bytes(cinfo, length + 2 + 1 + 16);
    emit_byte(cinfo, index);
    
    for (i = 1; i <= 16; i++)
      emit_byte(cinfo, htbl->bits[i]);
    
    for (i = 0; i < length; i++)
      emit_byte(cinfo, htbl->huffval[i]);
    
    htbl->sent_table = TRUE;
  }
}


LOCAL(void)
emit_dac (j_compress_ptr cinfo)
/* Emit a DAC marker */
/* Since the useful info is so small, we want to emit all the tables in */
/* one DAC marker.  Therefore this routine does its own scan of the table. */
{
#ifdef C_ARITH_CODING_SUPPORTED
  char dc_in_use[NUM_ARITH_TBLS];
  char ac_in_use[NUM_ARITH_TBLS];
  int length, i;
  jpeg_component_info *compptr;
  
  for (i = 0; i < NUM_ARITH_TBLS; i++)
    dc_in_use[i] = ac_in_use[i] = 0;
  
  for (i = 0; i < cinfo->comps_in_scan; i++) {
    compptr = cinfo->cur_comp_info[i];
    dc_in_use[compptr->dc_tbl_no] = 1;
    ac_in_use[compptr->ac_tbl_no] = 1;
  }
  
  length = 0;
  for (i = 0; i < NUM_ARITH_TBLS; i++)
    length += dc_in_use[i] + ac_in_use[i];
  
  emit_marker(cinfo, M_DAC);
  
  emit_2bytes(cinfo, length*2 + 2);
  
  for (i = 0; i < NUM_ARITH_TBLS; i++) {
    if (dc_in_use[i]) {
      emit_byte(cinfo, i);
      emit_byte(cinfo, cinfo->arith_dc_L[i] + (cinfo->arith_dc_U[i]<<4));
    }
    if (ac_in_use[i]) {
      emit_byte(cinfo, i + 0x10);
      emit_byte(cinfo, cinfo->arith_ac_K[i]);
    }
  }
#endif /* C_ARITH_CODING_SUPPORTED */
}


LOCAL(void)
emit_dri (j_compress_ptr cinfo)
/* Emit a DRI marker */
{
  emit_marker(cinfo, M_DRI);
  
  emit_2bytes(cinfo, 4);	/* fixed length */

  emit_2bytes(cinfo, (int) cinfo->restart_interval);
}


LOCAL(void)
emit_sof (j_compress_ptr cinfo, JPEG_MARKER code)
/* Emit a SOF marker */
{
  int ci;
  jpeg_component_info *compptr;
  
  emit_marker(cinfo, code);
  
  emit_2bytes(cinfo, 3 * cinfo->num_components + 2 + 5 + 1); /* length */

  /* Make sure image isn't bigger than SOF field can handle */
  if ((long) cinfo->image_height > 65535L ||
      (long) cinfo->image_width > 65535L)
    ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) 65535);

  emit_byte(cinfo, cinfo->data_precision);
  emit_2bytes(cinfo, (int) cinfo->image_height);
  emit_2bytes(cinfo, (int) cinfo->image_width);

  emit_byte(cinfo, cinfo->num_components);

  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
       ci++, compptr++) {
    emit_byte(cinfo, compptr->component_id);
    emit_byte(cinfo, (compptr->h_samp_factor << 4) + compptr->v_samp_factor);
    emit_byte(cinfo, compptr->quant_tbl_no);
  }
}


LOCAL(void)
emit_sos (j_compress_ptr cinfo)
/* Emit a SOS marker */
{
  int i, td, ta;
  jpeg_component_info *compptr;
  
  emit_marker(cinfo, M_SOS);
  
  emit_2bytes(cinfo, 2 * cinfo->comps_in_scan + 2 + 1 + 3); /* length */
  
  emit_byte(cinfo, cinfo->comps_in_scan);
  
  for (i = 0; i < cinfo->comps_in_scan; i++) {
    compptr = cinfo->cur_comp_info[i];
    emit_byte(cinfo, compptr->component_id);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美成人一区二区| 一区二区三区小说| 激情都市一区二区| 日韩午夜在线播放| 精品一区二区成人精品| 久久亚洲影视婷婷| 成人午夜在线播放| 国产精品第五页| 91福利在线看| 日本怡春院一区二区| 日韩久久免费av| 国产福利91精品一区| 国产精品成人一区二区艾草| 欧美午夜寂寞影院| 蜜芽一区二区三区| 亚洲国产精品二十页| 色婷婷av一区二区三区之一色屋| 亚洲福利一区二区三区| 日韩精品一区二区三区在线观看 | 99这里只有久久精品视频| 亚洲视频一二三区| 欧美日韩国产中文| 国产精品自拍毛片| 一区二区三区影院| 精品乱人伦一区二区三区| 国产精品538一区二区在线| 亚洲视频一区在线| 日韩三级.com| 成人成人成人在线视频| 日韩高清一区二区| 国产精品的网站| 日韩欧美中文一区二区| 成人污污视频在线观看| 三级欧美韩日大片在线看| 国产亚洲精品福利| 欧美日韩成人在线| 成人激情视频网站| 久热成人在线视频| 亚洲午夜激情av| 国产精品国产自产拍在线| 555www色欧美视频| 91免费观看视频在线| 激情综合网最新| 首页综合国产亚洲丝袜| 成人欧美一区二区三区白人 | 国产一区不卡视频| 亚洲a一区二区| 国产精品久久二区二区| 精品人伦一区二区色婷婷| 91视频com| 高潮精品一区videoshd| 美女网站视频久久| 午夜精品久久久久久久久久久| 中文字幕av不卡| 久久嫩草精品久久久久| 欧美一区二区三区免费在线看 | 99久久伊人网影院| 国内精品写真在线观看 | 久久er99精品| 香蕉加勒比综合久久| 国产精品成人免费在线| 国产婷婷色一区二区三区| 欧美一区永久视频免费观看| 91精彩视频在线| 91免费视频网址| 成人18视频日本| 成人小视频免费观看| 国产成人精品一区二区三区四区| 久久精品久久99精品久久| 免费欧美在线视频| 青青草国产成人av片免费| 日韩精品福利网| 视频在线观看国产精品| 亚洲成人激情社区| 图片区小说区区亚洲影院| 亚洲成人精品影院| 视频在线在亚洲| 日本人妖一区二区| 美女网站视频久久| 韩国女主播成人在线观看| 91国内精品野花午夜精品| kk眼镜猥琐国模调教系列一区二区| 秋霞电影一区二区| 亚洲成人av中文| 亚洲成av人片在线观看无码| 亚洲国产一区二区三区 | 精品国产乱码久久久久久久久| 91精品国产综合久久精品图片 | 国产精品久久久久影院亚瑟 | 国产综合色在线视频区| 捆绑调教美女网站视频一区| 精品无人区卡一卡二卡三乱码免费卡 | 91九色02白丝porn| 欧美麻豆精品久久久久久| 国产一区二区在线观看免费| 成人欧美一区二区三区黑人麻豆| 国产欧美综合在线观看第十页| 久久久影视传媒| 国产精品美女一区二区| 中文字幕不卡在线| 中文字幕欧美国产| 亚洲欧洲一区二区在线播放| 亚洲一区免费在线观看| 日韩成人免费在线| 国产一区二区在线电影| 波多野结衣精品在线| 欧美日韩极品在线观看一区| 日韩一区国产二区欧美三区| 国产日韩欧美a| 亚洲欧美日韩成人高清在线一区| 亚洲国产va精品久久久不卡综合| 久久疯狂做爰流白浆xx| 成人国产精品免费网站| 欧美日韩国产天堂| 久久久久久99久久久精品网站| 国产精品成人在线观看| 欧美激情在线一区二区| 最新日韩在线视频| 日本在线不卡视频| 99久久精品免费看国产| 欧美一卡二卡三卡| 国产精品电影一区二区三区| 青青草97国产精品免费观看无弹窗版| 国内成+人亚洲+欧美+综合在线 | 久久99国内精品| 北岛玲一区二区三区四区| 欧美一级欧美三级在线观看 | 在线不卡一区二区| 国产欧美日韩在线看| 日韩电影免费在线观看网站| 成人免费黄色在线| 91精品国产乱| 亚洲激情六月丁香| 狠狠狠色丁香婷婷综合久久五月| 91免费观看在线| 国产蜜臀97一区二区三区| 丝袜诱惑亚洲看片| 色婷婷综合视频在线观看| 久久久噜噜噜久久人人看| 亚洲成人资源在线| 99精品桃花视频在线观看| 亚洲精品在线三区| 亚洲成av人片一区二区| av在线播放一区二区三区| 欧美变态tickling挠脚心| 亚洲大片精品永久免费| 色视频欧美一区二区三区| 国产日韩影视精品| 狠狠色丁香婷婷综合| 欧美一卡在线观看| 亚洲国产sm捆绑调教视频 | 欧美性猛交xxxxxx富婆| 国产日韩成人精品| 国产在线精品一区二区不卡了| 91精品国模一区二区三区| 午夜久久久影院| 欧美三区在线观看| 亚洲一区二区三区影院| 91国偷自产一区二区三区观看| 国产精品国产三级国产有无不卡| 国产精品中文有码| 久久久亚洲午夜电影| 韩国毛片一区二区三区| 日韩免费观看高清完整版| 麻豆成人免费电影| 精品国产污网站| 另类的小说在线视频另类成人小视频在线| 欧美色图片你懂的| 午夜久久久久久久久| 欧美日韩国产小视频在线观看| 亚洲 欧美综合在线网络| 欧美日韩高清影院| 日韩国产在线观看| 日韩精品最新网址| 国产一区亚洲一区| 国产性天天综合网| 白白色亚洲国产精品| 亚洲黄色小视频| 欧美三级视频在线观看| 日韩国产精品大片| 26uuuu精品一区二区| 国产一区二区女| 国产精品毛片久久久久久久| 97se亚洲国产综合自在线观| 一区二区三区不卡视频 | 美女网站一区二区| 久久久美女毛片| 99vv1com这只有精品| 亚洲一区二区三区四区五区中文| 精品视频一区 二区 三区| 日本中文字幕一区| 国产亚洲精品资源在线26u| 99免费精品在线观看| 午夜激情综合网| 337p粉嫩大胆噜噜噜噜噜91av | 亚洲欧美色图小说| 欧美日韩不卡一区| 国产精品一区2区| 一级中文字幕一区二区| 91精品国产综合久久久久久久久久|