5 More Discussions You Might Find Interesting
1. What is on Your Mind?
We have asked UNIX.com users over the years what is their favorite editor and why. Here is the top three answers.
Here is a new YT video on this question:
What Editor Does Everyone Use?
https://youtu.be/gqE8RTZZt9g
Of course, vi was the overwhelming favorite.
Credits:
1080 HD... (3 Replies)
Discussion started by: Neo
3 Replies
2. Shell Programming and Scripting
all,
i've been reading to try and get an abstract idea of the process effeciency of commands , sed, bash, perl, awk, find, grep, etc
which processes will spawn?, fork?, launch subshell?, etc and under what conditions?
how do you know which commands have the faster and better stdio... (2 Replies)
Discussion started by: f77hack
2 Replies
3. Programming
i'm tring to make 2 processes each read from the same file but only one of them read the file.
FILE * fileptr1;
fileptr1 = fopen("file1.txt","rt");
pid2=fork();
while(1)
{
fscanf(fileptr1,"%s",temp1);
if(feof(fileptr1)==0)
{
printf("%i",getpid()); //id of current process ... (6 Replies)
Discussion started by: ddx08
6 Replies
4. UNIX for Advanced & Expert Users
I am trying to figure out why when i have the following code
int main( { printf("0\n"); fork(); printf("1\n"); exit(0);}
and type in the shell
a.out | cat
the output of this program is
0
1
0
1
instead of
0
1
1
does anyone know? (3 Replies)
Discussion started by: Phantom12345
3 Replies
5. UNIX for Advanced & Expert Users
Hey guys,
I'm given this bit of code, but, I'm having some problems executing it with the functions I've defined so far. I'm suppose to define the funtions "parse" and "execute." Parse splits the command in buf into individual arguments. It strips whitespace, replacing those it finds with NULLS... (3 Replies)
Discussion started by: richardspence2
3 Replies
Xv(3) Library Functions Manual Xv(3)
Name
Xv - X Window System video extension
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.
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 draw-
able formats.
Clients use Xv(3) to gain access and manage sharing of a display's video resources. Typically, a client will use XvQueryExtension(3) to
determine the status of the extension, XvQueryAdaptors(3) to get a description of what video adaptors exist, and XvQueryEncodings(3) to get
a description of what video encodings an adaptor supports.
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.
Summary of Library Functions
The following is a summary of Xv library functions:
XvGetPortAttribute(3) - return current port attribute value
XvGetStill(3) - capture a single frame of video from a drawable
XvGetVideo(3) - capture video from a drawable
XvGrabPort(3) - lock port for exclusive use by client
XvPortNotify(3) - event generated when port attributes change
XvPutStill(3) - write a single frame of video to a drawable
XvPutVideo(3) - write video into a drawable
XvQueryAdaptors(3) - return adaptor information for a screen
XvQueryBestSize(3) - determine the optimum drawable region size
XvQueryEncodings(3) - return list of encodings for an adaptor
XvQueryExtension(3) - return version and revision of extension
XvSelectPortNotify(3) - enable or disable XvPortNotify events
XvSelectVideoNotify(3) - enable or disable XvVideoNotify events
XvSetPortAttribute(3) - set an attribute for a port
XvStopVideo(3) - stop active video
XvUngrabPort(3) - release a grabbed port
XvVideoNotify(3) - event generated for video processing
Each of these functions is described in its own Xv man page.
X Version 11 libXv 1.0.4 Xv(3)