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

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

?? process.h

?? it is about embeded system
?? H
?? 第 1 頁 / 共 4 頁
字號:
                         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;          //聲母盲文的首點所在行的點的個數(shù) = 0       fir_poi_row=0;           //聲母盲文的首點所在列的點的個數(shù) = 0       sec_poi_line=0;          //韻母盲文的首點所在行的點的個數(shù) = 0       sec_poi_row=0;           //韻母盲文的首點所在列的點的個數(shù) = 0       fir_poi_exist=0;          //聲母盲文是否存在正規(guī)矩陣的首點 1表示存在 = 0       sec_poi_exist=0;          //韻母盲文是否存在正規(guī)矩陣的首點 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
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色视频一区| 在线成人午夜影院| 色偷偷久久一区二区三区| 国产精品一品二品| 久久久国产一区二区三区四区小说 | 亚洲一区视频在线| 午夜欧美在线一二页| 国产一区在线精品| 欧洲国内综合视频| 久久久精品综合| 亚洲国产精品嫩草影院| 国内一区二区在线| 欧美日韩日日夜夜| 日韩一区欧美一区| 国内成+人亚洲+欧美+综合在线 | 欧美国产精品专区| 欧美aaaaa成人免费观看视频| 激情五月婷婷综合| 欧美日韩午夜在线视频| 国产精品久久久久久久久久久免费看| 亚洲午夜激情网站| 色婷婷国产精品| 国产精品福利一区二区| 秋霞成人午夜伦在线观看| 在线视频欧美精品| 亚洲视频网在线直播| 97se亚洲国产综合自在线观| 国产精品入口麻豆原神| 麻豆精品视频在线| 91麻豆精品久久久久蜜臀| 亚洲一区中文在线| 在线观看视频91| 一区二区三区.www| 欧美无砖专区一中文字| 亚洲国产一区在线观看| 欧美久久久一区| 日韩av一二三| 337p日本欧洲亚洲大胆精品 | 国产日韩欧美亚洲| 国产很黄免费观看久久| 91小视频在线| 亚洲日本丝袜连裤袜办公室| 国产成人午夜高潮毛片| 久久久久久久综合色一本| 国产经典欧美精品| 夜色激情一区二区| 在线观看av一区| 日韩电影免费在线观看网站| 久久久久久久久蜜桃| 91视频免费播放| 蜜臀va亚洲va欧美va天堂| 中文天堂在线一区| 在线播放中文字幕一区| 国产成人综合在线| 午夜亚洲福利老司机| 国产三级一区二区三区| 欧美日韩精品一区二区三区四区| 久久精品国产亚洲5555| 一区二区视频在线看| 欧美一二区视频| 91久久精品一区二区二区| 免费在线看一区| 亚洲一区在线观看网站| 国产精品网曝门| 欧美大度的电影原声| 欧美日韩一区二区在线观看视频| 国产精品 日产精品 欧美精品| 亚洲一区二区三区美女| 一区精品在线播放| 国产精品欧美久久久久一区二区| 日韩美一区二区三区| 欧美男人的天堂一二区| 欧美日韩国产首页| 在线观看免费一区| 欧美日韩五月天| 欧美日韩综合色| 欧美二区乱c少妇| 欧美日韩精品一区二区三区四区| 91国产丝袜在线播放| 91蝌蚪国产九色| 91免费版pro下载短视频| 成人午夜激情在线| 91在线视频官网| 在线精品视频小说1| 538在线一区二区精品国产| 欧美成人午夜电影| 国产色91在线| 亚洲在线一区二区三区| 日韩成人一区二区| 成人av片在线观看| 欧美中文字幕一区二区三区 | 中文字幕中文字幕在线一区| 国产精品午夜在线观看| 亚洲高清在线视频| 精油按摩中文字幕久久| 成人激情免费电影网址| 欧美色综合久久| 国产性色一区二区| 亚洲制服丝袜av| 国产福利91精品一区二区三区| 91欧美一区二区| 精品久久久久久无| 亚洲aaa精品| 波多野结衣亚洲| 国产亚洲综合在线| 成人高清视频在线| 国产sm精品调教视频网站| 欧美在线free| 亚洲欧洲国产专区| 国产**成人网毛片九色| 欧美一区二区三区四区五区 | 99久久夜色精品国产网站| 欧美体内she精视频| 国产日韩欧美一区二区三区乱码| 五月婷婷综合网| 一本色道久久加勒比精品| 久久亚洲精精品中文字幕早川悠里 | 国产精品欧美综合在线| 国产一区二区精品久久99| 欧美成人a视频| 韩国三级在线一区| 日韩欧美成人一区二区| 五月天久久比比资源色| 欧美日韩国产一级二级| 亚洲第一激情av| 69堂成人精品免费视频| 日本中文字幕一区二区视频| 51久久夜色精品国产麻豆| 性做久久久久久免费观看欧美| 在线观看国产91| 免费观看一级特黄欧美大片| 日韩欧美三级在线| 韩国中文字幕2020精品| 国产精品嫩草影院com| 色综合久久九月婷婷色综合| 爽爽淫人综合网网站| 欧美一级黄色大片| 成人丝袜18视频在线观看| 亚洲人精品午夜| 日韩视频免费观看高清完整版 | 一区二区视频在线看| 欧美探花视频资源| 另类小说视频一区二区| 国产精品国产a级| 日韩一区二区三区观看| 国产福利91精品一区| 亚洲国产精品视频| 国产欧美日本一区视频| 欧美日韩国产电影| 99视频热这里只有精品免费| 麻豆成人91精品二区三区| 悠悠色在线精品| 欧美刺激脚交jootjob| 91影视在线播放| 国产乱一区二区| 另类小说色综合网站| 亚洲亚洲人成综合网络| 国产精品日日摸夜夜摸av| 日韩欧美在线观看一区二区三区| 色婷婷精品久久二区二区蜜臂av | 日韩在线观看一区二区| 日韩一区欧美小说| 国产精品久久久久久久久免费相片| 欧美v亚洲v综合ⅴ国产v| 欧美精品在线观看播放| 一本大道久久a久久精品综合| 国产精品一区久久久久| 国产精品一级在线| 国产一区二区三区综合| 久久99国产精品免费网站| 精品亚洲aⅴ乱码一区二区三区| 青草国产精品久久久久久| 免费国产亚洲视频| 久久国产免费看| 国产1区2区3区精品美女| 成人精品免费看| 色综合色综合色综合| 欧美日韩成人在线| 欧美videos大乳护士334| 久久精品欧美一区二区三区不卡 | 国产成人免费视频网站高清观看视频| 久久99精品久久久久久| 丰满亚洲少妇av| 色老汉av一区二区三区| 91精品国产综合久久精品性色| 日韩免费观看高清完整版在线观看| 欧美mv日韩mv国产| 亚洲视频免费观看| 日韩激情av在线| 成人a区在线观看| 日韩亚洲欧美在线观看| 中文字幕日韩一区二区| 秋霞午夜av一区二区三区| 99久久777色| 精品国产三级电影在线观看| 亚洲午夜在线电影| 国产91精品一区二区麻豆网站| 欧美日韩一区久久| 1024成人网色www| 高清久久久久久|