search for: image_data

Displaying 13 results from an estimated 13 matches for "image_data".

2007 Jan 26
0
libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c
...ha ? CAIRO_FORMAT_ARGB32 : CAIRO_FORMAT_RGB24, + image->width, image->height, image->rowstride); cairo_surface_set_user_data (image->surface, &key, data, g_free); } @@ -220,7 +220,7 @@ swfdec_image_jpeg_load (SwfdecImage *ima jpeg_rgb_decoder_get_image (dec, &image_data, &image->rowstride, NULL, NULL); jpeg_rgb_decoder_free (dec); - swfdec_image_create_surface (image, image_data); + swfdec_image_create_surface (image, image_data, FALSE); SWFDEC_LOG (" width = %d", image->width); SWFDEC_LOG (" height = %d", image-...
2007 Mar 19
1
HOWTO: Multiple file upload with file_column
...; <td><input id="<%= "picture_#{i}_title" %>" name="<%= "picture[#{i}][title]" %>" size="30" type="text" /></td> </tr> <tr> <td class=''Label''><label for="image_data">Image</label></td> <td><input id="<%= "picture_#{i}_image_data_temp" %>" name="<%= "picture[#{i}][image_data_temp]" %>" type="hidden" /> <input id="<%= "picture_#{i}_image_data...
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
..._create_surface (SwfdecImage *image, guint8 *data) { static const cairo_user_data_key_t key; + gboolean has_alpha = swfdec_image_has_alpha (image); g_assert (image->surface == NULL); @@ -204,7 +212,7 @@ swfdec_image_jpeg_load (SwfdecImage *ima jpeg_rgb_decoder_get_image (dec, &image_data, &image->rowstride, NULL, NULL); jpeg_rgb_decoder_free (dec); - swfdec_image_create_surface (image, image_data, FALSE); + swfdec_image_create_surface (image, image_data); SWFDEC_LOG (" width = %d", image->width); SWFDEC_LOG (" height = %d", image-...
2007 Feb 06
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c libswfdec/swfdec_sprite.c test/dump.c
..., a; + unsigned int r, g, b, a; r = swfdec_bits_get_u8 (bits); g = swfdec_bits_get_u8 (bits); diff --cc libswfdec/swfdec_image.c index 23602c4,224e101..53dad98 @@@ -290,18 -288,19 +267,17 @@@ swfdec_image_jpeg3_load (SwfdecImage *image) { JpegRGBDecoder *dec; - unsigned char *image_data; unsigned char *alpha_data; SwfdecBits bits; - int len; + SwfdecBuffer *buffer; int jpeg_length; - bits.buffer = image->raw_data; - bits.ptr = image->raw_data->data; - bits.idx = 0; - bits.end = bits.ptr + image->raw_data->length; - - bits.ptr += 2; +...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...? CAIRO_FORMAT_ARGB32 : CAIRO_FORMAT_RGB24, - image->width, image->height, image->rowstride); - cairo_surface_set_user_data (image->surface, &key, data, - g_free); -} - -static void swfdec_image_jpeg_load (SwfdecImage *image) { JpegRGBDecoder *dec; - unsigned char *image_data; dec = jpeg_rgb_decoder_new (); @@ -217,10 +205,9 @@ swfdec_image_jpeg_load (SwfdecImage *ima return; } swfdec_cached_load (SWFDEC_CACHED (image), 4 * image->width * image->height); - jpeg_rgb_decoder_get_image (dec, &image_data, + jpeg_rgb_decoder_get_image (dec, &amp...
2006 Jan 01
11
Migration db_schema_import always fails.
I have not been able to get DB migrations to work at all in Rails 1.0 for me. On multiple platforms I continually get the same errors. It took me awhile to figure out some initial things, such as Migrations don''t seem to support Enum column types, and doesn''t really support Foreign key relationships (the constraints at least). After changing my DB schema to jive more with the
2005 May 02
0
Wx::StringInputBuffer/Wx::StringOutputBuffer
Hello, wxruby-users. This is two files which wrap wxStringInputStream and wxStringOutputStream for ruby. I need this to implement in-memory image io. ''stringio.rbw'' -- small sample for it. Short usage: stream = Wx::StringInputStream.new image_data image = Wx::Image.new stream stream = Wx::StringOutputStream.new image.save_file stream, ''image/jpeg'' image_data = stream.get_string Installation: just place ''sstream.cpp'' and ''sstream.in'' in ''src'' and add ''sstream.o&...
2007 Jul 24
0
send_data and ie
Has anyone else had trouble using send_data with internet explorer. As usual things were working fine in firefox and safari until I tested in IE :). With the following code I''m seeing an image show up in firefox but the "X" indicating no image found in IE. Any ideas? @image_data = Image.find(:all, :conditions=>{:url => "http://reddit.com"}) @image = @image_data[0].image send_data (@image, :type => "image/jpeg", :filename => "foo.jpg", :disposition => ''inline'') -- Posted vi...
2007 Nov 10
1
3 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h
....c index 7dcb879..bff9fa6 100644 --- a/libswfdec/swfdec_image.c +++ b/libswfdec/swfdec_image.c @@ -33,6 +33,7 @@ #include "swfdec_debug.h" #include "swfdec_swf_decoder.h" +static const cairo_user_data_key_t key; static void merge_alpha (SwfdecImage * image, unsigned char *image_data, unsigned char *alpha); @@ -50,10 +51,7 @@ swfdec_image_unload (SwfdecCached *cached) if (image->surface) { cairo_surface_destroy (image->surface); image->surface = NULL; - } else if (image->data) { - g_free (image->data); } - image->data = NULL; } st...
2007 Jan 18
0
Branch 'interpreter' - 4 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c
..._TYPE_JPEG3; - image->raw_data = swfdec_buffer_ref (bits->buffer); - - bits->ptr += bits->buffer->length - 2; + image->raw_data = swfdec_bits_get_buffer (bits, -1); return SWFDEC_STATUS_OK; } @@ -306,21 +285,20 @@ swfdec_image_jpeg3_load (SwfdecImage *im unsigned char *image_data; unsigned char *alpha_data; SwfdecBits bits; - int len; + SwfdecBuffer *buffer; int jpeg_length; - bits.buffer = image->raw_data; - bits.ptr = image->raw_data->data; - bits.idx = 0; - bits.end = bits.ptr + image->raw_data->length; - - bits.ptr += 2; + swfdec_bits_i...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
..., a; + unsigned int r, g, b, a; r = swfdec_bits_get_u8 (bits); g = swfdec_bits_get_u8 (bits); diff --cc libswfdec/swfdec_image.c index 23602c4,224e101..53dad98 @@@ -290,18 -288,19 +267,17 @@@ swfdec_image_jpeg3_load (SwfdecImage *image) { JpegRGBDecoder *dec; - unsigned char *image_data; unsigned char *alpha_data; SwfdecBits bits; - int len; + SwfdecBuffer *buffer; int jpeg_length; - bits.buffer = image->raw_data; - bits.ptr = image->raw_data->data; - bits.idx = 0; - bits.end = bits.ptr + image->raw_data->length; - - bits.ptr += 2; +...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...fdec_cache_add_handle (image->cache, &image->handle); + if (image->width == 0 || image->height == 0) { + jpeg_rgb_decoder_free (dec); + return; + } + swfdec_cached_load (SWFDEC_CACHED (image), 4 * image->width * image->height); jpeg_rgb_decoder_get_image (dec, &image_data, &image->rowstride, NULL, NULL); jpeg_rgb_decoder_free (dec); @@ -257,9 +260,11 @@ swfdec_image_jpeg2_load (SwfdecImage *im image->raw_data->length - 2); jpeg_rgb_decoder_parse (dec); jpeg_rgb_decoder_get_image_size (dec, &image->width, &image->heig...
2011 Jun 09
1
NFS problem
Hi, I got the same problem as Juergen, My volume is a simple replicated volume with 2 host and GlusterFS 3.2.0 Volume Name: poolsave Type: Replicate Status: Started Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: ylal2950:/soft/gluster-data Brick2: ylal2960:/soft/gluster-data Options Reconfigured: diagnostics.brick-log-level: DEBUG network.ping-timeout: 20 performance.cache-size: 512MB