IPnom Home • Manuals • FreeBSD

 FreeBSD Man Pages

Man Sections:Commands (1)System Calls (2)Library Functions (3)Device Drivers (4)File Formats (5)Miscellaneous (7)System Utilities (8)
Keyword Live Search (10 results max):
 Type in part of a command in the search box.
 
Index:
  CPU_ELAN(4)
  CPU_SOEKRIS(4)
  aac(4)
  acd(4)
  acpi(4)
  acpi_asus(4)
  acpi_panasonic(4)
  acpi_thermal(4)
  acpi_toshiba(4)
  acpi_video(4)
  ad(4)
  adv(4)
  adw(4)
  afd(4)
  agp(4)
  agpgart(4)
  aha(4)
  ahb(4)
  ahc(4)
  ahd(4)
  aic(4)
  aio(4)
  alpm(4)
  altq(4)
  amd(4)
  amdpm(4)
  amr(4)
  an(4)
  apm(4)
  ar(4)
  arcmsr(4)
  arl(4)
  arp(4)
  asr(4)
  ast(4)
  ata(4)
  atapicam(4)
  ath(4)
  ath_hal(4)
  atkbd(4)
  atkbdc(4)
  aue(4)
  awi(4)
  axe(4)
  bfe(4)
  bge(4)
  bktr(4)
  blackhole(4)
  bpf(4)
  bridge(4)
  brooktree(4)
  bt(4)
  cam(4)
  card(4)
  cardbus(4)
  carp(4)
  cbb(4)
  ccd(4)
  cd(4)
  cdce(4)
  ch(4)
  ciss(4)
  cm(4)
  cnw(4)
  cp(4)
  cpufreq(4)
  crypto(4)
  cryptodev(4)
  cs(4)
  ct(4)
  ctau(4)
  cue(4)
  cx(4)
  cy(4)
  da(4)
  dc(4)
  dcons(4)
  dcons_crom(4)
  ddb(4)
  de(4)
  devctl(4)
  digi(4)
  disc(4)
  divert(4)
  dpt(4)
  dummynet(4)
  ed(4)
  ef(4)
  ehci(4)
  el(4)
  em(4)
  en(4)
  ep(4)
  esp(4)
  ex(4)
  exca(4)
  faith(4)
  fast_ipsec(4)
  fatm(4)
  fd(4)
  fdc(4)
  fe(4)
  fea(4)
  firewire(4)
  fla(4)
  fpa(4)
  fwe(4)
  fwip(4)
  fwohci(4)
  fxp(4)
  gbde(4)
  gdb(4)
  gem(4)
  geom(4)
  gif(4)
  gre(4)
  gx(4)
  harp(4)
  hatm(4)
  hfa(4)
  hifn(4)
  hme(4)
  hptmv(4)
  i4b(4)
  i4bcapi(4)
  i4bctl(4)
  i4bing(4)
  i4bipr(4)
  i4bisppp(4)
  i4bq921(4)
  i4bq931(4)
  i4brbch(4)
  i4btel(4)
  i4btrc(4)
  iavc(4)
  ichsmb(4)
  ichwd(4)
  icmp(4)
  icmp6(4)
  ida(4)
  idt(4)
  ie(4)
  ieee80211(4)
  if_an(4)
  if_aue(4)
  if_awi(4)
  if_axe(4)
  if_bfe(4)
  if_bge(4)
  if_cue(4)
  if_dc(4)
  if_de(4)
  if_disc(4)
  if_ed(4)
  if_ef(4)
  if_em(4)
  if_en(4)
  if_faith(4)
  if_fatm(4)
  if_fwe(4)
  if_fwip(4)
  if_fxp(4)
  if_gem(4)
  if_gif(4)
  if_gre(4)
  if_gx(4)
  if_hatm(4)
  if_hme(4)
  if_idt(4)
  if_kue(4)
  if_lge(4)
  if_my(4)
  if_ndis(4)
  if_nge(4)
  if_oltr(4)
  if_patm(4)
  if_pcn(4)
  if_ppp(4)
  if_re(4)
  if_rl(4)
  if_rue(4)
  if_sbni(4)
  if_sbsh(4)
  if_sf(4)
  if_sis(4)
  if_sk(4)
  if_sl(4)
  if_sn(4)
  if_ste(4)
  if_stf(4)
  if_tap(4)
  if_ti(4)
  if_tl(4)
  if_tun(4)
  if_tx(4)
  if_txp(4)
  if_udav(4)
  if_vge(4)
  if_vlan(4)
  if_vr(4)
  if_wb(4)
  if_wi(4)
  if_xe(4)
  if_xl(4)
  ifmib(4)
  ifpi(4)
  ifpi2(4)
  ifpnp(4)
  ihfc(4)
  iic(4)
  iicbb(4)
  iicbus(4)
  iicsmb(4)
  iir(4)
  imm(4)
  inet(4)
  inet6(4)
  intpm(4)
  intro(4)
  io(4)
  ip(4)
  ip6(4)
  ipaccounting(4)
  ipacct(4)
  ipf(4)
  ipfirewall(4)
  ipfw(4)
  ipl(4)
  ipnat(4)
  ips(4)
  ipsec(4)
  isic(4)
  isp(4)
  ispfw(4)
  itjc(4)
  iwic(4)
  ixgb(4)
  joy(4)
  kame(4)
  keyboard(4)
  kld(4)
  kmem(4)
  ktr(4)
  kue(4)
  led(4)
  lge(4)
  linux(4)
  lnc(4)
  lo(4)
  longrun(4)
  loop(4)
  lp(4)
  lpbb(4)
  lpt(4)
  mac(4)
  mac_biba(4)
  mac_bsdextended(4)
  mac_ifoff(4)
  mac_lomac(4)
  mac_mls(4)
  mac_none(4)
  mac_partition(4)
  mac_portacl(4)
  mac_seeotheruids(4)
  mac_stub(4)
  mac_test(4)
  mcd(4)
  md(4)
  mem(4)
  meteor(4)
  miibus(4)
  mlx(4)
  mly(4)
  mouse(4)
  mpt(4)
  mse(4)
  mtio(4)
  multicast(4)
  my(4)
  natm(4)
  natmip(4)
  ncr(4)
  ncv(4)
  ndis(4)
  net(4)
  netgraph(4)
  netintro(4)
  networking(4)
  ng_UI(4)
  ng_async(4)
  ng_atm(4)
  ng_atmllc(4)
  ng_atmpif(4)
  ng_bluetooth(4)
  ng_bpf(4)
  ng_bridge(4)
  ng_bt3c(4)
  ng_btsocket(4)
  ng_ccatm(4)
  ng_cisco(4)
  ng_device(4)
  ng_echo(4)
  ng_eiface(4)
  ng_etf(4)
  ng_ether(4)
  ng_fec(4)
  ng_frame_relay(4)
  ng_gif(4)
  ng_gif_demux(4)
  ng_h4(4)
  ng_hci(4)
  ng_hole(4)
  ng_hub(4)
  ng_iface(4)
  ng_ip_input(4)
  ng_ksocket(4)
  ng_l2cap(4)
  ng_l2tp(4)
  ng_lmi(4)
  ng_mppc(4)
  ng_netflow(4)
  ng_one2many(4)
  ng_ppp(4)
  ng_pppoe(4)
  ng_pptpgre(4)
  ng_rfc1490(4)
  ng_socket(4)
  ng_split(4)
  ng_sppp(4)
  ng_sscfu(4)
  ng_sscop(4)
  ng_tee(4)
  ng_tty(4)
  ng_ubt(4)
  ng_uni(4)
  ng_vjc(4)
  ng_vlan(4)
  nge(4)
  nmdm(4)
  npx(4)
  nsp(4)
  null(4)
  ohci(4)
  oldcard(4)
  oltr(4)
  opie(4)
  orm(4)
  pae(4)
  pass(4)
  patm(4)
  pccard(4)
  pccbb(4)
  pcf(4)
  pci(4)
  pcic(4)
  pcm(4)
  pcn(4)
  pcvt(4)
  perfmon(4)
  pf(4)
  pflog(4)
  pfsync(4)
  pim(4)
  plip(4)
  pnp(4)
  pnpbios(4)
  polling(4)
  ppbus(4)
  ppc(4)
  ppi(4)
  ppp(4)
  psm(4)
  pst(4)
  pt(4)
  pty(4)
  puc(4)
  random(4)
  rawip(4)
  ray(4)
  rc(4)
  re(4)
  rl(4)
  rndtest(4)
  route(4)
  rp(4)
  rue(4)
  sa(4)
  sab(4)
  safe(4)
  sbni(4)
  sbp(4)
  sbp_targ(4)
  sbsh(4)
  sc(4)
  scbus(4)
  scd(4)
  sched_4bsd(4)
  sched_ule(4)
  screen(4)
  screensaver(4)
  scsi(4)
  sem(4)
  ses(4)
  sf(4)
  si(4)
  sio(4)
  sis(4)
  sk(4)
  skey(4)
  sl(4)
  smapi(4)
  smb(4)
  smbus(4)
  smp(4)
  sn(4)
  snc(4)
  snd(4)
  snd_ad1816(4)
  snd_als4000(4)
  snd_cmi(4)
  snd_cs4281(4)
  snd_csa(4)
  snd_ds1(4)
  snd_emu10k1(4)
  snd_es137x(4)
  snd_ess(4)
  snd_fm801(4)
  snd_gusc(4)
  snd_ich(4)
  snd_maestro(4)
  snd_maestro3(4)
  snd_neomagic(4)
  snd_sbc(4)
  snd_solo(4)
  snd_uaudio(4)
  snd_via8233(4)
  snd_via82c686(4)
  snd_vibes(4)
  snp(4)
  sound(4)
  speaker(4)
  spic(4)
  spkr(4)
  splash(4)
  sppp(4)
  sr(4)
  stderr(4)
  stdin(4)
  stdout(4)
  ste(4)
  stf(4)
  stg(4)
  streams(4)
  svr4(4)
  sym(4)
  syncache(4)
  syncer(4)
  syncookies(4)
  syscons(4)
  sysmouse(4)
  tap(4)
  targ(4)
  tcp(4)
  tdfx(4)
  termios(4)
  ti(4)
  tl(4)
  trm(4)
  ttcp(4)
  tty(4)
  tun(4)
  twa(4)
  twe(4)
  tx(4)
  txp(4)
  uart(4)
  ubsa(4)
  ubsec(4)
  ubser(4)
  ubtbcmfw(4)
  ucom(4)
  udav(4)
  udbp(4)
  udp(4)
  ufm(4)
  uftdi(4)
  ugen(4)
  uhci(4)
  uhid(4)
  uhidev(4)
  ukbd(4)
  ulpt(4)
  umass(4)
  umct(4)
  umodem(4)
  ums(4)
  unix(4)
  uplcom(4)
  urio(4)
  usb(4)
  uscanner(4)
  utopia(4)
  uvisor(4)
  uvscom(4)
  vga(4)
  vge(4)
  viapm(4)
  vinum(4)
  vinumdebug(4)
  vlan(4)
  vn(4)
  vpd(4)
  vpo(4)
  vr(4)
  vt(4)
  vx(4)
  watchdog(4)
  wb(4)
  wd(4)
  wdc(4)
  wi(4)
  witness(4)
  wl(4)
  wlan(4)
  worm(4)
  xe(4)
  xl(4)
  xpt(4)
  zero(4)

meteor(4)

NAME

     meteor -- video capture driver interface


DESCRIPTION

     The meteor driver defined a video capture interface.  The meteor driver
     is no longer in the tree, but other devices support this interface so the
     interface portion is documented here.

   Meteor Capture Modes
     The meteor capture driver has three modes of capture operation.

     1.   Conventional read(2) interface.

	  This mode is the easiest and slowest to use.	This mode is great for
	  capturing a single field at little programming cost.

	  In this mode, the user opens the device, sets the capture mode and
	  size (see: METEORSETGEO ioctl(2) call), and uses the read(2) system
	  call to load the data into a buffer.

	  meteor_read.c; read 400x300 RGB24 into a viewable PPM file

	  #include <sys/fcntl.h>
	  #include <machine/ioctl_meteor.h>

	  extern int errno;
	  #define ROWS 300
	  #define COLS 400
	  #define SIZE (ROWS * COLS * 4)
	  main()
	  {
		  struct meteor_geomet geo;
		  char buf[SIZE],b[4],header[16],*p;
		  int i,o,c;

		  if ((i = open("/dev/meteor0", O_RDONLY)) < 0) {
			  printf("open failed: %d\n", errno);
			  exit(1);
		  }
		  /* set up the capture type and size */
		  geo.rows = ROWS;
		  geo.columns = COLS;
		  geo.frames = 1;
		  geo.oformat = METEOR_GEO_RGB24 ;

		  if (ioctl(i, METEORSETGEO, &geo) < 0) {
			  printf("ioctl failed: %d\n", errno);
			  exit(1);
		  }

		  c = METEOR_FMT_NTSC;

		  if (ioctl(i, METEORSFMT, &c) < 0) {
			  printf("ioctl failed: %d\n", errno);
			  exit(1);
		  }

			  printf("read failed %d %d %d\n", c, i, errno);
			  close(i);
			  exit(1);
		  }
		  close(i);

		  if ((o = open("rgb24.ppm", O_WRONLY | O_CREAT, 0644)) < 0) {
			  printf("ppm open failed: %d\n", errno);
			  exit(1);
		  }

		  /* make PPM header and save to file */
		  strcpy(&header[0], "P6 400 300 255 ");
		  header[2] = header[6]  = header[10] = header[14] = '\n';
		  write (o, &header[0], 15);
		  /* save the RGB data to PPM file */
		  for (p = &buf[0]; p < &buf[SIZE]; ) {
			  b[2] = *p++;		  /* blue */
			  b[1] = *p++;		  /* green */
			  b[0] = *p++;		  /* red */
			  *p++; 		  /* NULL byte */
			  write(o,&b[0], 3);	  /* not very efficient */
		  }
		  close(o);
		  exit(0);
	  }

     2.   Memory mapped single capture or unsynchronized continuous capture.

	  The single capture mode is designed for conferencing tools such as
	  nv.  These tools need to control the starting of the image capture
	  and also need several frames a second.  The continuous capture mode
	  is designed for applications that want free-running data.

	  In this mode, the user opens the device, sets the capture mode and
	  size (see: METEORSETGEO ioctl(2) call), mmap(2)s the frame buffer
	  memory into the user process space, and issues either the single-
	  capture or the continuous capture call (see: METEORCAPTUR ioctl(2)
	  call) to load the data into the memory mapped buffer.

	  As explained in the METEORCAPTUR ioctl(2) call, the single frame
	  capture ioctl(2) will block until the capture is complete, the con-
	  tinuous capture will return immediately.

	  meteor_mmap_single_continuous.c

	  #include <sys/types.h>
	  #include <sys/mman.h>
	  #include <sys/fcntl.h>
	  #include <machine/ioctl_meteor.h>

	  extern int errno;
	  #define ROWS 480
	  #define COLS 640
	  #define SIZE (ROWS * COLS * 2)
	  main()
	  {
		  struct meteor_geomet geo;

		  geo.rows = ROWS;
		  geo.columns = COLS;
		  geo.frames = 1;
		  geo.oformat = METEOR_GEO_RGB16 ;

		  if (ioctl(i, METEORSETGEO, &geo) < 0) {
			  printf("ioctl failed: %d\n", errno);
			  exit(1);
		  }

		  c = METEOR_FMT_NTSC;

		  if (ioctl(i, METEORSFMT, &c) < 0) {
			  printf("ioctl failed: %d\n", errno);
			  exit(1);
		  }

		  c = METEOR_INPUT_DEV0;

		  if (ioctl(i, METEORSINPUT, &c) < 0) {
			  printf("ioctl failed: %d\n", errno);
			  exit(1);
		  }

		  mmbuf=(char *)mmap((caddr_t)0, SIZE, PROT_READ,
			  MAP_SHARED, i, (off_t)0);

	  #ifdef SINGLE_MODE
		  /* single frame capture */
		  c = METEOR_CAP_SINGLE ;
		  ioctl(i, METEORCAPTUR, &c);	  /* wait for the frame */

		  /* directly access the frame buffer array data in mmbuf */
	  #else
		  /* continuous frame capture */
		  c = METEOR_CAP_CONTINOUS ;
		  ioctl(i, METEORCAPTUR, &c);	  /* returns immediately */

		  /* directly access the frame buffer array data in mmbuf */

		  c = METEOR_CAP_STOP_CONT ;
		  ioctl(i, METEORCAPTUR, &c);	  /* close will also stop capture */
	  #endif

		  close(i);
		  exit(0);
	  }

     3.   Memory mapped, multi-frame ring buffer synchronize capture.

	  This continuous capture mode is synchronized with the application
	  that processes up to 32 frames.  This gives the advantages of both
	  single and continuous capture modes.

	  The kernel notifies the application of a new data by raising an
	  application defined signal.  The driver also shares a structure with
	  the application that allows them to communicate which frame has been
	  or
		((number_rows * number_columns * pixel_depth + 4095)/4096) *
		4096

	  The shared structure is of type struct meteor_mem.  The two most
	  important fields are called active and num_active_buf.  active is a
	  bitmap of frames written by the kernel.  num_active_bufs is a count
	  of frames marked in the active field.  When a frame is read in by
	  the driver, the num_active_bufs count is tested, if this count is
	  below the threshold of number of active frames (value in
	  meteor_mem's hiwat variable), the bit representing frame number in
	  the buffer is stored in the active variable, the num_active_bufs is
	  incremented, the kernel then raises the specified signal to activate
	  the user application.  The user application's responsibility when
	  getting the signal is to check the active bitmap to determine the
	  lowest active frame, use the data as the application desires, clear
	  the bitmap entry for that frame, and decrement the num_active_bufs.
	  If the threshold of number of active frames (hiwat) has been
	  exceeded, no new frames or signal from the kernel will occur until
	  the num_active_bufs is less than or equal to lowat.

	  The driver loads the frames in a round-robin fashion.  It is
	  expected that the user removes them in the same order.  The driver
	  does not check to see if the frame is already active.

	  The frame_size and number of frames in the buffer are also provided
	  to the meteor_mem structure, but changing these fields in the appli-
	  cation will not change the operation of the driver.

	  In programming for this mode, the user opens the device, sets the
	  geometry, mmap(2)s the data/common control structure, then starts
	  the continuous capture mode.	A special signal catcher is required
	  to process the frames as they are read by the kernel.

	  When specifying the geometry (see: METEORSETGEO ioctl(2) call), it
	  is important that the number of frames is set greater than 1.

	  skeleton_capture_n.c

	  #include <sys/types.h>
	  #include <sys/mman.h>
	  #include <sys/fcntl.h>
	  #include <sys/signal.h>
	  #include <machine/ioctl_meteor.h>

	  int video;  /* made global if you wish to stop capture in signal handler */
	  caddr_t data_frames;
	  struct meteor_mem *common_mem;
	  extern int errno;

	  #define FRAME_MAX

	  void
	  usr2_catcher()
	  {
	  #ifdef SIGNAL_STOP
		  struct meteor_capframe capframe;	  /* for ioctl */
	  #endif
		  common_mem->num_active_bufs--;

		  /* process next frame on next interrupt */
		  sig_cnt = ((sig_cnt+1) % FRAME_MAX);

	  #ifdef SIGNAL_STOP
		  if (some_condition_requiring_stopping) {
			  capframe.command=METEOR_CAP_STOP_FRAMES;

			  if (ioctl(i, METEORCAPFRM, &capframe) < 0) {
				  printf("METEORCAPFRM failed %d\n", errno);
				  exit(1);
			  }
		  }
	  #endif
	  }

	  main()
	  {
		  struct meteor_geomet geo;
		  int height, width, depth, frames, size;
		  struct meteor_capframe capframe;

		  if ((i = open("/dev/meteor0", O_RDONLY)) < 0) {
			  printf("open failed\n");
			  exit(1);
		  }
		  printf("test %d %d\n", errno, i);

		  height = geo.rows = 120;
		  width= geo.columns = 320;
		  frames = geo.frames = FRAME_MAX;
		  depth = 2;	  /* 2 bytes per pixel for RGB*/

		  geo.oformat = METEOR_GEO_RGB16;

		  if (ioctl(i, METEORSETGEO, &geo) < 0) {
			  printf("METEORSETGEO failed %d\n", errno);
			  exit(1);
		  }

		  c = METEOR_FMT_NTSC;

		  if (ioctl(i, METEORSFMT, &c) < 0) {
			  printf("ioctl failed: %d\n", errno);
			  exit(1);
		  }

		  c = METEOR_INPUT_DEV0;

		  if (ioctl(i, METEORSINPUT, &c) < 0) {
			  printf("ioctl failed: %d\n", errno);
			  exit(1);
		  }

		  size = ((width*height*depth*frames+4095)/4096)*4096;
		  /* add one page after data for meteor_mem */
		  signal(SIGUSR2, usr2_catcher);  /* catch new frame message */

		  capframe.command=METEOR_CAP_N_FRAMES;
		  capframe.signal=SIGUSR2;
		  capframe.lowat=12;		  /* must be < hiwat */
		  capframe.hiwat=14;		  /* must be < FRAME_MAX */

						  /* start the sync capture */
		  if (ioctl(i, METEORCAPFRM, &capframe) < 0) {
			  printf("METEORCAPFRM failed %d\n", errno);
			  exit(1);
		  }

		  /* this is the background working area, or you can sleep */

		  /* to stop capture */
		  capframe.command=METEOR_CAP_STOP_FRAMES;

		  if (ioctl(i, METEORCAPFRM, &capframe) < 0) {
			  printf("METEORCAPFRM failed %d\n", errno);
			  exit(1);
		  }
	  }

   Meteor IOCTL Call and Parameters
     The meteor capture driver has ioctl(2) requests for capturing, reading
     card status, for setting and reading the geometry, and for setting and
     reading the attributes.

     IT IS VERY IMPORTANT TO CHECK FOR ERRORS ON THESE RETURNING IOCTLs.
     Errors indicate that something is very wrong with the ioctl(2) and the
     application should not attempt to proceed further with capturing.	The
     meteor capture driver still makes attempts to stop the next capture step
     if an error occurred in a previous step but was ignored by the applica-
     tion programmer.

     1.   ioctl(2) requests METEORSETGEO and METEORGETGEO

	  METEORSETGEO and METEORGETGEO are used to set and read the input
	  size, input device, and output format for frame capture.

	  These ioctl(2) routines use the meteor_geomet structure that has the
	  following entries:

	  rows	   number of rows (lines high) in output image

	  columns  number of pixels in a row (width) in output image

	  frames   number of frames in buffer.	Should be 1, unless using the
		   multi-framed synchronous capture mode (METEORCAPFRM) which
		   REQUIRES frames to be larger than 1.

		   Note: if rows, columns or frames is not changed, then the
		   existing values are used.  The system defaults is
		   640x480x1.

	  oformat  you may choose one of the following output format:
					  mat: u0 y0 v0 y1 u1 y2 v1 y3 ...)

		   METEOR_GEO_YUV_PLANER  (4-2-2 YUV 16 bits planer format:
					  rows * columns bytes of y rows *
					  column / 4 bytes of even u rows *
					  column / 4 bytes of even v rows *
					  column / 4 bytes of odd u rows *
					  column / 4 bytes of odd v)

	  The METEORSETGEO ioctl(2) will fail if more than one entry from a
	  category is selected.  It is highly recommended that a METEORSETGEO
	  is done before capturing data because you cannot guarantee the ini-
	  tial mode the card.

	  The METEORSETGEO will also attempt to reallocate a new contiguous
	  kernel buffer if the new geometry exceeds the old geometry.  On
	  other hand, if the new geometry will fit in the existing buffer, the
	  existing buffer is used.

	  If METEORSETGEO fails the ioctl(2) will return a value of -1 and the
	  external variable errno will be set to:

	  [EINVAL]	     invalid meteor_geomet structure pointer, rows,
			     columns, frames were invalid.

	  [ENOMEM]	     could not allocate the contiguous block.

     2.   ioctl(2) requests METEORSFMT and METEORGFMT

	  METEORSFMT and METEORGFMT are used to set and read the camera input
	  standard format.

	  Possible formats are:

	  METEOR_FMT_NTSC      NTSC (default mode)
	  METEOR_FMT_PAL       PAL
	  METEOR_FMT_SECAM     SECAM
	  METEOR_FMT_AUTOMODE  Autodetect.

     3.   ioctl(2) requests METEORSINPUT and METEORGINPUT

	  METEORSINPUT and METEORGINPUT are used to set and read the camera
	  input device.  Using the DB9 connector on the Meteor card, 4 input
	  devices can be connected and an input camera can be selected with
	  this ioctl(2).

	  Possible formats are:

	  METEOR_INPUT_DEV0	   (default if none specified)
	  METEOR_INPUT_DEV_RCA	   (same as METEOR_INPUT_DEV0)
	  METEOR_INPUT_DEV1
	  METEOR_INPUT_DEV2
	  METEOR_INPUT_DEV_SVIDEO  (same as METEOR_INPUT_DEV2)

     4.   ioctl(2) request METEORSTATUS

	  METEORSTATUS is used to read the status of the Meteor capture card
	  and returns the following information:
				   1 = odd field detected.

	  METEOR_STATUS_SVP	   VRAM Port state:
				   0 = inputs HFL and INCADDR inactive.
				   1 = inputs HFL and INCADDR active.

	  METEOR_STATUS_STTC	   0 = TV horizontal time constant (slow).
				   1 = VCR horizontal time constant (fast).

	  METEOR_STATUS_HCLK	   0 = Horizontal Phase Lock Loop locked.
				   1 = Horizontal Phase Lock Loop unlocked.

	  METEOR_STATUS_FIDT	   0 = 50 Hz Field detected.
				   1 = 60 Hz Field detected.

	  METEOR_STATUS_ALTD	   0 = no line alternating color burst
				       detected.
				   1 = line alternating color burst detected
				       (PAL/SECAM).

	  METEOR_STATUS_CODE	   0 = no color information detected.
				   1 = color information detected.

     5.   ioctl(2) request METEORCAPTUR

	  METEORCAPTUR is used to single frame capture or unsynchronized con-
	  tinuous capture.

	  The single frame capture ioctl(2) request will return only after a
	  frame has been captured and transfered to the frame buffer.

	  The unsynchronized continuous capture will return immediately and
	  data is directly deposited into the buffer when it is available.
	  Since this is unsynchronized, it is possible the data is being writ-
	  ten by the kernel while being read by the application.

	  These ioctl(2) routines use the following settings:

	  METEOR_CAP_SINGLE	capture one frame
	  METEOR_CAP_CONTINOUS	unsynchronized continuous capture
	  METEOR_CAP_STOP_CONT	stop the unsynchronized continuous capture

	  If METEORCAPTUR fails the ioctl(2) will return a value of -1 and the
	  external variable errno will be set to:

	  [EINVAL]	     invalid capture command value

	  [ENXIO]	     there is not internal buffer to hold the frame.
			     This indicates the previous set geometry ioctl(2)
			     failed.

	  [EIO] 	     card is already capturing.

     6.   ioctl(2) request METEORCAPFRM

	  METEORCAPFRM is used for synchronous capture of multiple frames.

	  This ioctl(2) routine uses the meteor_capture structure that has the
					   variables in the structure as
					   inputs

	  signal   signal to send to application when a new frame has been
		   captured.  This signal will only be raised if the captured
		   frame is saved.

	  lowat    see below

	  hiwat    see below

	  When a new frame is completed, the driver checks the current unread
	  frame count stored in shared variable (the shared variable is stored
	  in the meteor_mem structure) num_active_buf; if the count is larger
	  than hiwat, the driver will not store any new frames and will not
	  send capture signal to the user application until the num_active_buf
	  is lower than lowat.

	  If METEORCAPFRM fails the ioctl(2) will return a value of -1 and the
	  external variable errno will be set to:

	  [EINVAL]	     invalid meteor_geomet structure pointer or bad
			     command.

	  [ENXIO]	     there is not internal buffer to hold the frame.
			     This indicates the previous set geometry ioctl(2)
			     failed.

	  [EIO] 	     card is already capturing.

     7.   ioctl(2) requests METEORSCHCV and METEORGCHCV

	  METEORSCHCV and METEORGCHCV are used to set and get the chrominance
	  gain control and effects the UV output amplitude.

	  If METEORSCHCV or METEORGCHCV fails the ioctl(2) will return a value
	  of -1 and the external variable errno will be set to:

	  [EINVAL]	     invalid unsigned char pointer.

     8.   ioctl(2) requests METEORGHUE and METEORSHUE

	  METEORGHUE and METEORSHUE are used to get and set the hue.  The
	  signed character has legal values are from +127 which represent
	  +178.6 degrees to -128 which represents -180 degrees.

	  If METEORGHUE or METEORSHUE fails the ioctl(2) will return a value
	  of -1 and the external variable errno will be set to:

	  [EINVAL]	     invalid signed char pointer.

     9.   ioctl(2) requests METEORSCOUNT and METEORGCOUNT

	  METEORGCOUNT is used to get the count of frame errors, DMA errors
	  and count of the number of frames captured that have occurred since
	  the device was opened.  METEORSCOUNT can be used to reinitialize the
	  counters.


	  If METEORSCOUNT or METEORGCOUNT fails the ioctl(2) will return a
	  value of -1 and the external variable errno will be set to:

	  [EINVAL]	     invalid meteor_counts structure pointer.


BUGS

     The meteor driver no longer works at all.


AUTHORS

     Jim Lowe <james@miller.cs.uwm.edu>,
     Mark Tinguely <tinguely@plains.nodak.edu>

FreeBSD 5.4			August 15, 1995 		   FreeBSD 5.4

SPONSORED LINKS




Man(1) output converted with man2html , sed , awk