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

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

?? avc_e00parse.c

?? 支持各種柵格圖像和矢量圖像讀取的庫
?? C
?? 第 1 頁 / 共 5 頁
字號:
        psInfo->eSuperSectionType = AVCFileUnknown;        /* psInfo->nStartLineNum = -1; */        return TRUE;    }    return FALSE;}/********************************************************************** *                          AVCE00ParseSectionHeader() * * Check if pszLine is a valid section header line, then initialize the * ParseInfo structure to be ready to parse of object from that section. * * Returns the new section type, or AVCFileUnknown if the line is * not recognized as a valid section header. * * Note: by section header lines, we mean the "ARC  2", "PAL  2", etc. **********************************************************************/AVCFileType  AVCE00ParseSectionHeader(AVCE00ParseInfo  *psInfo,                                      const char *pszLine){    AVCFileType  eNewType = AVCFileUnknown;    if (psInfo == NULL ||        psInfo->eFileType != AVCFileUnknown)    {        return AVCFileUnknown;    }    /*-----------------------------------------------------------------     * Check if pszLine is a valid section header line.     *----------------------------------------------------------------*/    if (psInfo->eSuperSectionType == AVCFileUnknown)    {        /*-------------------------------------------------------------         * We're looking for a top-level section...         *------------------------------------------------------------*/        if (EQUALN(pszLine, "ARC  ", 5))            eNewType = AVCFileARC;        else if (EQUALN(pszLine, "PAL  ", 5))            eNewType = AVCFilePAL;        else if (EQUALN(pszLine, "CNT  ", 5))            eNewType = AVCFileCNT;        else if (EQUALN(pszLine, "LAB  ", 5))            eNewType = AVCFileLAB;        else if (EQUALN(pszLine, "TOL  ", 5))            eNewType = AVCFileTOL;        else if (EQUALN(pszLine, "PRJ  ", 5))            eNewType = AVCFilePRJ;        else if (EQUALN(pszLine, "TXT  ", 5))            eNewType = AVCFileTXT;        else        {            eNewType = AVCFileUnknown;            return AVCFileUnknown;        }        /*-------------------------------------------------------------         * OK, we have a valid new section header. Set the precision and          * get ready to read objects from it.         *------------------------------------------------------------*/        if (atoi(pszLine+4) == 2)            psInfo->nPrecision = AVC_SINGLE_PREC;        else if (atoi(pszLine+4) == 3)            psInfo->nPrecision = AVC_DOUBLE_PREC;        else        {            CPLError(CE_Failure, CPLE_AppDefined,                      "Parse Error: Invalid section header line (\"%s\")!",                      pszLine);            eNewType = AVCFileUnknown;            return AVCFileUnknown;        }    }    else    {        /*-------------------------------------------------------------         * We're looking for a section inside a super-section...         * in this case, the header line contains the subclass name,         * so any non-empty line is acceptable!         * Note: the precision is already set from the previous call to         *       AVCE00ParseSuperSectionHeader()         * Note2: Inside a double precision RPL supersection, the end of         *        each sub-section is marked by 2 lines, just like what         *        happens with double precision PALs... we have to make         *        sure we don't catch that second line as the beginning         *        of a new RPL sub-section.         *------------------------------------------------------------*/        if (psInfo->eSuperSectionType == AVCFileTX6 && strlen(pszLine)==0)        {            /* See bug 1261: It seems that empty subclass names are valid             * for TX7. We don't know if that's valid for other supersection             * types, so we'll handle this as a specific case just for TX7             */            eNewType = psInfo->eSuperSectionType;        }        else if (strlen(pszLine) > 0 && !isspace(pszLine[0]) &&                  !EQUALN(pszLine, "JABBERWOCKY", 11) &&                 !EQUALN(pszLine, "EOI", 3) &&                 ! ( psInfo->eSuperSectionType == AVCFileRPL &&                     EQUALN(pszLine, " 0.00000", 6)  ) )        {            eNewType = psInfo->eSuperSectionType;        }        else if (strlen(pszLine) == 0 &&            psInfo->eSuperSectionType == AVCFileTX6)        {            eNewType = psInfo->eSuperSectionType;        }        else        {            eNewType = AVCFileUnknown;            return AVCFileUnknown;        }    }    /*-----------------------------------------------------------------     * nCurObjectId is used to keep track of sequential ids that are      * not explicitly stored in E00.  e.g. polygon Id in a PAL section.     *----------------------------------------------------------------*/    psInfo->nCurObjectId = 0;    /*-----------------------------------------------------------------     * Allocate a temp. structure to use to store the objects we read     * (Using Calloc() will automatically initialize the struct contents     *  to NULL... this is very important for ARCs and PALs)     *----------------------------------------------------------------*/    _AVCE00ParseDestroyCurObject(psInfo);    if (eNewType == AVCFileARC)    {        psInfo->cur.psArc = (AVCArc*)CPLCalloc(1, sizeof(AVCArc));    }    else if (eNewType == AVCFilePAL ||             eNewType == AVCFileRPL )    {        psInfo->cur.psPal = (AVCPal*)CPLCalloc(1, sizeof(AVCPal));    }    else if (eNewType == AVCFileCNT)    {        psInfo->cur.psCnt = (AVCCnt*)CPLCalloc(1, sizeof(AVCCnt));    }    else if (eNewType == AVCFileLAB)    {        psInfo->cur.psLab = (AVCLab*)CPLCalloc(1, sizeof(AVCLab));    }    else if (eNewType == AVCFileTOL)    {        psInfo->cur.psTol = (AVCTol*)CPLCalloc(1, sizeof(AVCTol));    }    else if (eNewType == AVCFilePRJ)    {        psInfo->cur.papszPrj = NULL;    }    else if (eNewType == AVCFileTXT ||             eNewType == AVCFileTX6)    {        psInfo->cur.psTxt = (AVCTxt*)CPLCalloc(1, sizeof(AVCTxt));    }    else if (eNewType == AVCFileRXP)    {        psInfo->cur.psRxp = (AVCRxp*)CPLCalloc(1, sizeof(AVCRxp));    }    else if (eNewType == AVCFileTABLE)    {        psInfo->cur.pasFields = NULL;        psInfo->hdr.psTableDef = NULL;        psInfo->bTableHdrComplete = FALSE;    }    else    {        CPLError(CE_Failure, CPLE_NotSupported,                 "AVCE00ParseSectionHeader(): Unsupported file type!");        eNewType = AVCFileUnknown;    }    if (eNewType != AVCFileUnknown)    {        /*-----------------------------------------------------------------         * Record the start of the section (for faster seeking)         *----------------------------------------------------------------*/        psInfo->nStartLineNum = psInfo->nCurLineNum;        /*-----------------------------------------------------------------         * Keep track of section header line... this is used for some file         * types, specially the ones enclosed inside supersections.         *----------------------------------------------------------------*/        CPLFree(psInfo->pszSectionHdrLine);        psInfo->pszSectionHdrLine = CPLStrdup(pszLine);    }    psInfo->eFileType = eNewType;    return psInfo->eFileType;}/********************************************************************** *                          AVCE00ParseSectionEnd() * * Check if pszLine marks the end of the current section.   *  * Passing bResetParseInfo=TRUE will reset the parser struct if an end of * section is found.  Passing FALSE simply tests for the end of section  * without affecting the parse info struct. * * Return TRUE if this is the end of the section (and reset the * ParseInfo structure) , or FALSE otherwise. **********************************************************************/GBool  AVCE00ParseSectionEnd(AVCE00ParseInfo  *psInfo, const char *pszLine,                             GBool bResetParseInfo){    if ( psInfo->bForceEndOfSection ||         ((psInfo->eFileType == AVCFileARC ||           psInfo->eFileType == AVCFilePAL ||           psInfo->eFileType == AVCFileLAB ||           psInfo->eFileType == AVCFileRPL ||           psInfo->eFileType == AVCFileCNT ||           psInfo->eFileType == AVCFileTOL ||           psInfo->eFileType == AVCFileTXT ||           psInfo->eFileType == AVCFileTX6 ||           psInfo->eFileType == AVCFileRXP )  &&           EQUALN(pszLine, "        -1         0", 20)  ) )    {        /* Reset ParseInfo only if explicitly requested.          */        if (bResetParseInfo)        {            _AVCE00ParseDestroyCurObject(psInfo);            AVCE00ParseReset(psInfo);            psInfo->eFileType = AVCFileUnknown;            CPLFree(psInfo->pszSectionHdrLine);            psInfo->pszSectionHdrLine = NULL;            psInfo->bForceEndOfSection = FALSE;        }        return TRUE;  /* YES, we reached the end */    }    return FALSE;  /* NO, it's not the end of section line */}/********************************************************************** *                          AVCE00ParseNextLine() * * Take the next line of E00 input and parse it. * * Returns NULL if the current object is not complete yet (expecting * more lines of input) or a reference to a complete object if it * is complete. * * The returned object is a reference to an internal data structure. * It should not be modified or freed by the caller. * * If the input is invalid or other problems happen, then a CPLError() * will be generated.  CPLGetLastErrorNo() should be called to check * that the line was parsed succesfully. * * Note for TABLES: * When parsing input from info tables, the first valid object that * will be returned will be the AVCTableDef, and then the data records * will follow.  When all the records have been read, then the * psInfo->bForceEndOfSection flag will be set to TRUE since there is * no explicit "end of table" line in E00. **********************************************************************/void   *AVCE00ParseNextLine(AVCE00ParseInfo  *psInfo, const char *pszLine){    void *psObj = NULL;    CPLAssert(psInfo);    switch(psInfo->eFileType)    {      case AVCFileARC:        psObj = (void*)AVCE00ParseNextArcLine(psInfo, pszLine);        break;      case AVCFilePAL:      case AVCFileRPL:        psObj = (void*)AVCE00ParseNextPalLine(psInfo, pszLine);        break;      case AVCFileCNT:        psObj = (void*)AVCE00ParseNextCntLine(psInfo, pszLine);        break;      case AVCFileLAB:        psObj = (void*)AVCE00ParseNextLabLine(psInfo, pszLine);        break;      case AVCFileTOL:        psObj = (void*)AVCE00ParseNextTolLine(psInfo, pszLine);        break;      case AVCFilePRJ:        psObj = (void*)AVCE00ParseNextPrjLine(psInfo, pszLine);        break;      case AVCFileTXT:        psObj = (void*)AVCE00ParseNextTxtLine(psInfo, pszLine);        break;      case AVCFileTX6:        psObj = (void*)AVCE00ParseNextTx6Line(psInfo, pszLine);        break;      case AVCFileRXP:        psObj = (void*)AVCE00ParseNextRxpLine(psInfo, pszLine);        break;      case AVCFileTABLE:        if ( ! psInfo->bTableHdrComplete )            psObj = (void*)AVCE00ParseNextTableDefLine(psInfo, pszLine);        else            psObj = (void*)AVCE00ParseNextTableRecLine(psInfo, pszLine);        break;      default:        CPLError(CE_Failure, CPLE_NotSupported,                 "AVCE00ParseNextLine(): Unsupported file type!");    }    return psObj;}/********************************************************************** *                          AVCE00ParseNextArcLine() * * Take the next line of E00 input for an ARC object and parse it. * * Returns NULL if the current object is not complete yet (expecting * more lines of input) or a reference to a complete object if it * is complete. * * The returned object is a reference to an internal data structure. * It should not be modified or freed by the caller. * * If the input is invalid or other problems happen, then a CPLError() * will be generated.  CPLGetLastErrorNo() should be called to check * that the line was parsed succesfully. **********************************************************************/AVCArc   *AVCE00ParseNextArcLine(AVCE00ParseInfo *psInfo, const char *pszLine){    AVCArc *psArc;    int     nLen;    CPLAssert(psInfo->eFileType == AVCFileARC);    psArc = psInfo->cur.psArc;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
69精品人人人人| 日韩在线一区二区| 国产精品灌醉下药二区| 国产亚洲人成网站| 欧美激情综合网| 中文字幕av一区二区三区高| 国产精品久久午夜夜伦鲁鲁| 国产精品电影一区二区| 日韩毛片精品高清免费| 亚洲精品国产视频| 亚洲6080在线| 日韩高清一区在线| 韩日av一区二区| 国产精品一区在线观看你懂的| 国产一区三区三区| 国产一区中文字幕| 成人性视频免费网站| 国产成人99久久亚洲综合精品| 国产91精品在线观看| www.激情成人| 欧美精品自拍偷拍| 欧美不卡一区二区三区| 久久精品亚洲精品国产欧美kt∨| 欧美激情一区在线观看| 国产精品久久久久一区二区三区共| 亚洲日本一区二区| 一区二区三区日韩精品| 日韩精品每日更新| 国产一区91精品张津瑜| 成人精品视频一区二区三区| 欧美色视频在线| 精品粉嫩aⅴ一区二区三区四区| 国产日产欧产精品推荐色| 最新国产成人在线观看| 午夜精品视频一区| 国产凹凸在线观看一区二区| 91热门视频在线观看| 欧美国产欧美综合| 国产精品视频一二三区| 久久香蕉国产线看观看99| 国产午夜精品在线观看| 中文字幕精品三区| 一区二区三区四区在线播放| 自拍偷在线精品自拍偷无码专区| 一区二区三区中文在线观看| 亚洲观看高清完整版在线观看| 日韩成人午夜精品| 美脚の诱脚舐め脚责91| 国产精品成人免费精品自在线观看 | 国产精品美女久久久久aⅴ| 欧美国产精品一区二区| 午夜精品久久久久影视| 成熟亚洲日本毛茸茸凸凹| 在线看一区二区| 欧美成人高清电影在线| 一区二区视频在线| 激情综合色播激情啊| 在线观看中文字幕不卡| 日韩一区国产二区欧美三区| 亚洲欧美自拍偷拍| 日韩电影一二三区| 成人免费视频网站在线观看| 宅男在线国产精品| 国产精品夫妻自拍| 国产一区二区毛片| 7777精品伊人久久久大香线蕉经典版下载| 欧美国产国产综合| 免费成人av在线播放| 色悠悠久久综合| 国产日韩精品视频一区| 日本不卡视频一二三区| 欧美性xxxxxx少妇| 1024亚洲合集| 国产精品影视天天线| 成人免费在线观看入口| 久久99精品久久久久久国产越南| 在线免费视频一区二区| 国产精品入口麻豆原神| 精品一区二区三区免费毛片爱| 欧美色综合天天久久综合精品| 国产精品美日韩| 国产中文一区二区三区| 欧美一级欧美一级在线播放| 亚洲国产精品一区二区久久恐怖片 | 国产精品一级片| 91精品免费在线| 亚洲成a人片在线观看中文| 91麻豆swag| 最新中文字幕一区二区三区| 国产精品1区二区.| 久久久亚洲精品一区二区三区| 日本不卡在线视频| 538prom精品视频线放| 亚洲国产精品精华液网站| 日本高清无吗v一区| 日韩伦理免费电影| 一本大道久久a久久精二百 | 亚洲一区二区在线观看视频| 成人精品国产福利| 国产欧美日本一区二区三区| 国产乱码字幕精品高清av | 日韩欧美区一区二| 日本成人在线网站| 日韩一区二区三| 麻豆精品久久久| 欧美日韩国产免费| 日本色综合中文字幕| 日韩午夜在线影院| 九九九精品视频| 精品奇米国产一区二区三区| 蜜桃精品视频在线观看| 精品久久人人做人人爰| 国产毛片精品视频| 国产日韩欧美亚洲| 成人免费看黄yyy456| 国产精品国产三级国产普通话99 | 在线观看国产一区二区| 亚洲电影一区二区三区| 这里只有精品99re| 老司机一区二区| 日本在线播放一区二区三区| 欧美一区二区三区爱爱| 美女国产一区二区| 久久久久久久久久久久电影| 丁香另类激情小说| 亚洲色图.com| 欧美精品丝袜中出| 国产在线精品一区二区三区不卡| 久久久99精品免费观看不卡| 成人福利在线看| 亚洲一区在线看| 精品乱人伦小说| 94-欧美-setu| 青青草一区二区三区| 国产日韩av一区| 91福利精品第一导航| 蜜臀国产一区二区三区在线播放 | 亚洲黄色性网站| 8v天堂国产在线一区二区| 看片的网站亚洲| 成人欧美一区二区三区白人| 欧美精品三级日韩久久| 国产乱子轮精品视频| 亚洲视频在线观看三级| 6080yy午夜一二三区久久| 国产剧情一区二区三区| 亚洲欧美一区二区久久| 日韩美女在线视频| 91啪九色porn原创视频在线观看| 亚洲国产va精品久久久不卡综合| 久久久综合激的五月天| 在线视频你懂得一区二区三区| 精品一区二区三区久久| 亚洲人成电影网站色mp4| 6080午夜不卡| 97精品电影院| 精品亚洲免费视频| 亚洲精品自拍动漫在线| 欧美日韩欧美一区二区| 中文字幕一区二区三中文字幕| 免费高清视频精品| 精品国产乱码久久久久久图片| 一区二区三区在线高清| 成人av高清在线| 国产三级久久久| 成人精品视频一区二区三区尤物| 欧美久久一二区| 亚洲精品欧美综合四区| 成人午夜在线视频| 精品欧美一区二区在线观看| 视频一区中文字幕国产| 91精品国产91久久久久久最新毛片 | 国产精品久久毛片| 五月婷婷综合网| 欧美精品久久久久久久久老牛影院| 国产精品女人毛片| 黄色日韩网站视频| 91精品国产黑色紧身裤美女| 蜜臀99久久精品久久久久久软件| 色欧美88888久久久久久影院| 国产精品的网站| 色婷婷av一区二区三区软件| 亚洲一区二区三区国产| 在线免费不卡视频| 亚洲激情网站免费观看| 欧美体内she精高潮| 精品一区二区久久久| 欧美美女直播网站| 青青草国产成人99久久| 欧美激情一区在线| 一本一道综合狠狠老| 亚洲一区二区四区蜜桃| 欧美一区二区黄| 911精品产国品一二三产区 | 欧美电影免费观看高清完整版在线 | 日韩一区二区三区观看| 亚洲日本一区二区三区| 成人一区在线看| 亚洲欧洲精品一区二区三区| 国产综合久久久久影院|