Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
preview_off.c
Package: dvd-munitions.tar.gz [view]
Upload User: aoeyumen
Upload Date: 2007-01-06
Package Size: 3329k
Code Size: 1k
Category:
DVD
Development Platform:
Unix_Linux
- /* very simple app to set the tv frequency */
- #include <sys/time.h>
- #include <fcntl.h>
- #include <sys/ioctl.h>
- #include <unistd.h>
- #include <stdio.h>
- #include <errno.h>
- #include <linux/fs.h>
- #include <linux/videodev2.h>
- int main(int argc,char **argv) {
- int vfd = 0;
- int arg = 0;
- char *devname = "/dev/video";
- if( argc != 1 ) {
- puts("Usage: preview_offn");
- exit(1);
- }
- vfd = open(devname,O_RDWR|O_NONCAP);
- if (vfd <= 0) {
- fprintf(stderr,"sorry, no such device %sn",devname);
- exit(1);
- }
- if (ioctl(vfd,VIDIOC_PREVIEW,&arg) < 0)
- perror("setting frequency"),exit(1);
- close(vfd);
- return 0;
- }