ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CV/CV.xs
(Generate patch)

Comparing CV/CV.xs (file contents):
Revision 1.20 by root, Fri Jul 22 06:14:25 2005 UTC vs.
Revision 1.22 by root, Sun Aug 14 02:25:44 2005 UTC

124 124
125MODULE = Gtk2::CV PACKAGE = Gtk2::CV 125MODULE = Gtk2::CV PACKAGE = Gtk2::CV
126 126
127PROTOTYPES: ENABLE 127PROTOTYPES: ENABLE
128 128
129# missing in Gtk2 perl module
130
131gboolean
132gdk_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
129GdkPixbuf_noinc * 142GdkPixbuf_noinc *
130transpose (GdkPixbuf *pb) 143transpose (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
316GdkPixbuf_noinc * 329GdkPixbuf_noinc *
317p7_to_pb (int w, int h, guchar *src) 330p7_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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines