Further to the discussions that have been going on earlier about OpenGL
performance, it did another experiment running a couple of simple fades and
dissolves.  With X11-Xv, I was getting around 25 fps (give or take).  With
X11-GL and effect was being reduced to about 8, and this appeared on the
terminal screen.

________________________________________________________________________________

FreezeFrameMain::process_buffer 1 334
Playback3D::print_error:
uniform sampler2D tex;
uniform float h_offset;
uniform float s_offset;
uniform float v_offset;
void main000()
{
       vec4 pixel = texture2D(tex, gl_TexCoord[0].st);
{
float r, g, b;
float h, s, v;
float min, max, delta;
float f, p, q, t;
r = pixel.r;
g = pixel.g;
b = pixel.b;
min = ((r < g) ? r : g) < b ? ((r < g) ? r : g) : b;
max = ((r > g) ? r : g) > b ? ((r > g) ? r : g) : b;
v = max;
delta = max - min;
if(max != 0.0 && delta != 0.0)
{
   s = delta / max;
       if(r == max)
       h = (g - b) / delta;
       else
       if(g == max)
       h = 2.0 + (b - r) / delta;
       else
       h = 4.0 + (r - g) / delta;

       h *= 60.0;
       if(h < 0.0)
       h += 360.0;
}
else
{
   s = 0.0;
   h = -1.0;
}
pixel.r = h;
pixel.g = s;
pixel.b = v;
}
       pixel.r += h_offset;
       pixel.g *= s_offset;
       pixel.b *= v_offset;
       if(pixel.r >= 360.0) pixel.r -= 360.0;
       if(pixel.r < 0.0) pixel.r += 360.0;
{
int i;
float r, g, b;
float h, s, v;
float min, max, delta;
float f, p, q, t;
h = pixel.r;
s = pixel.g;
v = pixel.b;
if(s == 0.0)
{
   r = g = b = v;
}
else
{
       h /= 60.0;
       i = int(h);
       f = h - float(i);
       p = v * (1.0 - s);
       q = v * (1.0 - s * f);
       t = v * (1.0 - s * (1.0 - f));

       if(i == 0)
       {
               r = v;
               g = t;
               b = p;
   }
       else
       if(i == 1)
       {
               r = q;
               g = v;
               b = p;
   }
       else
       if(i == 2)
       {
               r = p;
               g = v;
               b = t;
  }
       else
       if(i == 3)
       {
               r = p;
               g = q;
               b = v;
  }
       else
       if(i == 4)
       {
               r = t;
               g = p;
               b = v;
   }
       else
       if(i == 5)
       {
               r = v;
               g = p;
               b = q;
       }
}
pixel.r = r;
pixel.g = g;
pixel.b = b;
}
       gl_FragColor = pixel;
}

void main()
{
       main000();
}

Fragment info
-------------
(51) : warning C7050: "b.1-0000" might be used before being initialized
(51) : warning C7050: "g.1-0000" might be used before being initialized
(51) : warning C7050: "r.1-0000" might be used before being initialized

FreezeFrameMain::process_buffer 1 334

----------------------------------------------------------------------------------------------------------------------------------------

All offers of insight wisdom gratefully accepted.

Ciao,

marks


On 5/1/07, mark stavar <[EMAIL PROTECTED]> wrote:

Thanks Graham,

I would love to get the FPS you are talking about here.

I am not really clued up on such things.  glxgears reports around about
2800 fps. If anyone has any clues as to how I might check or tune things,
I'm all ears -- which makes me look kind of funny :)

Ciao,

marks

On 5/1/07, Graham Evans <[EMAIL PROTECTED]> wrote:
>
> mark stavar wrote:
> > I am getting the same results -- my playback is faster and smoother
> > with X11-Xv than with OpenGL.  Now mine is probably not a hig-end
> > graphics card (and a little dated now) but it supports OpenGL 2.0.  A
> > tad disappointing :-(
> >
> Hi mark
>
> Like Bruce you probably have a problem of some sort.  I just tried out
> the open gl video driver (Preferences>Video Out>Video Driver>OpenGL) and
> got 30 fps for the following effects chain playing in Open GL:
> camera z enlarge 2.2 (bicubic, gamma (no auto no histrogram), rgd and
> chromakey hsv)
>
> only 4 fps playing in X11-XV
>
> I also noticed that no restart is neccessary to swap video drivers just
> press stop and play.
>
> My video was H.264 video in a mov container and had sound (alsa driver).
>
> I have a pretty good setup with lots of memory but if your opengl is
> working properly you should be seeing a big contrast with the x11-xv
> driver.
>
> Graham
>
> _______________________________________________
> Cinelerra mailing list
> [email protected]
> https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
>



--
Mark Stavar

Swan Dancer Productions

Email:  [EMAIL PROTECTED]
Mobile: 0410 638 671

http://www.the-writers-retreat.com/




--
Mark Stavar

Swan Dancer Productions

Email:  [EMAIL PROTECTED]
Mobile: 0410 638 671

http://www.the-writers-retreat.com/

Reply via email to