Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÉãÏñÍ·±à³ÌС½á

ת×Ô£ºhttp://blog.chinaunix.net/u/7547/showart_122619.html
1.open device:
      video_dev = open("\dev\video0",O_RDWR));
2.get the information of the video device
    struct video_capability video_cap;
    memset(&video_cap,0,sizeof(video_cap));
    if(ioctl(video_dev,VIDIOCGCAP,&video_cap) == -1)
    {
        perror("Cann't get the information of the video device");
        close(video_dev);
        exit(1);
    }
3.get the information of the channels
    struct video_channel video_chan;
    memset(&video_chan,0,sizeof(video_chan));
    for(channel = 0;channel < video_cap.channels;channel++)
    {
        video_chan.channel = channel;
        if(ioctl(video_dev,VIDIOCGCHAN,&video_chan) == -1)
        {
            perror("Cann't get the information of the channels");
            close(video_dev);
            exit(3);
        }
        if(video_chan.type == VIDEO_TYPE_TV)
        {
                  #ifdef DEBUG
            printf("NO.%d channel is %s,type is tv!\n",channel,video_chan.name);
                  #endif
        }
        if(video_chan.type == VIDEO_TYPE_CAMERA)
   


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

linux ϵͳ°²×°ºÍÈí¼þÍÆ¼ö

1¡¢°²×°»ù±¾ÏµÍ³
ÕâÀﰲװʹÓõÄÊÇUbuntu 7.04 µÄ Alternate CD¡£Ê¹Óà Alternate CD Òýµ¼Æô¶¯£¬È»ºóÑ¡Ôñ “°²×°ÃüÁîÐÐϵͳ£¨Install Command Line£©” ½øÐÐ×îС»¯°²×°£¬ÔÚÕâÒ»²½£¬Òª×¢Ò⣬һ¶¨²»ÒªÑ¡ÔñÖÐÎÄÓïÑÔ»·¾³£¬·ñÔòÔÚÖÕ¶Ë´°¿Úϵĸ÷ÖÖÌáʾ£¬Óкܶ඼ÊÇÖÐÎĵġ£ÔÚûÓÐ×°ÔØÍê³ÉX Window֮ǰ£¬ÄãÖ»ÄÜ¿´µ½Ò»¶Ñ ......

ÆÊÎöRedHat LinuxÖÐÈý¸öÖØÒªÄÚºËÎļþ


ÆÊÎöRedHat LinuxÖÐÈý¸öÖØÒªÄÚºËÎļþ
×÷Õߣºmynix À´Ô´:www.linux.org (2007-02-08 13:46:41)
 ¡¡  vmlinuxÊÇδѹËõµÄÄںˣ¬vmlinuzÊÇvmlinuxµÄѹËõÎļþ¡£zImage(vmlinuz)ºÍbzImage(vmlinuz)¶¼ÊÇÓÃgzipѹËõµÄ¡£ËüÃDz»½öÊÇÒ»¸öѹËõÎļþ£¬¶øÇÒÔÚÕâÁ½¸öÎļþµÄ¿ªÍ·²¿·ÖÄÚǶÓÐgzip½âѹËõ´úÂë¡£bzImageÖеÄbÊÇ&ldqu ......

ÔÚ linux ÏÂʹÓà CMake ¹¹½¨Ó¦ÓóÌÐò


CMake ÊÇÒ»¸ö¿çƽ̨µÄ×Ô¶¯»¯½¨¹¹ÏµÍ³,ËüʹÓÃÒ»¸öÃûΪ CMakeLists.txt µÄÎļþÀ´ÃèÊö¹¹½¨¹ý³Ì,¿ÉÒÔ²úÉú±ê×¼µÄ¹¹½¨Îļþ,Èç Unix µÄ Makefile »òWindows Visual C++ µÄ projects/workspaces ¡£Îļþ CMakeLists.txt ÐèÒªÊÖ¹¤±àд,Ò²¿ÉÒÔͨ¹ý±àд½Å±¾½øÐаë×Ô¶¯µÄÉú³É¡£CMake ÌṩÁË±È autoconfig ¸ü¼ò½àµÄÓï·¨¡£ÔÚ linux Æ½Ì¨Ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ