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

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

?? process.h~

?? it is about embeded system
?? H~
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
                         right = middle - 1;                       else if ( longnum > syl_ret[middle].longslash )                         left = middle + 1;                       else                        {                          if( shortnum < syl_ret[middle].shortslash )                           right = middle - 1;                          else if ( shortnum > syl_ret[middle].shortslash )                           left = middle + 1;                          else                            {                           if(long_minus<syl_ret[middle].longslash_minus )                             right = middle - 1;                           else if (long_minus >syl_ret[middle].longslash_minus )                             left = middle + 1;                           else                             {                              if(short_minus<syl_ret[middle].shortslash_minus )                                 right = middle - 1;                              else if (short_minus >syl_ret[middle].shortslash_minus )                                left = middle + 1;                              else                               {                                                             right = middle - 1;                                left = middle + 1;                                syllabl[count_syl]=syl_ret[middle].syllable;                                  count_syl++;                                while(right>=0)                                {                                   if(p1count==syl_ret[right].first&&                                   p2count==syl_ret[right].second&&                                   linenum==syl_ret[right].line&&                                   rownum==syl_ret[right].row&&                                   longnum==syl_ret[middle].longslash&&                                   shortnum==syl_ret[middle].shortslash&&                                   long_minus==syl_ret[middle].longslash_minus&&                                   short_minus==syl_ret[middle].shortslash_minus)                                  {                                    syllabl[count_syl]=syl_ret[right].syllable;                                     right--;                                    count_syl++;                                    }                                 else                                   break;                                 }                                while(left<SYLLABLE_MAX)                                {                                   if(p1count==syl_ret[left].first&&                                   p2count==syl_ret[left].second&&                                   linenum==syl_ret[left].line&&                                   rownum==syl_ret[left].row&&                                   longnum==syl_ret[middle].longslash&&                                   shortnum==syl_ret[middle].shortslash&&                                   long_minus==syl_ret[middle].longslash_minus&&                                   short_minus==syl_ret[middle].shortslash_minus)                                  {                                    syllabl[count_syl]=syl_ret[left].syllable;                                     left++;                                    count_syl++;                                  }                                 else                                   break;                                }                               }                               }                            }                         }                                           }                                      }                   }                  }          }*/          /*      for(count_syl=0;count_syl<SYLLABLE_MAX ;count_syl++)       {        if(syl_ret[count_syl].first==firstnum&&syl_ret[count_syl].second==secondnum&&          syl_ret[count_syl].line==linenum&&syl_ret[count_syl].row==rownum)                        //syllable[count_syl]=syl_ret[count_syl].syllable;      }   */       // translate(syllabl,count_syl);    /*------------reset the variable-----------------*/      /*      for(i=0;i<p1count;i++)       {          poi1[i].x=0;          poi1[i].y=0;       }       for(i=0;i<p2count;i++)       {          poi2[i].x=0;          poi2[i].y=0;       }    

	   for(i=0;i<6;i++)
		{
                  binarynumber1[i] = 0 ;                   binarynumber2[i] = 0 ;
		}
	          count=0;                 // = 0       p1count=0;               // = 0       p2count=0;               // = 0       linenum =0;              //the number of line = 0       rownum =0;               //the number of row = 0       longnum = 0;             //the number of long slash = 0       shortnum = 0;            //the number of short slash = 0       long_minus= 0;           //the number of long minus slash = 0       short_minus= 0;          //the number of short minus slash = 0       fir_poi_line=0;          //聲母盲文的首點(diǎn)所在行的點(diǎn)的個(gè)數(shù) = 0       fir_poi_row=0;           //聲母盲文的首點(diǎn)所在列的點(diǎn)的個(gè)數(shù) = 0       sec_poi_line=0;          //韻母盲文的首點(diǎn)所在行的點(diǎn)的個(gè)數(shù) = 0       sec_poi_row=0;           //韻母盲文的首點(diǎn)所在列的點(diǎn)的個(gè)數(shù) = 0       fir_poi_exist=0;          //聲母盲文是否存在正規(guī)矩陣的首點(diǎn) 1表示存在 = 0       sec_poi_exist=0;          //韻母盲文是否存在正規(guī)矩陣的首點(diǎn) 1表示存在 = 0       buffer.sem  =1;       buffer.point_rd=1;       buffer.times=0;       exec=0;
       //number[6]="\0";       */     }   }       return NULL; }   
 /*-------------the function to set the value of property---------*/

 void * property_set( void * data)
 {
  
  TS_RET ts_ret;
  int fd,n;
  int i;  pthread_t *th_b_receive=(pthread_t *)data;

  ShowBitmap(0,0,MY_PICTURE_DISPLAY);
  fd = open(DEVICE_NAME_TOUCH,O_RDONLY);

  if (fd<0)
   {
     printf(" open device error!\n");
     exit(1);
   }
   /*----------------test-----------------*/
   printf("\n--property value setting beging!--\n");
  
   printf("please input six points and fix the property\n");
 
  /*-----------------read value of X,Y from the touchscreen-------------*/ 
   while(afresh)
   {
     if(buffer.point_rd)
     {  
      n=read(fd,&ts_ret,1);
      
      
      if(ts_ret.pressure==1)
       {       /* if(color)         {          //ShowBitmap(0,0,MY_PICTURE_DISPLAY);          color=1;         }*/        pthread_cond_signal(&buffer.timer);
                ShowBitmapWithTS(ts_ret.x,ts_ret.y,MY_PICTURE_POINT);
        printf("----X:%d----Y:%d----\n",ts_ret.x,ts_ret.y);
        point[count_pro].x=ts_ret.x;
        point[count_pro].y=ts_ret.y;
        count_pro++;
        if(count_pro==6)          {
           ShowBitmap(0,0,MY_PICTURE_DISPLAY);           //color = 1;              }  
       }
       

       if(ts_ret.pressure==0)
       {
       // usleep(900000);
        
       // pthread_mutex_lock(&buffer.lock);
      
         buffer.times = 0; 
         pthread_cond_signal(&buffer.timer);
     
       // pthread_mutex_unlock(&buffer.lock);
       }
 

    
     /*-------------select to quit the cycle------------*/      /*
       if(ts_ret.x>STOP_POINT_R_X&&ts_ret.y<STOP_POINT_R_Y)
        {
                           
                         
           count_pro  = 0;         
           control = 1;
           if(quit_s=1)
           {
             pthread_cond_signal(&buffer.timer);
           } 
           
           break;
        }       */   
    }    
   }
     close(fd);     
   pthread_cancel(*th_b_receive);   
 /*---------------------analyse and calculate the property--------------*/
   if(count_pro == 6)
    {
    if(point[1].x-ERROR<point[0].x&&point[0].x<point[1].x+ERROR)
     {
   
       property.pointx=(abs(point[3].x-point[0].x)+
                    abs(point[4].x-point[1].x)+
                    abs(point[5].x-point[2].x))/3;

       property.pointy=(abs(point[1].y-point[0].y)+
                    abs(point[2].y-point[1].y)+
                    abs(point[4].y-point[3].y)+
                    abs(point[5].y-point[4].y))/4;
      }

     if(point[1].y-ERROR<point[0].y&&point[0].y<point[1].y+ERROR)
      {

       property.pointx=(abs(point[1].x-point[0].x)+
                     abs(point[3].x-point[2].x)+
                     abs(point[5].x-point[4].x))/3;
        
       property.pointy=(abs(point[2].y-point[0].y)+
                     abs(point[4].y-point[2].y)+
                     abs(point[3].y-point[1].y)+
                     abs(point[5].y-point[3].y))/4;

      }



    /*---------------------test------------------*/
      //printf("the property value below:\n");
      //printf("---pointx:%d----pointy:%d---\n",property.pointx,property.pointy);  
     } 
      
     
      
      return NULL;
 }


    
 /*--------------judge the time is less to the 	TIME--------------*/ void * overtime( void * data )   {    int i;       while(quit_s)     {           if(exec)        {             if(buffer.times>TIME)         {            for(i=0;i<count_pro;i++)              printf("%d-----X:%d-----Y:%d-----\n",i,point[i].x,point[i].y);           printf("warning!!overtime,please input again(six points).\n");//language            /*for(i=0;i<6;i++)             {               point[i].x=0;               point[i].y=0;             }  */             count_pro=0;           buffer.times=0;           buffer.sem=1;           buffer.point_rd=1;           exec=0;          }            }      }      return NULL;    }     void * check_pro( void * data )   {         int i;     pthread_t *th_e_receive=(pthread_t *)data;
          while(1)     {                 if(count_pro==6)         {                    afresh=pro_process(point);          if (afresh==1)           {            for(i=0;i<6;i++)              printf("%d-----X:%d-----Y:%d-----\n",i,point[i].x,point[i].y);                          printf("the value of provery error,please input again.\n");            buffer.sem=1;            for(i=0;i<6;i++)             {               point[i].x=0;               point[i].y=0;             }                        count_pro=0;            buffer.times=0;            //sleep(1);            buffer.point_rd=1;                                  }          else            {            quit_s=0;                        for(i=0;i<6;i++)              printf("%d-----X:%d-----Y:%d-----\n",i,point[i].x,point[i].y);            printf("the value of proverty has finished!\n"); //language                       pthread_cancel(*th_e_receive);                       buffer.times=0;            //sleep(1);            buffer.sem=1;            buffer.point_rd=1;                        break;                                   }         }             }      }    /*----------------judge the value of the property is useful------------*/     int pro_process(POINT point_temp[])       {                if(abs(point_temp[1].y-point_temp[0].y)>DEFAULTMINDIS)             if(           point_temp[1].x - ERROR < point_temp[0].x&&point_temp[0].x <           point_temp[1].x + ERROR &&          point_temp[2].x - ERROR < point_temp[1].x&&point_temp[1].x <           point_temp[2].x + ERROR &&          point_temp[4].x - ERROR < point_temp[3].x&&point_temp[3].x <           point_temp[4].x + ERROR &&          point_temp[5].x - ERROR < point_temp[4].x&&point_temp[4].x <           point_temp[5].x + ERROR &&          point_temp[3].y - ERROR < point_temp[0].y&&point_temp[0].y <           point_temp[3].y + ERROR &&          point_temp[4].y - ERROR < point_temp[1].y&&point_temp[1].y <           point_temp[4].y + ERROR &&          point_temp[5].y - ERROR < point_temp[2].y&&point_temp[2].y <           point_temp[5].y + ERROR )            return 0;       else             return 1;        else         if(           point_temp[2].x - ERROR < point_temp[0].x&&point_temp[0].x <            point_temp[2].x + ERROR &&           point_temp[4].x - ERROR < point_temp[2].x&&point_temp[2].x <            point_temp[4].x + ERROR &&           point_temp[3].x - ERROR < point_temp[1].x&&point_temp[1].x <            point_temp[3].x + ERROR &&           point_temp[5].x - ERROR < point_temp[3].x&&point_temp[3].x <            point_temp[5].x + ERROR &&           point_temp[1].y - ERROR < point_temp[0].y&&point_temp[0].y <            point_temp[1].y + ERROR &&           point_temp[3].y - ERROR < point_temp[2].y&&point_temp[2].y <            point_temp[3].y + ERROR &&           point_temp[5].y - ERROR < point_temp[4].y&&point_temp[4].y <            point_temp[5].y + ERROR )              return 0;         else             return 1;         } /*-----------------count the time when release the touchscreen-------*/ void * time_count(void * data)  {    int i;    pthread_t *th_a_receive=(pthread_t *)data;    while(1)    {              if(buffer.sem)                     {                        pthread_cond_wait(&buffer.timer,&buffer.lock);            buffer.sem=0;            buffer.times = 0;           }                                                   //pthread_mutex_lock(&buffer.lock);          sleep(1);            //delay  1 second           buffer.times++;          //OSTimeDly(1500);   //delay  1 second                    //pthread_mutex_unlock(&buffer.lock);                  printf("---%d---\n",buffer.times-1);                   if(buffer.times-1>=TIME)             {                          if(data!=NULL)                pthread_cancel(*th_a_receive);              exec = 1;              buffer.sem = 1;                            ShowBitmap(0,0,MY_PICTURE_DISPLAY);             // color=1;                           }                     }        return NULL;  }      #endif    

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产风韵犹存在线视精品| 亚洲一区二区精品久久av| 亚洲欧洲一区二区三区| 一区二区三区欧美| 蜜臀av一区二区三区| 福利视频网站一区二区三区| 日本丰满少妇一区二区三区| 欧美一级一区二区| 国产精品欧美极品| 亚洲成人tv网| 国产九色sp调教91| 欧美猛男男办公室激情| 国产香蕉久久精品综合网| 亚洲一区日韩精品中文字幕| 国产一二精品视频| 在线观看一区日韩| 久久综合色8888| 亚洲国产另类精品专区| 国产精品88av| 欧美美女网站色| 国产精品久久夜| 麻豆成人91精品二区三区| av一二三不卡影片| 26uuu另类欧美亚洲曰本| 国产一区二三区| 在线精品视频一区二区| 欧美韩国日本综合| 免费亚洲电影在线| 欧美亚洲图片小说| 国产精品你懂的在线欣赏| 免播放器亚洲一区| 91福利社在线观看| 国产精品美女视频| 久久99九九99精品| 欧美日韩第一区日日骚| 亚洲男同1069视频| 国产成人精品三级| 欧美videos大乳护士334| 亚洲影院在线观看| 91免费版在线看| 国产女人18毛片水真多成人如厕| 日本不卡一区二区三区高清视频| 99久久er热在这里只有精品15| 精品国产99国产精品| 91福利在线观看| ...xxx性欧美| 成人午夜短视频| 久久久久久一二三区| 久久99日本精品| 欧美一级片在线看| 日本欧美一区二区三区| 欧美日韩黄视频| 亚洲午夜久久久久久久久电影院 | 欧美精品久久99| 亚洲欧洲无码一区二区三区| 国产精品一区二区不卡| 2020日本不卡一区二区视频| 色噜噜夜夜夜综合网| 亚洲人成人一区二区在线观看| av男人天堂一区| 国产精品动漫网站| 久久久久久久综合狠狠综合| 另类小说综合欧美亚洲| 日韩一区二区三区免费观看| 日韩av不卡在线观看| 欧美精品电影在线播放| 日韩高清一区二区| 4438x亚洲最大成人网| 免费观看成人鲁鲁鲁鲁鲁视频| 91精品国产综合久久久久久| 日韩av成人高清| 日韩免费高清视频| 精品午夜久久福利影院| 精品福利一区二区三区| 国产一区二区久久| 国产日韩欧美不卡在线| 成人h精品动漫一区二区三区| 中文字幕在线观看一区| 91社区在线播放| 亚洲一区二区三区四区在线免费观看 | 欧美亚洲免费在线一区| 亚洲444eee在线观看| 亚洲男女毛片无遮挡| 在线视频国内一区二区| 亚洲一二三区不卡| 这里只有精品免费| 国产一区二三区| 中文字幕亚洲精品在线观看| 色婷婷香蕉在线一区二区| 亚欧色一区w666天堂| 日韩欧美www| 成人午夜激情视频| 亚洲午夜羞羞片| 日韩欧美的一区| 成人午夜激情在线| 亚洲小说欧美激情另类| 日韩三级电影网址| 成人永久看片免费视频天堂| 亚洲男人的天堂在线aⅴ视频| 欧美绝品在线观看成人午夜影视| 狂野欧美性猛交blacked| 中文字幕不卡在线观看| 欧美主播一区二区三区| 久久疯狂做爰流白浆xx| 国产精品77777竹菊影视小说| |精品福利一区二区三区| 欧美另类z0zxhd电影| 国产精品自产自拍| 亚洲另类中文字| 精品国产乱码久久久久久蜜臀| 粉嫩13p一区二区三区| 亚洲国产一区二区三区 | 国产精品一二三四区| 亚洲色图欧美激情| 日韩一区二区三区四区五区六区| 国产精品1区二区.| 亚洲综合色自拍一区| 久久综合九色欧美综合狠狠| 97精品久久久午夜一区二区三区 | 欧美成人精品1314www| kk眼镜猥琐国模调教系列一区二区| 丝袜亚洲精品中文字幕一区| 国产日韩一级二级三级| 日本一区二区电影| 欧美日韩卡一卡二| 成人av在线播放网址| 美女一区二区在线观看| 亚洲精品一二三区| 久久综合九色综合97婷婷| 欧美一a一片一级一片| 国产不卡高清在线观看视频| 婷婷亚洲久悠悠色悠在线播放| 国产精品网站导航| 日韩精品资源二区在线| 91久久线看在观草草青青| 国产麻豆成人传媒免费观看| 亚洲午夜av在线| 中文字幕在线观看不卡| 久久综合九色综合97婷婷女人| 欧美三级视频在线| 成人福利视频网站| 精品一区免费av| 午夜精品福利一区二区三区蜜桃| 亚洲国产精品传媒在线观看| 欧美电影免费观看完整版| 欧美视频一区二区三区在线观看| 成人网页在线观看| 欧美群妇大交群中文字幕| 91麻豆123| 丁香婷婷综合五月| 国产在线精品一区二区不卡了 | 欧美一区二区三区成人| 在线观看一区日韩| 色综合咪咪久久| 国产91精品免费| 精品一区二区三区在线观看国产| 婷婷夜色潮精品综合在线| 亚洲中国最大av网站| 综合婷婷亚洲小说| 国产精品久久久久久久久搜平片| 久久久久久久网| 精品久久久久久久久久久久久久久| 欧美中文字幕久久| 91麻豆免费看| 91老司机福利 在线| 99久久免费精品| 波多野结衣亚洲| 成人综合在线观看| 高清不卡一区二区| 成人永久免费视频| 精品不卡在线视频| 精品国产区一区| 久久久综合激的五月天| 久久午夜羞羞影院免费观看| 精品国内二区三区| 欧美精品一区在线观看| 久久综合久久久久88| 久久嫩草精品久久久久| 国产日产欧美一区二区三区| 久久精品免费在线观看| 久久精品夜色噜噜亚洲a∨| 国产日韩欧美一区二区三区综合 | 成人动漫一区二区| a亚洲天堂av| 在线观看免费亚洲| 欧美日韩精品一区二区| 4438x成人网最大色成网站| 欧美一区二区三区视频| 欧美大片免费久久精品三p| 26uuu成人网一区二区三区| 久久精品一区二区三区四区| 国产精品免费人成网站| 中文字幕欧美一区| 亚洲精品伦理在线| 调教+趴+乳夹+国产+精品| 欧美猛男gaygay网站| 日韩精品最新网址| 欧美精彩视频一区二区三区| 17c精品麻豆一区二区免费| 亚洲国产成人porn|