… | |
… | |
333 | } |
333 | } |
334 | OUTPUT: |
334 | OUTPUT: |
335 | RETVAL |
335 | RETVAL |
336 | |
336 | |
337 | GdkPixbuf_noinc * |
337 | GdkPixbuf_noinc * |
338 | p7_to_pb (int w, int h, guchar *src) |
338 | p7_to_pb (int w, int h, SV *src_sv) |
339 | PROTOTYPE: @ |
339 | PROTOTYPE: @ |
340 | CODE: |
340 | CODE: |
341 | { |
341 | { |
342 | int x, y; |
342 | int x, y; |
343 | guchar *dst, *d; |
343 | guchar *dst, *d; |
344 | int dstr; |
344 | int dstr; |
|
|
345 | guchar *src = SvPVbyte_nolen (src_sv); |
345 | |
346 | |
346 | RETVAL = gdk_pixbuf_new (GDK_COLORSPACE_RGB, 0, 8, w, h); |
347 | RETVAL = gdk_pixbuf_new (GDK_COLORSPACE_RGB, 0, 8, w, h); |
347 | dst = gdk_pixbuf_get_pixels (RETVAL); |
348 | dst = gdk_pixbuf_get_pixels (RETVAL); |
348 | dstr = gdk_pixbuf_get_rowstride (RETVAL); |
349 | dstr = gdk_pixbuf_get_rowstride (RETVAL); |
349 | |
350 | |