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

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

?? dmtxplacemod.c

?? Linux系統(tǒng)下,二維碼生成源代碼.希望對大家有所幫助.
?? C
字號:
/*libdmtx - Data Matrix Encoding/Decoding LibraryCopyright (C) 2006 Mike LaughtonThis library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USAContact: mike@dragonflylogic.com*//* $Id: dmtxplacemod.c,v 1.2 2006/09/18 17:55:46 mblaughton Exp $ *//** * XXX * * @param * @return XXX */static intModulePlacementEcc200(DmtxMatrixRegion *matrixRegion){   unsigned char *codewords;   int row, col, chr;   codewords = matrixRegion->code;   // Start in the nominal location for the 8th bit of the first character   chr = 0;   row = 4;   col = 0;   do {      // Repeatedly first check for one of the special corner cases, then ...      if((row == matrixRegion->dataRows) && (col == 0))         PatternShapeSpecial1(matrixRegion, &(codewords[chr++]));      else if((row == matrixRegion->dataRows-2) && (col == 0) && (matrixRegion->dataCols%4))         PatternShapeSpecial2(matrixRegion, &(codewords[chr++]));      else if((row == matrixRegion->dataRows-2) && (col == 0) && (matrixRegion->dataCols%8 == 4))         PatternShapeSpecial3(matrixRegion, &(codewords[chr++]));      else if((row == matrixRegion->dataRows+4) && (col == 2) && (!(matrixRegion->dataCols%8)))         PatternShapeSpecial4(matrixRegion, &(codewords[chr++]));      // Sweep upward diagonally, inserting successive characters, ...      do {         if((row < matrixRegion->dataRows) && (col >= 0) &&               !(matrixRegion->array[row*matrixRegion->dataCols+col] & DMTX_MODULE_VISITED))            PatternShapeStandard(matrixRegion, row, col, &(codewords[chr++]));         row -= 2;         col += 2;      } while ((row >= 0) && (col < matrixRegion->dataCols));      row += 1;      col += 3;      // And then sweep downward diagonally, inserting successive characters, ...      do {         if((row >= 0) && (col < matrixRegion->dataCols) &&               !(matrixRegion->array[row*matrixRegion->dataCols+col] & DMTX_MODULE_VISITED))            PatternShapeStandard(matrixRegion, row, col, &(codewords[chr++]));         row += 2;         col -= 2;      } while ((row < matrixRegion->dataRows) && (col >= 0));      row += 3;      col += 1;      // ... until the entire array is scanned   } while ((row < matrixRegion->dataRows) || (col < matrixRegion->dataCols));   // XXX compare that chr == matrixRegion->dataSize here   return chr; // XXX number of codewords read off}/** * XXX * * @param * @return XXX */static voidPatternShapeStandard(DmtxMatrixRegion *matrixRegion, int row, int col, unsigned char *codeword){   PlaceModule(matrixRegion, row-2, col-2, codeword, DmtxMaskBit1);   PlaceModule(matrixRegion, row-2, col-1, codeword, DmtxMaskBit2);   PlaceModule(matrixRegion, row-1, col-2, codeword, DmtxMaskBit3);   PlaceModule(matrixRegion, row-1, col-1, codeword, DmtxMaskBit4);   PlaceModule(matrixRegion, row-1, col,   codeword, DmtxMaskBit5);   PlaceModule(matrixRegion, row,   col-2, codeword, DmtxMaskBit6);   PlaceModule(matrixRegion, row,   col-1, codeword, DmtxMaskBit7);   PlaceModule(matrixRegion, row,   col,   codeword, DmtxMaskBit8);}/** * XXX * * @param * @return XXX */static voidPatternShapeSpecial1(DmtxMatrixRegion *matrixRegion, unsigned char *codeword){   PlaceModule(matrixRegion, matrixRegion->dataRows-1, 0, codeword, DmtxMaskBit1);   PlaceModule(matrixRegion, matrixRegion->dataRows-1, 1, codeword, DmtxMaskBit2);   PlaceModule(matrixRegion, matrixRegion->dataRows-1, 2, codeword, DmtxMaskBit3);   PlaceModule(matrixRegion, 0, matrixRegion->dataCols-2, codeword, DmtxMaskBit4);   PlaceModule(matrixRegion, 0, matrixRegion->dataCols-1, codeword, DmtxMaskBit5);   PlaceModule(matrixRegion, 1, matrixRegion->dataCols-1, codeword, DmtxMaskBit6);   PlaceModule(matrixRegion, 2, matrixRegion->dataCols-1, codeword, DmtxMaskBit7);   PlaceModule(matrixRegion, 3, matrixRegion->dataCols-1, codeword, DmtxMaskBit8);}/** * XXX * * @param * @return XXX */static voidPatternShapeSpecial2(DmtxMatrixRegion *matrixRegion, unsigned char *codeword){   PlaceModule(matrixRegion, matrixRegion->dataRows-3, 0, codeword, DmtxMaskBit1);   PlaceModule(matrixRegion, matrixRegion->dataRows-2, 0, codeword, DmtxMaskBit2);   PlaceModule(matrixRegion, matrixRegion->dataRows-1, 0, codeword, DmtxMaskBit3);   PlaceModule(matrixRegion, 0, matrixRegion->dataCols-4, codeword, DmtxMaskBit4);   PlaceModule(matrixRegion, 0, matrixRegion->dataCols-3, codeword, DmtxMaskBit5);   PlaceModule(matrixRegion, 0, matrixRegion->dataCols-2, codeword, DmtxMaskBit6);   PlaceModule(matrixRegion, 0, matrixRegion->dataCols-1, codeword, DmtxMaskBit7);   PlaceModule(matrixRegion, 1, matrixRegion->dataCols-1, codeword, DmtxMaskBit8);}/** * XXX * * @param * @return XXX */static voidPatternShapeSpecial3(DmtxMatrixRegion *matrixRegion, unsigned char *codeword){   PlaceModule(matrixRegion, matrixRegion->dataRows-3, 0, codeword, DmtxMaskBit1);   PlaceModule(matrixRegion, matrixRegion->dataRows-2, 0, codeword, DmtxMaskBit2);   PlaceModule(matrixRegion, matrixRegion->dataRows-1, 0, codeword, DmtxMaskBit3);   PlaceModule(matrixRegion, 0, matrixRegion->dataCols-2, codeword, DmtxMaskBit4);   PlaceModule(matrixRegion, 0, matrixRegion->dataCols-1, codeword, DmtxMaskBit5);   PlaceModule(matrixRegion, 1, matrixRegion->dataCols-1, codeword, DmtxMaskBit6);   PlaceModule(matrixRegion, 2, matrixRegion->dataCols-1, codeword, DmtxMaskBit7);   PlaceModule(matrixRegion, 3, matrixRegion->dataCols-1, codeword, DmtxMaskBit8);}/** * XXX * * @param * @return XXX */static voidPatternShapeSpecial4(DmtxMatrixRegion *matrixRegion, unsigned char *codeword){   PlaceModule(matrixRegion, matrixRegion->dataRows-1, 0, codeword, DmtxMaskBit1);   PlaceModule(matrixRegion, matrixRegion->dataRows-1, matrixRegion->dataCols-1, codeword, DmtxMaskBit2);   PlaceModule(matrixRegion, 0, matrixRegion->dataCols-3, codeword, DmtxMaskBit3);   PlaceModule(matrixRegion, 0, matrixRegion->dataCols-2, codeword, DmtxMaskBit4);   PlaceModule(matrixRegion, 0, matrixRegion->dataCols-1, codeword, DmtxMaskBit5);   PlaceModule(matrixRegion, 1, matrixRegion->dataCols-3, codeword, DmtxMaskBit6);   PlaceModule(matrixRegion, 1, matrixRegion->dataCols-2, codeword, DmtxMaskBit7);   PlaceModule(matrixRegion, 1, matrixRegion->dataCols-1, codeword, DmtxMaskBit8);}/** * XXX * * @param * @return XXX */static voidPlaceModule(DmtxMatrixRegion *matrixRegion, int row, int col, unsigned char *codeword, DmtxBitMask mask){   if(row < 0) {      row += matrixRegion->dataRows;      col += 4 - ((matrixRegion->dataRows+4)%8);   }   if(col < 0) {      col += matrixRegion->dataCols;      row += 4 - ((matrixRegion->dataCols+4)%8);   }   // If module has already been assigned then we are decoding the pattern into codewords   if(matrixRegion->array[row*matrixRegion->dataCols+col] & DMTX_MODULE_ASSIGNED) {      if(!(matrixRegion->array[row*matrixRegion->dataCols+col] & DMTX_MODULE_ON))         *codeword |= mask;      else         *codeword &= (0xff ^ mask);   }   // Otherwise we are encoding the codewords into a pattern   else {      if(*codeword & mask)         matrixRegion->array[row*matrixRegion->dataCols+col] |= DMTX_MODULE_ON;      matrixRegion->array[row*matrixRegion->dataCols+col] |= DMTX_MODULE_ASSIGNED;   }   matrixRegion->array[row*matrixRegion->dataCols+col] |= DMTX_MODULE_VISITED;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一级二级| 欧美经典一区二区三区| 久久日韩精品一区二区五区| 日日欢夜夜爽一区| 色婷婷激情综合| 亚洲欧美乱综合| 色综合天天视频在线观看| 中文在线一区二区| 成人免费视频播放| 国产精品第四页| av中文一区二区三区| 亚洲图片你懂的| 欧美三级视频在线观看| 天天综合网天天综合色| 欧美日韩国产不卡| 国产真实乱偷精品视频免| 91免费版pro下载短视频| 久久久99精品免费观看不卡| 国产一区二区三区av电影| 日韩欧美国产高清| 国产成人啪免费观看软件| 欧美极品xxx| 91年精品国产| 日本亚洲三级在线| 中文字幕va一区二区三区| 成人开心网精品视频| 一区二区三区加勒比av| 欧美一区二区在线播放| 国产夫妻精品视频| 亚洲国产日韩精品| 国产日产欧美一区| 97精品电影院| 国产成人自拍网| 亚洲国产精品久久久久婷婷884| 这里只有精品免费| www.欧美日韩| 国产精品亚洲一区二区三区在线| 亚洲欧美怡红院| 久久伊人蜜桃av一区二区| 色94色欧美sute亚洲13| 国产精品亚洲一区二区三区在线| 18成人在线观看| 欧美激情在线一区二区三区| 欧美精品丝袜中出| 国产一区二区三区在线看麻豆| 国产精品白丝在线| 久久久99久久精品欧美| 欧美一级淫片007| 91精品国产91热久久久做人人 | proumb性欧美在线观看| 另类成人小视频在线| 日本欧美一区二区三区| 亚洲一区二区三区免费视频| 日韩一区欧美小说| 悠悠色在线精品| 亚洲精品久久7777| 一区二区三区91| 亚洲成人激情av| 日韩av网站在线观看| 乱中年女人伦av一区二区| 日韩国产精品久久久久久亚洲| 亚洲图片欧美色图| 日韩高清不卡一区二区三区| 首页国产丝袜综合| 国产一区二区精品久久99 | 亚洲欧美视频在线观看视频| 最新中文字幕一区二区三区 | 亚洲综合在线电影| 亚洲一区二区三区免费视频| 中文字幕久久午夜不卡| 国产偷国产偷精品高清尤物| 国产精品久久免费看| 亚洲一区二区五区| 伦理电影国产精品| 成人av一区二区三区| 欧美伦理电影网| 中文字幕欧美区| 美女网站视频久久| 成人av网站免费观看| 欧美在线观看一区| 国产三级一区二区| 午夜欧美电影在线观看| 成人综合婷婷国产精品久久| 欧美日韩黄视频| 亚洲色图.com| 国产成人av一区二区| 欧美日韩国产成人在线免费| 国产日韩av一区| 老司机精品视频线观看86| 一本久道中文字幕精品亚洲嫩| 亚洲精品一区二区三区99| 亚洲国产精品尤物yw在线观看| 国产福利不卡视频| 国产亚洲精品精华液| 秋霞午夜av一区二区三区| 色域天天综合网| 久久久久久久久久久电影| 日本午夜一区二区| 56国语精品自产拍在线观看| 亚洲一区二区三区四区的| 丝袜美腿亚洲一区| kk眼镜猥琐国模调教系列一区二区| 色婷婷国产精品| 国产精品久久久久精k8| 狠狠v欧美v日韩v亚洲ⅴ| 欧美日韩一级黄| 一区二区三区av电影| 91香蕉视频污| 中文字幕在线观看不卡| 国产不卡视频一区二区三区| 欧美精品亚洲二区| 五月天中文字幕一区二区| 丁香婷婷综合激情五月色| 精品国产乱子伦一区| 美女精品自拍一二三四| 制服丝袜av成人在线看| 亚洲福利电影网| 北条麻妃国产九九精品视频| 久久久精品日韩欧美| 国产成人精品免费一区二区| 国产欧美日韩一区二区三区在线观看| 麻豆精品一区二区三区| 日韩视频一区二区三区在线播放| 日本中文字幕一区二区视频| 在线视频欧美精品| 亚洲va欧美va国产va天堂影院| 欧美日韩精品欧美日韩精品 | 成人手机电影网| 一区二区三区色| 欧美丰满一区二区免费视频| 亚洲精品成a人| 在线国产电影不卡| 自拍偷在线精品自拍偷无码专区 | 精品久久久久香蕉网| 国产suv精品一区二区6| 亚洲自拍都市欧美小说| 日韩天堂在线观看| 在线观看免费一区| 日韩国产一二三区| 国产精品理论在线观看| 日韩欧美亚洲一区二区| 国产精品亚洲а∨天堂免在线| 综合欧美亚洲日本| 欧美成人一区二区三区片免费 | 欧美日韩国产另类不卡| 国产在线一区二区综合免费视频| 亚洲三级久久久| 国产蜜臀av在线一区二区三区| 91在线你懂得| 91蝌蚪porny成人天涯| 国模一区二区三区白浆| 亚洲h在线观看| 一区二区免费看| 依依成人精品视频| 亚洲欧美日本韩国| 国产精品对白交换视频| 欧美激情综合在线| 亚洲国产精品二十页| 亚洲国产精品精华液2区45| 中文字幕中文字幕一区二区| 日韩精品一区二区三区在线 | 色综合久久99| 色妞www精品视频| 波多野结衣在线aⅴ中文字幕不卡 波多野结衣在线一区 | 欧美一区二区三区在线观看视频 | 秋霞成人午夜伦在线观看| 亚洲色图欧美激情| 日韩电影在线一区二区| 日韩福利电影在线| 国产麻豆视频精品| 成人黄色av网站在线| 91亚洲大成网污www| 日本高清不卡一区| 色诱亚洲精品久久久久久| 欧美一区二区免费观在线| 欧美大片免费久久精品三p | gogo大胆日本视频一区| 99国产精品久久| 91精品国产综合久久久久久| 精品国产人成亚洲区| 国产精品久99| 日韩激情视频在线观看| 高潮精品一区videoshd| 欧美视频一区在线观看| 91精品国产丝袜白色高跟鞋| 中文字幕一区二区三区色视频 | 国产在线精品一区二区不卡了 | 91免费在线视频观看| 91福利小视频| 中文字幕不卡在线播放| 天堂久久久久va久久久久| 国产精品影视网| 69p69国产精品| 久久久精品欧美丰满| 亚洲综合久久av| caoporen国产精品视频| 欧美精品国产精品| 一区二区三区日本| 成人v精品蜜桃久久一区| 欧美v亚洲v综合ⅴ国产v|