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

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

?? transupp.c

?? 這是在PCA下的基于IPP庫示例代碼例子,在網(wǎng)上下了IPP的庫之后,設(shè)置相關(guān)參數(shù)就可以編譯該代碼.
?? 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久婷婷二区次| 国产福利精品一区| 亚洲精品视频在线看| 久久先锋影音av鲁色资源网| 欧美精品亚洲二区| 在线看日本不卡| 91福利在线看| 91久久精品日日躁夜夜躁欧美| 国内精品久久久久影院一蜜桃| 图片区小说区区亚洲影院| 亚洲一区二区三区国产| 亚欧色一区w666天堂| 亚洲成av人在线观看| 亚洲成人免费av| 青青草国产成人av片免费 | 成人一区二区视频| 成人国产免费视频| 91免费视频网址| 欧美三区在线观看| 91精品国产综合久久香蕉的特点 | 久久精品一区蜜桃臀影院| 久久久久国色av免费看影院| 国产精品色婷婷久久58| 亚洲天堂av一区| 亚洲福利一二三区| 日本大胆欧美人术艺术动态| 国产一区二区在线影院| 99国产欧美另类久久久精品| 色婷婷亚洲综合| 91精品国产全国免费观看| ww久久中文字幕| ...xxx性欧美| 奇米一区二区三区| 成人av电影在线| 在线成人高清不卡| 国产欧美日韩精品在线| 亚洲h在线观看| 国产乱理伦片在线观看夜一区 | 一区二区在线观看视频| 天天色天天操综合| 成人av在线看| 日韩一级大片在线| 亚洲人xxxx| 麻豆视频一区二区| 欧美综合天天夜夜久久| 久久综合狠狠综合久久综合88| 中文字幕一区二区三| 曰韩精品一区二区| 精品一区二区三区的国产在线播放| 懂色av一区二区夜夜嗨| 91精品国产色综合久久不卡蜜臀 | 欧美日韩高清在线| 欧美国产一区在线| 久久精品国产第一区二区三区| 不卡的av中国片| 精品成人私密视频| 青青草视频一区| 欧美日韩高清一区| 一区二区三区在线免费| 丁香五精品蜜臀久久久久99网站 | 不卡的av在线播放| 久久精品一级爱片| 久久精品国产精品亚洲综合| 精品视频1区2区| 亚洲欧美视频一区| 成人国产一区二区三区精品| 久久久久久毛片| 国产一区激情在线| 日韩色视频在线观看| 午夜精品一区在线观看| 色婷婷综合久久久久中文| 亚洲国产岛国毛片在线| 国产成人av一区二区三区在线 | **性色生活片久久毛片| 成人午夜电影网站| 久久久.com| 国产激情一区二区三区| 国产午夜一区二区三区| 国产福利91精品| 久久色视频免费观看| 国产一区不卡在线| 国产欧美日本一区视频| 国产精品一级黄| 国产欧美综合在线观看第十页| 国内精品视频一区二区三区八戒| 精品久久一区二区| 成人免费视频一区二区| 国产精品免费网站在线观看| 成人污污视频在线观看| 成人免费在线视频| 在线精品视频一区二区三四| 午夜精品影院在线观看| 日韩欧美的一区| 成人性生交大合| 亚洲裸体在线观看| 欧美精选一区二区| 国产美女精品一区二区三区| 日本一区二区三区在线不卡| youjizz久久| 亚洲一区二区三区四区五区中文 | 亚洲精品在线观看视频| 国精产品一区一区三区mba视频| 久久午夜色播影院免费高清| 色偷偷久久人人79超碰人人澡| 亚洲国产精品久久不卡毛片| 日韩区在线观看| 成人动漫中文字幕| 亚洲第一二三四区| 欧美精品一区二区精品网| 成人av资源下载| 午夜日韩在线电影| 国产女同互慰高潮91漫画| 欧美午夜精品一区| 国产一区二区三区综合| 亚洲最大的成人av| 久久日一线二线三线suv| 日本久久电影网| 国产麻豆精品视频| 亚洲成a天堂v人片| 欧美激情综合在线| 日韩视频一区二区三区在线播放| 国产宾馆实践打屁股91| 奇米色一区二区| 亚洲视频 欧洲视频| 精品国产三级电影在线观看| 欧洲一区二区三区免费视频| 国产精品亚洲午夜一区二区三区| 一级特黄大欧美久久久| 久久久高清一区二区三区| 欧美日韩国产综合一区二区 | 麻豆91精品视频| 一区二区三区久久久| 国产欧美日韩综合精品一区二区| 欧美视频三区在线播放| 91在线一区二区| 国产乱对白刺激视频不卡| 日本美女一区二区三区视频| 亚洲精品精品亚洲| 国产精品黄色在线观看| 久久久午夜电影| 欧美一区二区三区在线观看| 一本到高清视频免费精品| 成人综合在线观看| 国产成人综合视频| 国产一区久久久| 国产在线不卡一区| 蜜桃视频在线观看一区二区| 香蕉av福利精品导航| 亚洲另类在线视频| 《视频一区视频二区| 国产精品日韩成人| 国产欧美日韩综合| 日本一区二区三级电影在线观看 | 91免费观看视频| 91丨porny丨国产入口| 波多野结衣欧美| 99久久夜色精品国产网站| 大白屁股一区二区视频| 高清不卡在线观看| a美女胸又www黄视频久久| 成人av网站在线| 在线亚洲一区二区| 欧美日韩国产乱码电影| 欧美精品自拍偷拍动漫精品| 欧美高清你懂得| 欧美一区二区在线免费观看| 欧美一区二区福利在线| 日韩精品资源二区在线| 国产午夜精品一区二区| 曰韩精品一区二区| 午夜精品福利在线| 免费日韩伦理电影| 国产成人综合在线播放| thepron国产精品| 欧美视频你懂的| 欧美一卡二卡三卡| 久久精品夜夜夜夜久久| 自拍偷拍国产精品| 首页国产欧美日韩丝袜| 久久av中文字幕片| www.久久久久久久久| 在线成人高清不卡| 国产欧美一区二区精品仙草咪| 亚洲色图欧洲色图| 性欧美大战久久久久久久久| 九九热在线视频观看这里只有精品 | 国产欧美一区二区精品性| 亚洲色图在线视频| 日韩国产欧美在线播放| 成人综合在线观看| 欧美精品乱码久久久久久 | 成人免费看黄yyy456| 欧美视频一区在线观看| 2021久久国产精品不只是精品| 国产精品久线观看视频| 日韩成人免费电影| 91女人视频在线观看| 日韩欧美一区二区三区在线| 最新热久久免费视频| 久久99精品国产91久久来源|