Where to find information about customtex, customprog and fragment programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



On Fri, Apr 09, 2010 at 05:03:55PM +0800, Paul Jowett wrote:
> Does anyone know where I can get details about the parameters that
> MPlayer passes to Fragment Programs?  For example:

Sorry, no I never documented it, help documenting it is welcome.

>  1) the texture[] arrays don't appear to have any definition
> anywhere.  The ARB FRAGMENT Spec (link below) has a very brief
> definition in a comment in an example script at the end of the spec,
> but it's not enough info.

The texture[] array reference the textures bound to the texture units.
See e.g the MultiTexCoord OpenGL function.

>  2) what does "TEX" command actually do?  It doesn't seem to map to
> any set of OpenGL commands.

That is documented in the spec you mentioned above, e.g. in section 3.11.4

>  3) where is the information from a customtex file made available in
> the Fragment Program?  I expected texture[0] or perhaps
> fragment.textcoord[0] but example fragments like "edgedetect.fp" use
> both these arrays and don't get passed a customtex file.

No, texture[0], texture[1] and texture[2] are already in use for the
video data (Y, U and V component respectively), the custom texture
is in texture[3].


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux