File: preferences.lua

package info (click to toggle)
gegl 1%3A0.4.66-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,032 kB
  • sloc: ansic: 241,723; cpp: 4,529; lisp: 3,614; xml: 2,724; python: 1,208; ruby: 1,205; sh: 182; makefile: 35; javascript: 6
file content (123 lines) | stat: -rw-r--r-- 2,757 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

local em = mrg:em()
mrg:set_edge_left(mrg:height() * .2)

mrg:set_style("font-size: 10vh; text-stroke-width: 0.2em; text-stroke-color:rgba(0,0,0,0.4);color:white;background:transparent;");
mrg:print("\n");
mrg:print("Preferences\n");
mrg:set_style("font-size: 6vh");


mrg:text_listen(Mrg.PRESS, function(ev)
  if o.nearest_neighbor ~= 0 then
    o.nearest_neighbor = 0
  else
    o.nearest_neighbor = 1
  end
  ev:stop_propagate()
end)
mrg:print("nearest neighbour")
if o.nearest_neighbor ~= 0 then
  mrg:print(" yes")
else
  mrg:print(" no")
end
mrg:print("\n")
mrg:text_listen_done ()





mrg:text_listen(Mrg.PRESS, function(ev)
  if Gegl.config().mipmap_rendering then
    Gegl.config().mipmap_rendering = false
  else
    Gegl.config().mipmap_rendering = true
  end
  ev:stop_propagate()
end)
mrg:print("mipmap")
if Gegl.config().mipmap_rendering then
  mrg:print(" yes")
else
  mrg:print(" no")
end
mrg:print("\n")
mrg:text_listen_done ()


mrg:text_listen(Mrg.PRESS, function(ev)
  if Gegl.config().use_opencl then
    Gegl.config().use_opencl = false
  ffi.C.argvs_eval("clear")
  else
    Gegl.config().use_opencl = true
  ffi.C.argvs_eval("clear")
  end
  ev:stop_propagate()
end)
mrg:print("OpenCL")
if Gegl.config().use_opencl then
  mrg:print(" yes")
  ffi.C.argvs_eval("clear")
else
  mrg:print(" no")
  ffi.C.argvs_eval("clear")
end
mrg:text_listen_done ()
mrg:print("\n")


mrg:text_listen(Mrg.PRESS, function(ev)
  if o.color_managed_display ~= 0 then
    o.color_managed_display = 0
  else
    o.color_managed_display = 1
  end
  ev:stop_propagate()
end)
mrg:print("use display ICC profile")
if o.color_managed_display ~= 0 then
  mrg:print(" yes")
  ffi.C.argvs_eval("clear")
else
  mrg:print(" no")
  ffi.C.argvs_eval("clear")
end
mrg:text_listen_done ()
mrg:print("\n")


mrg:text_listen(Mrg.PRESS, function(ev)
  if o.frame_cache ~= 0 then
    o.frame_cache = 0
  else
    o.frame_cache = 1
  end
  ev:stop_propagate()
end)
mrg:print("frame caching")
if o.frame_cache ~= 0 then
  mrg:print(" yes")
else
  mrg:print(" no")
end
mrg:print("\n")
mrg:text_listen_done ()


mrg:set_style("font-size: 3vh");

mrg:print("threads: " .. Gegl.config().threads .. "\n")
mrg:print("tile-size: " .. Gegl.config().tile_width .. 'x' .. Gegl.config().tile_height .."\n")
mrg:print("tile-cache-size: " .. (Gegl.config().tile_cache_size / 1024 / 1024) .. 'mb\n')
mrg:print("swap-compression: " .. Gegl.config().swap_compression .. "\n")
mrg:print("swap: " .. Gegl.config().swap .. "\n")
mrg:print("max file backend write queue-size: " .. (Gegl.config().queue_size / 1024/1024 ) .. "mb\n")
mrg:print("chunk-size: " .. (Gegl.config().chunk_size / 1024 / 1024) .. 'mb\n')
mrg:print("application-license: " .. Gegl.config().application_license.. "\n")