Re: Binding video channels

New Message Reply Date view Thread view Subject view Author view

Gene Koh (gene++at++euphoria.corp.sgi.com)
Mon, 29 Jul 1996 15:21:38 -0700


On Jul 29, 5:06pm, Mark Visconti wrote:
> Subject: Binding video channels
>
> I'm having difficulty running more than 1 pfPipeWindow per pfPipe and
> am curious if I missing something basic.

I've successfully created multiple pipe windows on a single pipe, though not on
your platform.

The code was something like:

pfPipeWindow *pWins[NCHANS];
pfChannel *pChans[NCHANS];

pfPipe *pPipe = pfGetPipe(0);
for (int i = 0; i < NCHANS; i++) {
        pWins[i] = pfNewPWin(pPipe);
        // Other pipe window stuff deleted
        pChans[i] = pfNewChan(pPipe);

        // Create a one-to-one mapping of channels to pipe windows.
        // By default, all channels will be drawn on pWins[0];
        pfAddChan(pWins[i], pChans[i]);
}

Hope that helps.

-- 
gene koh		gene++at++corp.sgi.com		415.933.4230

simplicity patience compassion ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:14 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.