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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? mp_graph.c

?? LastWave
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/*..........................................................................*//*                                                                          *//*      L a s t W a v e    P a c k a g e 'mp' 2.1                           *//*                                                                          *//*      Copyright (C) 2000 Remi Gribonval, Emmanuel Bacry and Javier Abadia.*//*      email  : remi.gribonval@inria.fr                                    *//*      email  : lastwave@cmap.polytechnique.fr                             *//*                                                                          *//*..........................................................................*//*                                                                          *//*      This program is a free software, you can redistribute it and/or     *//*      modify it under the terms of the GNU General Public License as      *//*      published by the Free Software Foundation; either version 2 of the  *//*      License, or (at your option) any later version                      *//*                                                                          *//*      This program is distributed in the hope that it will be useful,     *//*      but WITHOUT ANY WARRANTY; without even the implied warranty of      *//*      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the       *//*      GNU General Public License for more details.                        *//*                                                                          *//*      You should have received a copy of the GNU General Public License   *//*      along with this program (in a file named COPYRIGHT);                *//*      if not, write to the Free Software Foundation, Inc.,                *//*      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA             *//*                                                                          *//*..........................................................................*//****************************************************************************//*                                                                          *//*  mp_graph.c   Functions for displaying books                             *//*                                                                          *//****************************************************************************/#include "lastwave.h"#include "mp_book.h"/* The GOBJECT structure for displaying a BOOK */typedef struct graphBook {  GObjectFields;     /* The book to be displayed */  BOOK book;  /* The limits on which atoms to display */  unsigned long nMin,nMax;                      /* minimum and maximum ranks of molecules that are displayed */  unsigned long windowSizeMin, windowSizeMax;   /* 'windowSize' range */  LWFLOAT chirpIdMin,chirpIdMax;  /* 'chirpId' range */  /* Some flags changing the color-code */  char flagFund;                /* 				 * the way an harmonic molecule is displayed :				 * see help in function _SetGraphBook				 */  char flagDb;                  /* switches decibel display */  LWFLOAT exponent;               /* dynamic range (dB) / exponent ... */    //  char flagLogFreq;  //  LWFLOAT freqSwitch;  /* The colormap used */  unsigned long cm;} GraphBook, *GRAPHBOOK;/* The corresponding class */      GCLASS theGraphBookClass = NULL;enum {  FundAll=NO,  FundMax,  FundSum};/* Some default values */#define DEFAULT_GRAPH_BOOK_FLAGFUND     FundAll#define DEFAULT_GRAPH_BOOK_FLAGDB       YES#define DEFAULT_GRAPH_BOOK_EXPONENT     30.0//#define DEFAULT_GRAPH_BOOK_FLAGLOGFREQ  NO//#define DEFAULT_GRAPH_BOOK_FREQSWITCH   300.0/* Initialization of the GraphBook structure */static void _InitGraphBook(GOBJECT o){  GRAPHBOOK graph;  graph = (GRAPHBOOK) o;  graph->bgColor = invisibleColor;  graph->rectType = SmallRect;    graph->book = NULL;  graph->nMin = 0;  graph->nMax = 0;  graph->windowSizeMin = STFT_MIN_WINDOWSIZE;  graph->windowSizeMax = STFT_MAX_WINDOWSIZE;  graph->chirpIdMin = 0.0;  graph->chirpIdMax = 0.0;  graph->flagFund   = DEFAULT_GRAPH_BOOK_FLAGFUND;      graph->flagDb   = DEFAULT_GRAPH_BOOK_FLAGDB;  graph->exponent = DEFAULT_GRAPH_BOOK_EXPONENT;  //  graph->flagLogFreq = DEFAULT_GRAPH_BOOK_FLAGLOGFREQ;  //  graph->freqSwitch  = DEFAULT_GRAPH_BOOK_FREQSWITCH;  graph->book = NULL;    graph->cm   = GetColorMapCur();  }/* Deleting the content of a GraphBook */static void _DeleteContentGraphBook(GOBJECT o){  GRAPHBOOK graph;  graph = (GRAPHBOOK) o;  if (graph->book != NULL) graph->book = DeleteBook(graph->book);}/* A utility that tells whether an atom is to be displayed in a graph */static char IsVisible(GRAPHBOOK graph,ATOM atom){  if (!INRANGE(graph->windowSizeMin,atom->windowSize,graph->windowSizeMax))  return(NO);  if (!INRANGE(graph->chirpIdMin,atom->chirpId,graph->chirpIdMax)) return(NO);  return(YES);}/* The setg method */static int _SetGraphBook (GOBJECT o, char *field, char**argv){  GRAPHBOOK graph;  BOOK book;  MOLECULE molecule;  ATOM atom=NULL;  char  *str;  int   imin,imax;  LWFLOAT fmin,fmax;  LWFLOAT t,f,timeId,freqId;  int   flag;    unsigned long n,nClosest;  unsigned short k,kClosest;  int timeIdMin,timeIdMax;  LWFLOAT freqIdMin,freqIdMax;  LWFLOAT dist,distClosest;  LISTV lv;    /* The help command */  if (o == NULL) {    SetResultStr("{{{graph [<book>]} {Gets/Sets the book to be displayed by the GraphBook. (The '-cgraph' field is equivalent to that field).}} \{{cm [<colormap>]} {Sets/Gets the colormap that will be used to display the book.}} \{{scale [<windowSizeMin> <windowSizeMax>]} {Sets/Gets the windowSize range of the molecules that are displayed.}} \{{chirp [<chirpMin> <chirpMax>]} {Sets/Gets the chirp range of the molecules that are displayed.}} \{{chirpId [<chirpIdMin> <chirpIdMax>]} {Sets/Gets the chirpId range of the molecules that are displayed.}} \{{n [<nMin> <nMax>]} {Sets/Gets the minimum and maximum ranks of the molecules that are displayed.}} ""{{fund <flag>} {Sets/Gets the fundamental flag which can be 'all','max' or 'sum'. This flag allows to display all the atoms within each molecule (<flag>='all') or \only the most energetic atom with its energy (<flag>='max') or with the total energy of the molecule (<flag>='sum').}} "" {{db [<flagOnOff>]} {Sets/Gets the decibel-display flag. If it is on, the energy of the molecules is displayed in decibel.}} \{{expo [<exponent>]} {Sets/Gets the exponent used for display. If '-db' is off, then the energy to the <exponent> of the molecules is displayed. If '-db' is on, then the same quantity is displayed in decibel.}} \{{?closest <time> <freq>} {Gets the rank of the atom that is currently displayed and that is the closest to position <time> <freq>. It returns either 'null' if it fails or a listv {<n> <k>} where 0<=n<book.size is the rank of the molecule  and 0<=k<molecule.dim is the atom number in the molecule.}}}");    return(YES);  }           graph = (GRAPHBOOK) o;  book = graph->book;    /* the 'graph' and 'cgraph' fields */  if (!strcmp(field,"graph") || !strcmp(field,"cgraph")) {    if (*argv == NULL) {      SetResultValue(graph->book);       return(YES);    }    argv = ParseArgv(argv,tBOOK,&book,0);    CheckBookNotEmpty(book);    if (graph->book != NULL) DeleteBook(graph->book);    graph->book = book;    AddRefValue(book);    graph->nMin = 0;    graph->nMax = book->size-1;    graph->windowSizeMin = STFT_MIN_WINDOWSIZE;    graph->windowSizeMax  = STFT_MAX_WINDOWSIZE;    graph->chirpIdMax = GABOR_MAX_CHIRPID;    graph->chirpIdMin = -graph->chirpIdMax;    o->rx = TimeId2Time(book,-.5);    o->rw = TimeId2Time(book,book->signalSize-.5);    o->rw-=o->rx;    o->ry = FreqId2Freq(book,-.5);    o->rh = FreqId2Freq(book,GABOR_NYQUIST_FREQID+.5);    o->rh-=o->ry;    UpdateGlobalRectGObject(o);        return(YES);  }  /* The octave field */  if (!strcmp(field,"s")) {    if (*argv == NULL) {      lv = TNewListv();      SetResultValue(lv);      AppendInt2Listv(lv,graph->windowSizeMin);      AppendInt2Listv(lv,graph->windowSizeMax);      return(YES);      }        argv = ParseArgv(argv,tINT,&imin,tINT,&imax,0);    imin = MAX(imin,STFT_MIN_WINDOWSIZE);    imax = MIN(imax,STFT_MAX_WINDOWSIZE);    if (imin>imax) Errorf("_SetGraphBook : Option '-scale' : Minimum windowSize value '%d' cannot be greater than maximum windowSize value '%d'",imin,imax);    graph->windowSizeMin = imin;    graph->windowSizeMax = imax;    return(YES);  }   /* The chirpId field */  if (!strcmp(field,"chirpId")) {    if (*argv == NULL) {      lv = TNewListv();      SetResultValue(lv);      AppendFloat2Listv(lv,graph->chirpIdMin);      AppendFloat2Listv(lv,graph->chirpIdMax);      return(YES);      }        argv = ParseArgv(argv,tFLOAT,&fmin,tFLOAT,&fmax,0);    fmin = MAX(fmin,-GABOR_MAX_CHIRPID);    fmax = MIN(fmax,GABOR_MAX_CHIRPID);    if (fmin > fmax)      Errorf("_SetGraphBook : Option '-chirpId' : Minimum chirpId value '%g' cannot be greater than maximum chirpId value '%g'",fmin,fmax);    graph->chirpIdMin = fmin;    graph->chirpIdMax = fmax;    return(YES);  }   /* The chirp field */  if (!strcmp(field,"chirp")) {    if (*argv == NULL) {      lv = TNewListv();      SetResultValue(lv);      AppendFloat2Listv(lv,ChirpId2Chirp(graph->book,graph->chirpIdMin));      AppendFloat2Listv(lv,ChirpId2Chirp(graph->book,graph->chirpIdMax));      return(YES);      }        argv = ParseArgv(argv,tFLOAT,&fmin,tFLOAT,&fmax,0);    fmin = MAX(Chirp2ChirpId(graph->book,fmin),-GABOR_MAX_CHIRPID);    fmax = MIN(Chirp2ChirpId(graph->book,fmax),GABOR_MAX_CHIRPID);    if (fmin > fmax)      Errorf("_SetGraphBook : Option '-chirp' : Minimum chirp value '%g' cannot be greater than maximum chirp value '%g'",fmin,fmax);    graph->chirpIdMin = fmin;    graph->chirpIdMax = fmax;    return(YES);  }   /* The closest field */  if (!strcmp(field,"?closest")) {     argv = ParseArgv(argv,tFLOAT,&t,tFLOAT,&f,0);     timeId = Time2TimeId(book,t);     freqId = Freq2FreqId(book,f);     /* Some inits */     distClosest  = -1.0;     /* Look for all the molecules of which some atom is displayed in this graph */     for (n = MAX(0,graph->nMin); n <= MIN(book->size-1,graph->nMax); n++) {       molecule = GetBookMolecule(book,n);       for (k=0;k<molecule->dim;k++) {         atom = GetMoleculeAtom(molecule,0,k);         if (!IsVisible(graph,atom)) continue;         /*           * Detect if (timeId,freqId) is indeed INSIDE some atom.          */         ComputeWindowSupport(atom->windowSize,atom->windowShape,atom->timeId,&timeIdMin,&timeIdMax);         freqIdMin = atom->freqId-(GABOR_MAX_FREQID/atom->windowSize)/(2.0);         freqIdMax = atom->freqId+(GABOR_MAX_FREQID/atom->windowSize)/(2.0);         if(INRANGE(timeIdMin,timeId,timeIdMax) && INRANGE(freqIdMin,freqId,freqIdMax)) {           distClosest = 0.0;           nClosest    = n;           kClosest    = k;           break;         }         /* When not 'inside' the atom, compute the distance to (timeId,freqId) */         dist = pow(fabs(timeId-atom->timeId),2.)+pow(fabs(freqId-atom->freqId),2.);         /* Update the location of the closest molecule, if necessary */         if (distClosest < 0 || distClosest > dist) {            distClosest = dist;            nClosest    = n;            kClosest    = k;          }       }       /* Case when (timeId,freqId) is 'inside' some displayed atom */       if (distClosest == 0.0) break;    }    if (distClosest < 0) {      SetResultValue(nullValue);    }    else {      lv = TNewListv();      SetResultValue(lv);      AppendInt2Listv(lv,nClosest);      AppendInt2Listv(lv,kClosest);    }         return(YES);  }  /* The n field */  if (!strcmp(field,"n")) {    if (*argv == NULL) {      lv = TNewListv();      SetResultValue(lv);      AppendInt2Listv(lv,graph->nMin);      AppendInt2Listv(lv,graph->nMax);      return(YES);      }        argv = ParseArgv(argv,tINT,&imin,tINT,&imax,0);    imin = MAX(imin,0);    imax = MIN(imax,book->size-1);        if (imin>imax) Errorf("_SetGraphBook : Option '-n' : Minimum n-value '%d' cannot be greater than maximum n-value '%d'",imin,imax);    graph->nMin = imin;    graph->nMax = imax;    return(YES);  }   /* The fund field */  if (!strcmp(field,"fund")) {    if (*argv == NULL) {      switch(graph->flagFund) {      case FundAll :        SetResultStr("all");        break;      case FundMax :        SetResultStr("max");        break;      case FundSum :        SetResultStr("sum");        break;      default :        Errorf("???? bad flagFund");      }      return(YES);      }        argv = ParseArgv(argv,tSTR,&str,0);    if(!strcmp(str,"all")) {     graph->flagFund = FundAll;     return(YES);    }     if(!strcmp(str,"max")) {     graph->flagFund = FundMax;     return(YES);    }    if(!strcmp(str,"sum")) {     graph->flagFund = FundSum;     return(YES);    }    Errorf("_SetGraphBook : Option -fund : bad value '%s'",str);    return(NO);  }  /* The db field */  if (!strcmp(field,"db")) {    if (*argv == NULL) {      SetResultInt((int) graph->flagDb);      return(YES);      }        argv = ParseArgv(argv,tINT,&flag,0);    graph->flagDb = (flag!=0);    return(YES);  }  /* The expo field */  if (!strcmp(field,"expo")) {    if (*argv == NULL) {      SetResultFloat(graph->exponent);      return(YES);      }        argv = ParseArgv(argv,tFLOAT,&(graph->exponent),0);    return(YES);  }//  /* The logFreq field *///  if (!strcmp(field,"logfreq")) {//    if (*argv == NULL) {//      SetResultInt((int) graph->flagLogFreq);//      return(YES);  //    }    //    argv = ParseArgv(argv,tINT,&flag,0);//    graph->flagLogFreq = (flag!=0);//    return(YES);//  }//  /* The expo field *///  if (!strcmp(field,"freqswitch")) {//    if (*argv == NULL) {//      SetResultFloat(graph->freqSwitch);//      return(YES);  //    }    //    argv = ParseArgv(argv,tFLOAT,&(graph->freqSwitch),0);//    return(YES);//  }  /* The colormap field */  if (!strcmp(field,"cm")) {    if (*argv == NULL) {      SetResultStr(GetColorMapName(graph->cm));      return(YES);      }        argv = ParseArgv(argv,tCOLORMAP,&(graph->cm),0);    return(YES);  }  /* The 'rect' field */  if (!strcmp(field,"rect")) {    NoMoreArgs(argv);    if (book == NULL) {      lv = TNewListv();      SetResultValue(lv);      AppendFloat2Listv(lv,0);      AppendFloat2Listv(lv,0);      AppendFloat2Listv(lv,0);      AppendFloat2Listv(lv,0);       return(YES);    }    o->rx = TimeId2Time(book,-.5);    o->rw = TimeId2Time(book,book->signalSize-.5);    o->rw-=o->rx;    o->ry = FreqId2Freq(book,-.5);    o->rh = FreqId2Freq(book,GABOR_NYQUIST_FREQID+.5);    o->rh-=o->ry;    UpdateGlobalRectGObject(o);        lv = TNewListv();    SetResultValue(lv);        AppendFloat2Listv(lv,o->rx);    AppendFloat2Listv(lv,o->ry);    AppendFloat2Listv(lv,o->rw);

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产成人精品视频| 成人蜜臀av电影| 91国偷自产一区二区三区观看| 18成人在线观看| 91在线视频18| 夜夜夜精品看看| 在线成人av影院| 久久狠狠亚洲综合| 欧美激情一区二区三区在线| 成人av网站免费| 亚洲影视在线播放| 色呦呦网站一区| 视频一区二区三区在线| 日韩女优av电影在线观看| 久久精品国产精品青草| 亚洲香肠在线观看| 136国产福利精品导航| 精品国产伦一区二区三区观看方式| 高清视频一区二区| 一区二区三区成人| 美女在线观看视频一区二区| 国产日韩欧美亚洲| 色婷婷亚洲精品| 福利91精品一区二区三区| 精品在线观看视频| 亚洲日本一区二区| 日韩免费性生活视频播放| 欧美日韩在线综合| 成人免费视频网站在线观看| 韩国精品久久久| 一区二区三区日本| 一区视频在线播放| 国产精品久久夜| 日韩女同互慰一区二区| 538在线一区二区精品国产| 国产成人高清视频| 日韩精品视频网站| 五月天久久比比资源色| 中文字幕二三区不卡| 久久久亚洲高清| 欧美老肥妇做.爰bbww视频| 色噜噜狠狠成人中文综合 | 伊人婷婷欧美激情| 欧美一区二区在线视频| 99麻豆久久久国产精品免费优播| av激情成人网| aaa欧美日韩| 成人涩涩免费视频| 91美女片黄在线观看91美女| 精品一区二区免费看| 激情文学综合丁香| 国产成人av一区| 99精品欧美一区二区三区小说 | 97久久人人超碰| 91丝袜国产在线播放| 色婷婷av一区| 在线电影院国产精品| 日韩欧美在线观看一区二区三区| 色婷婷精品大在线视频| 在线精品视频免费观看| 91在线视频免费观看| 在线观看亚洲一区| 欧美一区二区女人| 久久精品一区二区三区不卡 | 午夜精品久久久久久久99樱桃| 午夜激情久久久| 国内精品久久久久影院色| 成人午夜电影小说| 在线视频你懂得一区| 欧美一区二区三区视频免费| 久久久久99精品一区| 亚洲免费三区一区二区| 中文字幕制服丝袜成人av | 日韩一区二区三区四区五区六区| 久久久精品国产免大香伊| 成人免费在线观看入口| 午夜伦理一区二区| 黑人精品欧美一区二区蜜桃| 99精品视频在线观看| 91精品一区二区三区久久久久久| 久久久久久久综合色一本| 中文字幕一区二区三区不卡| 婷婷开心激情综合| 国产白丝精品91爽爽久久| 在线观看日产精品| 精品av综合导航| 一区二区三区在线观看欧美| 久久不见久久见免费视频7| 91在线高清观看| 精品欧美乱码久久久久久 | 亚洲男女毛片无遮挡| 美女视频免费一区| 97久久久精品综合88久久| 精品奇米国产一区二区三区| 亚洲九九爱视频| 国模无码大尺度一区二区三区| 色8久久人人97超碰香蕉987| 欧美精品一区二区三区在线| 亚洲一区中文日韩| 成人午夜视频在线| 精品人伦一区二区色婷婷| 亚洲影院在线观看| 成人av电影在线播放| 日韩精品一区二区三区在线观看| 亚洲男人的天堂在线aⅴ视频| 国产精品一二一区| 91在线免费看| 久久久噜噜噜久噜久久综合| 日韩精品免费视频人成| 色偷偷成人一区二区三区91| 国产欧美久久久精品影院| 首页国产欧美久久| 在线免费不卡视频| 成人欧美一区二区三区1314| 国产精品一线二线三线| 日韩午夜三级在线| 日韩精品视频网| 欧美日韩三级视频| 一区二区三区在线免费视频| 91在线码无精品| 国产精品乱码一区二区三区软件| 亚洲成人动漫精品| 加勒比av一区二区| 欧美一级xxx| 日本亚洲一区二区| 成年人网站91| 中文字幕成人网| 国产成人精品亚洲日本在线桃色| 亚洲精品一区二区三区蜜桃下载 | 五月婷婷另类国产| 欧美视频第二页| 久久精品夜色噜噜亚洲aⅴ| 蜜臀国产一区二区三区在线播放| 欧美日韩黄色一区二区| 欧美国产日韩a欧美在线观看| 国产又粗又猛又爽又黄91精品| 色婷婷综合久久久| 亚洲精品成人天堂一二三| 一本久久a久久精品亚洲| 亚洲天堂精品视频| 91国在线观看| 亚洲va中文字幕| 91精品国产综合久久小美女| 日韩精品一区第一页| 日韩欧美成人激情| 狠狠久久亚洲欧美| 中文一区一区三区高中清不卡| 成人一区在线看| 亚洲人123区| 欧美日韩国产高清一区二区三区| 午夜精彩视频在线观看不卡| 日韩欧美国产综合一区| 国产在线精品一区二区夜色| 国产亚洲综合在线| av不卡在线播放| 亚洲第一二三四区| 日韩视频永久免费| 国产suv精品一区二区三区| 国产精品毛片久久久久久| 91麻豆国产精品久久| 亚洲影院理伦片| 日韩午夜在线影院| 成人性视频免费网站| 一区二区三区欧美激情| 51精品国自产在线| 国产精品中文字幕日韩精品| 中文字幕一区二区日韩精品绯色| 欧美日韩精品欧美日韩精品| 另类小说视频一区二区| 国产精品高潮呻吟久久| 欧美久久高跟鞋激| 国产精品18久久久久久久久| 亚洲精品乱码久久久久久| 日韩一区二区三区免费看| 成熟亚洲日本毛茸茸凸凹| 一级做a爱片久久| 精品国产免费视频| 91麻豆国产精品久久| 久久精品久久久精品美女| 亚洲视频一区二区免费在线观看| 欧美性生活一区| 国产另类ts人妖一区二区| 一区二区成人在线观看| 亚洲精品在线免费播放| 在线免费观看视频一区| 国内精品国产成人| 亚洲高清在线视频| 国产精品乱码一区二区三区软件 | 亚洲乱码中文字幕| 日韩免费视频线观看| 色综合久久久久久久久久久| 蜜臀av一区二区在线免费观看| 亚洲视频在线一区二区| 日韩精品一区二区三区在线观看| 色香蕉久久蜜桃| 国产成人在线视频网站| 日韩主播视频在线| 亚洲人成伊人成综合网小说| 精品国产3级a| 欧美精选在线播放|