From: Paolo Farinelli (paolo++at++sgi.com)
Date: 03/16/2004 19:56:52
Hi JaeYoon,
you can use pfTexture::subload and pfTexture::subloadLevel.
Check out pfTexture man pages for more info.
Your Performer code would look something like this
(make sure you do this in a DRAW process):
tex->subloadLevel ( PFTEX_SOURCE_IMAGE /* source */,
readVideoFrameBuf /* image */,
0, 0, /* xsrc, ysrc */
1024, /* srcwidth */
0, 0, /* xdst, ydst */
1024, 1024, /* xsize, ysize */
PFTEX_LEVEL_BASE /* miplevel */ );
Hope this helps.
Regards,
Paolo
JaeYoon Kim wrote:
> HI
>
> I am interested in puting video stream into perfermer in real-time.
>
> In OpenGL, we use glTextImage2D() to insert rgb data of video stream. ( example source code)
> I think there is simiar function or way in performer, but I am unskilled at performer.
> How to conver this code to performer?
>
> Could you give me any advice ?
> Thanks
>
>
>
> <example OpenGL source code>
>
> glEnable(GL_TEXTURE_2D);
> glBindTexture(GL_TEXTURE_2D, texHandle);
> glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, glInternalFormat,glType, readVideoFrameBuf);
>
>-----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-----------------------------------------------------------------------
>
>
>
>
-- Paolo Farinelli paolo++at++sgi.com Member of Technical Staff, OpenGL Performer 1-650-933-1808 Silicon Graphics 1600 Amphitheatre Pkwy, Mountain View, CA 94043
This archive was generated by hypermail 2b29 : Tue Mar 16 2004 - 19:57:18 PST