Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4358 Serge 1
2
3
4
  
5
  Gallium Post-processing
6
  
7
8
9
 
10
11
  

The Mesa 3D Graphics Library

12
13
 
14
15
16
 
17

Gallium Post-processing

18
 
19

20
The Gallium drivers support user-defined image post-processing.
21
At the end of drawing a frame a post-processing filter can be applied to
22
the rendered image.
23
Example filters include morphological antialiasing and cell shading.
24

25
 
26

27
The filters can be toggled per-app via driconf, or per-session via the
28
corresponding environment variables.
29

30
 
31

32
Multiple filters can be used together.
33

34
 
35
 
36

PP environment variables

37
 
38
    39
  • PP_DEBUG - If defined debug information will be printed to stderr.
  • 40
    41
     
    42

    Current filters

    43
     
    44
      45
    • pp_nored, pp_nogreen, pp_noblue - set to 1 to remove the corresponding color channel.
    • 46
      These are basic filters for easy testing of the PP queue.
      47
    • pp_jimenezmlaa, pp_jimenezmlaa_color -
    • 48
      Jimenez's MLAA
      49
      is a morphological antialiasing filter.
      50
      The two versions use depth and color data, respectively.
      51
      Which works better depends on the app - depth will not blur text, but it will
      52
      miss transparent textures for example.
      53
      Set to a number from 2 to 32, roughly corresponding to quality.
      54
      Numbers higher than 8 see minimizing gains.
      55
    • pp_celshade - set to 1 to enable cell shading (a more complex color filter).
    • 56
      57
       
      58
       
      59

      60

      61
       
      62
      63
      64