… | |
… | |
124 | |
124 | |
125 | MODULE = Gtk2::CV PACKAGE = Gtk2::CV |
125 | MODULE = Gtk2::CV PACKAGE = Gtk2::CV |
126 | |
126 | |
127 | PROTOTYPES: ENABLE |
127 | PROTOTYPES: ENABLE |
128 | |
128 | |
|
|
129 | # missing in Gtk2 perl module |
|
|
130 | |
|
|
131 | gboolean |
|
|
132 | gdk_net_wm_supports (GdkAtom property) |
|
|
133 | CODE: |
|
|
134 | #if defined(GDK_WINDOWING_X11) && !defined(GDK_MULTIHEAD_SAFE) |
|
|
135 | RETVAL = gdk_net_wm_supports (property); |
|
|
136 | #else |
|
|
137 | RETVAL = 0; |
|
|
138 | #endif |
|
|
139 | OUTPUT: |
|
|
140 | RETVAL |
|
|
141 | |
129 | GdkPixbuf_noinc * |
142 | GdkPixbuf_noinc * |
130 | transpose (GdkPixbuf *pb) |
143 | transpose (GdkPixbuf *pb) |
131 | CODE: |
144 | CODE: |
132 | { |
145 | { |
133 | int w = gdk_pixbuf_get_width (pb); |
146 | int w = gdk_pixbuf_get_width (pb); |
… | |
… | |
225 | { |
238 | { |
226 | cinfo.dct_method = JDCT_FASTEST; |
239 | cinfo.dct_method = JDCT_FASTEST; |
227 | cinfo.do_fancy_upsampling = FALSE; |
240 | cinfo.do_fancy_upsampling = FALSE; |
228 | |
241 | |
229 | while (cinfo.scale_denom < 8 |
242 | while (cinfo.scale_denom < 8 |
230 | && (cinfo.output_width >> 1) >= IW |
243 | && cinfo.output_width >= IW*4 |
231 | && (cinfo.output_height >> 1) >= IH) |
244 | && cinfo.output_height >= IH*4) |
232 | { |
245 | { |
233 | cinfo.scale_denom <<= 1; |
246 | cinfo.scale_denom <<= 1; |
234 | jpeg_calc_output_dimensions (&cinfo); |
247 | jpeg_calc_output_dimensions (&cinfo); |
235 | } |
248 | } |
236 | } |
249 | } |
… | |
… | |
313 | OUTPUT: |
326 | OUTPUT: |
314 | RETVAL |
327 | RETVAL |
315 | |
328 | |
316 | GdkPixbuf_noinc * |
329 | GdkPixbuf_noinc * |
317 | p7_to_pb (int w, int h, guchar *src) |
330 | p7_to_pb (int w, int h, guchar *src) |
|
|
331 | PROTOTYPE: @ |
318 | CODE: |
332 | CODE: |
319 | { |
333 | { |
320 | int x, y; |
334 | int x, y; |
321 | guchar *dst, *d; |
335 | guchar *dst, *d; |
322 | int dstr; |
336 | int dstr; |