head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RELEASE:1.1.1.2
	netbsd-11-0-RC7:1.1.1.2
	netbsd-11-0-RC6:1.1.1.2
	netbsd-11-0-RC5:1.1.1.2
	netbsd-11-0-RC4:1.1.1.2
	netbsd-11-0-RC3:1.1.1.2
	netbsd-11-0-RC2:1.1.1.2
	netbsd-11-0-RC1:1.1.1.2
	netbsd-11:1.1.1.2.0.22
	netbsd-11-base:1.1.1.2
	libXv-1-0-13:1.1.1.2
	netbsd-10-1-RELEASE:1.1.1.2
	netbsd-8-3-RELEASE:1.1.1.2
	netbsd-9-4-RELEASE:1.1.1.2
	netbsd-10-0-RELEASE:1.1.1.2
	netbsd-10-0-RC6:1.1.1.2
	netbsd-10-0-RC5:1.1.1.2
	netbsd-10-0-RC4:1.1.1.2
	netbsd-10-0-RC3:1.1.1.2
	netbsd-10-0-RC2:1.1.1.2
	netbsd-10-0-RC1:1.1.1.2
	libXv-1-0-12:1.1.1.2
	netbsd-10:1.1.1.2.0.20
	netbsd-10-base:1.1.1.2
	netbsd-9-3-RELEASE:1.1.1.2
	netbsd-9-2-RELEASE:1.1.1.2
	netbsd-9-1-RELEASE:1.1.1.2
	netbsd-8-2-RELEASE:1.1.1.2
	netbsd-9-0-RELEASE:1.1.1.2
	netbsd-9-0-RC2:1.1.1.2
	netbsd-9-0-RC1:1.1.1.2
	netbsd-9:1.1.1.2.0.18
	netbsd-9-base:1.1.1.2
	netbsd-8-1-RELEASE:1.1.1.2
	netbsd-8-1-RC1:1.1.1.2
	netbsd-7-2-RELEASE:1.1.1.2
	netbsd-8-0-RELEASE:1.1.1.2
	netbsd-8-0-RC2:1.1.1.2
	netbsd-8-0-RC1:1.1.1.2
	netbsd-7-1-2-RELEASE:1.1.1.2
	netbsd-7-1-1-RELEASE:1.1.1.2
	netbsd-8:1.1.1.2.0.16
	netbsd-8-base:1.1.1.2
	netbsd-7-1:1.1.1.2.0.14
	netbsd-7-1-RELEASE:1.1.1.2
	netbsd-7-1-RC2:1.1.1.2
	netbsd-7-1-RC1:1.1.1.2
	netbsd-7-0-2-RELEASE:1.1.1.2
	libXv-1-0-11:1.1.1.2
	netbsd-7-0-1-RELEASE:1.1.1.2
	netbsd-7-0:1.1.1.2.0.12
	netbsd-7-0-RELEASE:1.1.1.2
	netbsd-7-0-RC3:1.1.1.2
	netbsd-7-0-RC2:1.1.1.2
	netbsd-7-0-RC1:1.1.1.2
	netbsd-5-2-3-RELEASE:1.1.1.1
	netbsd-5-1-5-RELEASE:1.1.1.1
	netbsd-6-0-6-RELEASE:1.1.1.2
	netbsd-6-1-5-RELEASE:1.1.1.2
	netbsd-7:1.1.1.2.0.10
	netbsd-7-base:1.1.1.2
	netbsd-6-1-4-RELEASE:1.1.1.2
	netbsd-6-0-5-RELEASE:1.1.1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.2
	libXv-1-0-10:1.1.1.2
	riastradh-drm2:1.1.1.2.0.8
	riastradh-drm2-base:1.1.1.2
	netbsd-6-1-3-RELEASE:1.1.1.2
	netbsd-6-0-4-RELEASE:1.1.1.2
	netbsd-5-2-2-RELEASE:1.1.1.1
	netbsd-5-1-4-RELEASE:1.1.1.1
	netbsd-6-1-2-RELEASE:1.1.1.2
	netbsd-6-0-3-RELEASE:1.1.1.2
	netbsd-5-2-1-RELEASE:1.1.1.1
	netbsd-5-1-3-RELEASE:1.1.1.1
	netbsd-6-1-1-RELEASE:1.1.1.2
	libXv-1-0-8:1.1.1.2
	netbsd-6-1:1.1.1.2.0.6
	netbsd-6-0-2-RELEASE:1.1.1.2
	netbsd-6-1-RELEASE:1.1.1.2
	netbsd-6-1-RC4:1.1.1.2
	netbsd-6-1-RC3:1.1.1.2
	netbsd-6-1-RC2:1.1.1.2
	netbsd-6-1-RC1:1.1.1.2
	netbsd-5-2:1.1.1.1.0.8
	netbsd-6-0-1-RELEASE:1.1.1.2
	netbsd-5-2-RELEASE:1.1.1.1
	netbsd-5-2-RC1:1.1.1.1
	netbsd-6-0:1.1.1.2.0.4
	netbsd-6-0-RELEASE:1.1.1.2
	netbsd-6-0-RC2:1.1.1.2
	netbsd-6-0-RC1:1.1.1.2
	netbsd-6:1.1.1.2.0.2
	netbsd-6-base:1.1.1.2
	netbsd-5-1-2-RELEASE:1.1.1.1
	netbsd-5-1-1-RELEASE:1.1.1.1
	libXv-1-0-6:1.1.1.2
	netbsd-5-1:1.1.1.1.0.6
	netbsd-5-1-RELEASE:1.1.1.1
	netbsd-5-1-RC4:1.1.1.1
	netbsd-5-1-RC3:1.1.1.1
	netbsd-5-1-RC2:1.1.1.1
	netbsd-5-1-RC1:1.1.1.1
	netbsd-5-0-2-RELEASE:1.1.1.1
	libXv-1-0-5:1.1.1.2
	netbsd-5-0-1-RELEASE:1.1.1.1
	netbsd-5-0:1.1.1.1.0.4
	netbsd-5-0-RELEASE:1.1.1.1
	netbsd-5-0-RC4:1.1.1.1
	netbsd-5-0-RC3:1.1.1.1
	netbsd-5-0-RC2:1.1.1.1
	netbsd-5-0-RC1:1.1.1.1
	netbsd-5:1.1.1.1.0.2
	netbsd-5-base:1.1.1.1
	libXv-1-0-4:1.1.1.1
	xorg:1.1.1;
locks; strict;
comment	@.\" @;


1.1
date	2008.07.30.02.57.12;	author mrg;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2008.07.30.02.57.12;	author mrg;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2009.11.08.10.10.06;	author mrg;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@.TH Xv __libmansuffix__ __vendorversion__
.\"
.SH Name
Xv \- X Window System video extension
.SH Description
The Xv extension provides support for video adaptors attached to an X
display.  It takes the approach that a display may have one or more
video adaptors, each of which has one or more ports through which
independent video streams pass.  
.PP
An adaptor may be able to display video in a drawable, capture video
from a drawable, or both.  It translates between video encoding (NTSC,
PAL, SECAM, etc...) and drawable format (depth and visual-id pair). An
adaptor may support multiple video encodings and/or multiple drawable
formats.
.PP
Clients use Xv(__libmansuffix__) to gain access and manage sharing of a display's
video resources.  Typically, a client will use XvQueryExtension(__libmansuffix__) to
determine the status of the extension, XvQueryAdaptors(__libmansuffix__) to get a
description of what video adaptors exist, and XvQueryEncodings(__libmansuffix__) to
get a description of what video encodings an adaptor supports.
.PP
Once a client has determined what video resources are available, it is
free to put video into a drawable or get video from a drawable,
according the capabilities supported.  Clients can select to receive
events when video activity changes in a drawable and when port
attributes have changed.
.SH Summary of Library Functions
The following is a summary of Xv library functions:
.sp 1l
XvGetPortAttribute(__libmansuffix__) \- return current port attribute value
.sp 1l
XvGetStill(__libmansuffix__) \- capture a single frame of video from a drawable
.sp 1l
XvGetVideo(__libmansuffix__) \- capture video from a drawable
.sp 1l
XvGrabPort(__libmansuffix__) \- lock port for exclusive use by client
.sp 1l
XvPortNotify(__libmansuffix__) \- event generated when port attributes change
.sp 1l
XvPutStill(__libmansuffix__) \- write a single frame of video to a drawable
.sp 1l
XvPutVideo(__libmansuffix__) \- write video into a drawable
.sp 1l
XvQueryAdaptors(__libmansuffix__) \- return adaptor information for a screen
.sp 1l
XvQueryBestSize(__libmansuffix__) \- determine the optimum drawable region size
.sp 1l
XvQueryEncodings(__libmansuffix__) \- return list of encodings for an adaptor
.sp 1l
XvQueryExtension(__libmansuffix__) \- return version and revision of extension
.sp 1l
XvSelectPortNotify(__libmansuffix__) \- enable or disable XvPortNotify events
.sp 1l
XvSelectVideoNotify(__libmansuffix__) \- enable or disable XvVideoNotify events
.sp 1l
XvSetPortAttribute(__libmansuffix__) \- set an attribute for a port 
.sp 1l
XvStopVideo(__libmansuffix__) \- stop active video 
.sp 1l
XvUngrabPort(__libmansuffix__) \- release a grabbed port
.sp 1l
XvVideoNotify(__libmansuffix__) \- event generated for video processing
.sp 1l
.PP
Each of these functions is described in its own Xv man page.
.br

@


1.1.1.1
log
@initial import of libXv-1.0.4
@
text
@@


1.1.1.2
log
@initial import of libXv-1.0.5
@
text
@d1 1
a1 1
.TH Xv __libmansuffix__ __vendorversion__ "libXv Functions"
d3 1
a3 1
.SH NAME
d5 5
a9 5
.SH DESCRIPTION
The X Video Extension (Xv) extension provides support for video
adaptors attached to an X display.  It takes the approach that a
display may have one or more video adaptors, each of which has one or
more ports through which independent video streams pass.
d17 5
a21 10
Clients use
.BR Xv (__libmansuffix__)
to gain access and manage sharing of a display's
video resources.  Typically, a client will use
.BR XvQueryExtension (__libmansuffix__)
to determine the status of the extension,
.BR XvQueryAdaptors (__libmansuffix__)
to get a description of what video adaptors exist, and
.BR XvQueryEncodings (__libmansuffix__)
to get a description of what video encodings an adaptor supports.
d28 2
a29 39
.PP
The Xv protocol version 2.2 and later is extended to
support client images in alternate colorspaces (XvImages).
Xv adaptors which are capable of displaying XvImages will have
the XvImageMask field set in the type field of the XvAdaptorInfo.
XvImage formats supported by the port may be queried with
.BR XvListImageFormats (__libmansuffix__).
XvImages may be created with the help of
.BR XvCreateImage (__libmansuffix__)
or
.BR XvShmCreateImage (__libmansuffix__);
XvImages may be displayed with
.BR XvPutImage (__libmansuffix__)
or
.BR XvShmPutImage (__libmansuffix__).
The Port attributes of the port specified in the Xv(Shm)PutImage
command will be valid for the image operation when applicable.
There will be a port encoding with the name "XV_IMAGE".  The width and height
of that encoding will indicate the maximum source image size.
.SH SUMMARY OF LIBRARY FUNCTIONS
The following is a summary of Xv library functions and events:
.sp 1l
.BR XvCreateImage (__libmansuffix__)
\- create an XvImage
.sp 1l
.BR XvGetPortAttribute (__libmansuffix__)
\- return current port attribute value
.sp 1l
.BR XvGetStill (__libmansuffix__)
\- capture a single frame of video from a drawable
.sp 1l
.BR XvGetVideo (__libmansuffix__)
\- capture video from a drawable
.sp 1l
.BR XvGrabPort (__libmansuffix__)
\- lock port for exclusive use by client
.sp 1l
.BR XvListImageFormats (__libmansuffix__)
\- return list of image formats for a port
d31 1
a31 2
.BR XvPortNotify (__libmansuffix__)
\- event generated when port attributes change
d33 1
a33 2
.BR XvPutImage (__libmansuffix__)
\- write a XvImage to a drawable
d35 1
a35 2
.BR XvPutStill (__libmansuffix__)
\- write a single frame of video to a drawable
d37 1
a37 2
.BR XvPutVideo (__libmansuffix__)
\- write video into a drawable
d39 1
a39 2
.BR XvQueryAdaptors (__libmansuffix__)
\- return adaptor information for a screen
d41 1
a41 2
.BR XvQueryBestSize (__libmansuffix__)
\- determine the optimum drawable region size
d43 1
a43 2
.BR XvQueryEncodings (__libmansuffix__)
\- return list of encodings for an adaptor
d45 1
a45 2
.BR XvQueryExtension (__libmansuffix__)
\- return version and revision of extension
d47 1
a47 2
.BR XvQueryPortAttributes (__libmansuffix__)
\- return list of attributes of a port
d49 1
a49 2
.BR XvSelectPortNotify (__libmansuffix__)
\- enable or disable XvPortNotify events
d51 1
a51 2
.BR XvSelectVideoNotify (__libmansuffix__)
\- enable or disable XvVideoNotify events
d53 1
a53 2
.BR XvSetPortAttribute (__libmansuffix__)
\- set an attribute for a port
d55 1
a55 2
.BR XvShmCreateImage (__libmansuffix__)
\- create an XvImage in shared memory
d57 1
a57 2
.BR XvShmPutImage (__libmansuffix__)
\- write a XvImage in shared memory to a drawable
d59 1
a59 2
.BR XvStopVideo (__libmansuffix__)
\- stop active video
d61 1
a61 2
.BR XvUngrabPort (__libmansuffix__)
\- release a grabbed port
d63 1
a63 2
.BR XvVideoNotify (__libmansuffix__)
\- event generated for video processing
d66 3
a68 1
Each of these functions and events is described in its own Xv man page.
@

