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

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

?? transupp.c

?? 這是在PCA下的基于IPP庫示例代碼例子,在網上下了IPP的庫之后,設置相關參數就可以編譯該代碼.
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* * transupp.c * * Copyright (C) 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 image transformation routines and other utility code * used by the jpegtran sample application.  These are NOT part of the core * JPEG library.  But we keep these routines separate from jpegtran.c to * ease the task of maintaining jpegtran-like programs that have other user * interfaces. *//* Although this file really shouldn't have access to the library internals, * it's helpful to let it call jround_up() and jcopy_block_row(). */#define JPEG_INTERNALS#include "jinclude.h"#include "jpeglib.h"#include "transupp.h"   /* My own external interface */#if TRANSFORMS_SUPPORTED/* * Lossless image transformation routines.  These routines work on DCT * coefficient arrays and thus do not require any lossy decompression * or recompression of the image. * Thanks to Guido Vollbeding for the initial design and code of this feature. * * Horizontal flipping is done in-place, using a single top-to-bottom * pass through the virtual source array.  It will thus be much the * fastest option for images larger than main memory. * * The other routines require a set of destination virtual arrays, so they * need twice as much memory as jpegtran normally does.  The destination * arrays are always written in normal scan order (top to bottom) because * the virtual array manager expects this.  The source arrays will be scanned * in the corresponding order, which means multiple passes through the source * arrays for most of the transforms.  That could result in much thrashing * if the image is larger than main memory. * * Some notes about the operating environment of the individual transform * routines: * 1. Both the source and destination virtual arrays are allocated from the *    source JPEG object, and therefore should be manipulated by calling the *    source's memory manager. * 2. The destination's component count should be used.  It may be smaller *    than the source's when forcing to grayscale. * 3. Likewise the destination's sampling factors should be used.  When *    forcing to grayscale the destination's sampling factors will be all 1, *    and we may as well take that as the effective iMCU size. * 4. When "trim" is in effect, the destination's dimensions will be the *    trimmed values but the source's will be untrimmed. * 5. All the routines assume that the source and destination buffers are *    padded out to a full iMCU boundary.  This is true, although for the *    source buffer it is an undocumented property of jdcoefct.c. * Notes 2,3,4 boil down to this: generally we should use the destination's * dimensions and ignore the source's. */LOCAL(void)do_flip_h (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,     jvirt_barray_ptr *src_coef_arrays)/* Horizontal flip; done in-place, so no separate dest array is required */{  JDIMENSION MCU_cols, comp_width, blk_x, blk_y;  int ci, k, offset_y;  JBLOCKARRAY buffer;  JCOEFPTR ptr1, ptr2;  JCOEF temp1, temp2;  jpeg_component_info *compptr;  /* Horizontal mirroring of DCT blocks is accomplished by swapping   * pairs of blocks in-place.  Within a DCT block, we perform horizontal   * mirroring by changing the signs of odd-numbered columns.   * Partial iMCUs at the right edge are left untouched.   */  MCU_cols = dstinfo->image_width / (dstinfo->max_h_samp_factor * DCTSIZE);  for (ci = 0; ci < dstinfo->num_components; ci++) {    compptr = dstinfo->comp_info + ci;    comp_width = MCU_cols * compptr->h_samp_factor;    for (blk_y = 0; blk_y < compptr->height_in_blocks;   blk_y += compptr->v_samp_factor) {      buffer = (*srcinfo->mem->access_virt_barray)  ((j_common_ptr) srcinfo, src_coef_arrays[ci], blk_y,   (JDIMENSION) compptr->v_samp_factor, TRUE);      for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) {  for (blk_x = 0; blk_x * 2 < comp_width; blk_x++) {    ptr1 = buffer[offset_y][blk_x];    ptr2 = buffer[offset_y][comp_width - blk_x - 1];    /* this unrolled loop doesn't need to know which row it's on... */    for (k = 0; k < DCTSIZE2; k += 2) {      temp1 = *ptr1;  /* swap even column */      temp2 = *ptr2;      *ptr1++ = temp2;      *ptr2++ = temp1;      temp1 = *ptr1;  /* swap odd column with sign change */      temp2 = *ptr2;      *ptr1++ = -temp2;      *ptr2++ = -temp1;    }  }      }    }  }}LOCAL(void)do_flip_v (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,     jvirt_barray_ptr *src_coef_arrays,     jvirt_barray_ptr *dst_coef_arrays)/* Vertical flip */{  JDIMENSION MCU_rows, comp_height, dst_blk_x, dst_blk_y;  int ci, i, j, offset_y;  JBLOCKARRAY src_buffer, dst_buffer;  JBLOCKROW src_row_ptr, dst_row_ptr;  JCOEFPTR src_ptr, dst_ptr;  jpeg_component_info *compptr;  /* We output into a separate array because we can't touch different   * rows of the source virtual array simultaneously.  Otherwise, this   * is a pretty straightforward analog of horizontal flip.   * Within a DCT block, vertical mirroring is done by changing the signs   * of odd-numbered rows.   * Partial iMCUs at the bottom edge are copied verbatim.   */  MCU_rows = dstinfo->image_height / (dstinfo->max_v_samp_factor * DCTSIZE);  for (ci = 0; ci < dstinfo->num_components; ci++) {    compptr = dstinfo->comp_info + ci;    comp_height = MCU_rows * compptr->v_samp_factor;    for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks;   dst_blk_y += compptr->v_samp_factor) {      dst_buffer = (*srcinfo->mem->access_virt_barray)  ((j_common_ptr) srcinfo, dst_coef_arrays[ci], dst_blk_y,   (JDIMENSION) compptr->v_samp_factor, TRUE);      if (dst_blk_y < comp_height) {  /* Row is within the mirrorable area. */  src_buffer = (*srcinfo->mem->access_virt_barray)    ((j_common_ptr) srcinfo, src_coef_arrays[ci],     comp_height - dst_blk_y - (JDIMENSION) compptr->v_samp_factor,     (JDIMENSION) compptr->v_samp_factor, FALSE);      } else {  /* Bottom-edge blocks will be copied verbatim. */  src_buffer = (*srcinfo->mem->access_virt_barray)    ((j_common_ptr) srcinfo, src_coef_arrays[ci], dst_blk_y,     (JDIMENSION) compptr->v_samp_factor, FALSE);      }      for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) {  if (dst_blk_y < comp_height) {    /* Row is within the mirrorable area. */    dst_row_ptr = dst_buffer[offset_y];    src_row_ptr = src_buffer[compptr->v_samp_factor - offset_y - 1];    for (dst_blk_x = 0; dst_blk_x < compptr->width_in_blocks;         dst_blk_x++) {      dst_ptr = dst_row_ptr[dst_blk_x];      src_ptr = src_row_ptr[dst_blk_x];      for (i = 0; i < DCTSIZE; i += 2) {        /* copy even row */        for (j = 0; j < DCTSIZE; j++)    *dst_ptr++ = *src_ptr++;        /* copy odd row with sign change */        for (j = 0; j < DCTSIZE; j++)    *dst_ptr++ = - *src_ptr++;      }    }  } else {    /* Just copy row verbatim. */    jcopy_block_row(src_buffer[offset_y], dst_buffer[offset_y],        compptr->width_in_blocks);  }      }    }  }}LOCAL(void)do_transpose (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,        jvirt_barray_ptr *src_coef_arrays,        jvirt_barray_ptr *dst_coef_arrays)/* Transpose source into destination */{  JDIMENSION dst_blk_x, dst_blk_y;  int ci, i, j, offset_x, offset_y;  JBLOCKARRAY src_buffer, dst_buffer;  JCOEFPTR src_ptr, dst_ptr;  jpeg_component_info *compptr;  /* Transposing pixels within a block just requires transposing the   * DCT coefficients.   * Partial iMCUs at the edges require no special treatment; we simply   * process all the available DCT blocks for every component.   */  for (ci = 0; ci < dstinfo->num_components; ci++) {    compptr = dstinfo->comp_info + ci;    for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks;   dst_blk_y += compptr->v_samp_factor) {      dst_buffer = (*srcinfo->mem->access_virt_barray)  ((j_common_ptr) srcinfo, dst_coef_arrays[ci], dst_blk_y,   (JDIMENSION) compptr->v_samp_factor, TRUE);      for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) {  for (dst_blk_x = 0; dst_blk_x < compptr->width_in_blocks;       dst_blk_x += compptr->h_samp_factor) {    src_buffer = (*srcinfo->mem->access_virt_barray)      ((j_common_ptr) srcinfo, src_coef_arrays[ci], dst_blk_x,       (JDIMENSION) compptr->h_samp_factor, FALSE);    for (offset_x = 0; offset_x < compptr->h_samp_factor; offset_x++) {      src_ptr = src_buffer[offset_x][dst_blk_y + offset_y];      dst_ptr = dst_buffer[offset_y][dst_blk_x + offset_x];      for (i = 0; i < DCTSIZE; i++)        for (j = 0; j < DCTSIZE; j++)    dst_ptr[j*DCTSIZE+i] = src_ptr[i*DCTSIZE+j];    }  }      }    }  }}LOCAL(void)do_rot_90 (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,     jvirt_barray_ptr *src_coef_arrays,     jvirt_barray_ptr *dst_coef_arrays)/* 90 degree rotation is equivalent to *   1. Transposing the image; *   2. Horizontal mirroring. * These two steps are merged into a single processing routine. */{  JDIMENSION MCU_cols, comp_width, dst_blk_x, dst_blk_y;  int ci, i, j, offset_x, offset_y;  JBLOCKARRAY src_buffer, dst_buffer;  JCOEFPTR src_ptr, dst_ptr;  jpeg_component_info *compptr;  /* Because of the horizontal mirror step, we can't process partial iMCUs   * at the (output) right edge properly.  They just get transposed and   * not mirrored.   */  MCU_cols = dstinfo->image_width / (dstinfo->max_h_samp_factor * DCTSIZE);  for (ci = 0; ci < dstinfo->num_components; ci++) {    compptr = dstinfo->comp_info + ci;    comp_width = MCU_cols * compptr->h_samp_factor;    for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks;   dst_blk_y += compptr->v_samp_factor) {      dst_buffer = (*srcinfo->mem->access_virt_barray)  ((j_common_ptr) srcinfo, dst_coef_arrays[ci], dst_blk_y,   (JDIMENSION) compptr->v_samp_factor, TRUE);      for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) {  for (dst_blk_x = 0; dst_blk_x < compptr->width_in_blocks;       dst_blk_x += compptr->h_samp_factor) {    src_buffer = (*srcinfo->mem->access_virt_barray)      ((j_common_ptr) srcinfo, src_coef_arrays[ci], dst_blk_x,       (JDIMENSION) compptr->h_samp_factor, FALSE);    for (offset_x = 0; offset_x < compptr->h_samp_factor; offset_x++) {      src_ptr = src_buffer[offset_x][dst_blk_y + offset_y];      if (dst_blk_x < comp_width) {        /* Block is within the mirrorable area. */        dst_ptr = dst_buffer[offset_y]    [comp_width - dst_blk_x - offset_x - 1];        for (i = 0; i < DCTSIZE; i++) {    for (j = 0; j < DCTSIZE; j++)      dst_ptr[j*DCTSIZE+i] = src_ptr[i*DCTSIZE+j];    i++;    for (j = 0; j < DCTSIZE; j++)      dst_ptr[j*DCTSIZE+i] = -src_ptr[i*DCTSIZE+j];        }      } else {        /* Edge blocks are transposed but not mirrored. */        dst_ptr = dst_buffer[offset_y][dst_blk_x + offset_x];        for (i = 0; i < DCTSIZE; i++)    for (j = 0; j < DCTSIZE; j++)      dst_ptr[j*DCTSIZE+i] = src_ptr[i*DCTSIZE+j];      }    }  }      }    }  }}LOCAL(void)do_rot_270 (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,      jvirt_barray_ptr *src_coef_arrays,      jvirt_barray_ptr *dst_coef_arrays)/* 270 degree rotation is equivalent to *   1. Horizontal mirroring; *   2. Transposing the image. * These two steps are merged into a single processing routine. */{  JDIMENSION MCU_rows, comp_height, dst_blk_x, dst_blk_y;  int ci, i, j, offset_x, offset_y;  JBLOCKARRAY src_buffer, dst_buffer;  JCOEFPTR src_ptr, dst_ptr;  jpeg_component_info *compptr;  /* Because of the horizontal mirror step, we can't process partial iMCUs   * at the (output) bottom edge properly.  They just get transposed and

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品国产91久久久更新时间 | 欧美中文字幕一二三区视频| 91在线国内视频| 欧美偷拍一区二区| 日韩视频免费观看高清完整版| 精品裸体舞一区二区三区| 中文字幕亚洲在| 亚洲在线一区二区三区| 理论电影国产精品| 色悠悠久久综合| 日韩欧美电影一区| 一区二区高清视频在线观看| 亚洲超碰97人人做人人爱| 久久99国产精品成人| 色综合一区二区| 精品国产a毛片| 亚洲成人免费看| 成人激情文学综合网| 6080亚洲精品一区二区| 欧美高清在线一区| 久久99精品视频| 日本高清不卡视频| 久久影音资源网| 亚洲黄色免费网站| 国产成人精品免费视频网站| 精品视频1区2区| 一区二区三区色| 成人免费电影视频| 久久久一区二区三区| 免费在线观看日韩欧美| 欧洲一区在线观看| 国产精品久久久久久久久动漫 | 国产日韩av一区| 麻豆一区二区三| 欧美精品日韩一区| 亚洲已满18点击进入久久| 成人免费观看av| 国产日韩欧美一区二区三区乱码| 亚洲va国产天堂va久久en| 色综合久久久久综合体桃花网| 久久精品夜色噜噜亚洲aⅴ| 麻豆国产精品777777在线| 欧美午夜理伦三级在线观看| 亚洲欧美日韩精品久久久久| 国产成人一区在线| 国产婷婷色一区二区三区在线| 捆绑调教美女网站视频一区| 91精品国产综合久久精品图片| 亚洲一区在线看| 欧美亚洲国产一区二区三区va| 亚洲欧美日韩电影| 日本二三区不卡| 中文字幕一区二区视频| 波多野结衣中文一区| 亚洲视频香蕉人妖| 国产一区二区三区精品欧美日韩一区二区三区 | 色哟哟欧美精品| 亚洲欧洲制服丝袜| 盗摄精品av一区二区三区| 久久久久久久久久久久久女国产乱| 色综合色狠狠天天综合色| 欧美日韩激情一区二区| 亚洲在线观看免费视频| 欧美亚洲一区三区| 香蕉久久夜色精品国产使用方法 | 在线观看www91| 91色婷婷久久久久合中文| 国产精品久久久一本精品| 色天天综合久久久久综合片| 亚洲成人动漫在线观看| 欧美精品一区二区三区久久久 | 91超碰这里只有精品国产| 精品中文字幕一区二区小辣椒| 日本一区二区久久| 欧美精品国产精品| 国产成人av影院| 日韩精品一区第一页| 亚洲国产精品成人综合 | 精品精品欲导航| 91麻豆蜜桃一区二区三区| 毛片av中文字幕一区二区| 亚洲婷婷国产精品电影人久久| 日韩精品一区国产麻豆| 91免费在线播放| 国产精品18久久久久久vr| 亚洲va欧美va人人爽| 中文字幕一区二区三区乱码在线 | 久久99久久精品欧美| 欧美色倩网站大全免费| 国产经典欧美精品| 日韩中文欧美在线| 亚洲免费av高清| 国产日产欧美精品一区二区三区| 欧美日韩黄色影视| 91免费视频网址| aa级大片欧美| 国产精品综合在线视频| 图片区小说区国产精品视频| 国产精品久久三| 国产欧美精品日韩区二区麻豆天美| 91精品久久久久久久99蜜桃 | 久久成人av少妇免费| 亚洲电影在线播放| 亚洲免费观看高清完整版在线| 久久综合给合久久狠狠狠97色69| 欧美人与禽zozo性伦| 色婷婷av一区二区| 91麻豆成人久久精品二区三区| 国产成人亚洲综合a∨婷婷| 精品一区二区日韩| 九色综合狠狠综合久久| 免费在线看成人av| 免费国产亚洲视频| 久久精品理论片| 九九精品视频在线看| 久久99这里只有精品| 美女视频黄免费的久久| 日本成人在线不卡视频| 免费一级欧美片在线观看| 午夜久久久久久| 青青草伊人久久| 美国毛片一区二区三区| 久99久精品视频免费观看| 国产精品伊人色| voyeur盗摄精品| 亚洲国产cao| 欧美激情在线免费观看| 国产人成亚洲第一网站在线播放| 久久久久成人黄色影片| 久久久不卡网国产精品一区| 国产欧美日韩视频在线观看| 中文字幕成人av| 亚洲最色的网站| 青青草国产成人99久久| 国产美女视频91| proumb性欧美在线观看| 欧美三级中文字幕| 欧美大白屁股肥臀xxxxxx| 久久久久久久久久看片| 专区另类欧美日韩| 日韩激情一二三区| 国产.欧美.日韩| 欧美自拍偷拍午夜视频| 日韩欧美一区在线| 中文字幕第一区综合| 亚洲国产wwwccc36天堂| 国产精品自在在线| 色哟哟欧美精品| 精品久久久久av影院| ...xxx性欧美| 精品一区二区三区在线播放| 成人午夜视频在线观看| 欧美日韩在线播放| 国产精品欧美经典| 日本在线不卡视频一二三区| 国产精品 日产精品 欧美精品| av电影在线观看不卡| 91精品国产综合久久香蕉的特点| 大胆欧美人体老妇| 成人久久18免费网站麻豆| 91久久精品国产91性色tv| 欧美成人三级电影在线| 自拍偷拍欧美激情| 国产在线播精品第三| 91小视频在线| 日韩精品一区二区三区四区视频| 综合欧美一区二区三区| 韩国毛片一区二区三区| 欧美日韩激情一区| 亚洲另类春色校园小说| 国产精品77777竹菊影视小说| 在线免费观看日本欧美| 国产精品久久久久久久久久久免费看 | 国产精品伊人色| 制服视频三区第一页精品| 亚洲乱码国产乱码精品精的特点| 久久se精品一区精品二区| 欧美日韩亚州综合| 亚洲视频在线观看三级| 国产成人高清在线| 久久午夜免费电影| 琪琪一区二区三区| 欧美日韩亚洲综合一区| 亚洲影院理伦片| 色综合中文字幕| 最新不卡av在线| av成人免费在线| 中文字幕欧美日韩一区| 国产酒店精品激情| 久久一夜天堂av一区二区三区| 日韩激情一区二区| 欧美一区二区三区婷婷月色 | 麻豆精品视频在线观看免费| 精品视频在线免费观看| 亚洲一区二区视频在线观看| 色综合久久综合网97色综合| 国产精品福利在线播放| 成人黄色综合网站| 亚洲色图19p| 在线观看精品一区|