search for: diff_pixel

Displaying 3 results from an estimated 3 matches for "diff_pixel".

2008 Jan 08
0
4 commits - test/.gitignore test/image test/Makefile.am test/swfdec_test_function.c test/swfdec_test_image.c test/swfdec_test_image.h test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...*) (buf_a + y * stride); - row_b = (guint32 *) (buf_b + y * stride); - row = (guint32 *) (buf_diff + y * stride); - for (x = 0; x < width; x++) { - /* check if the pixels are the same */ - if (row_a[x] != row_b[x]) { - int channel; - static const unsigned int threshold = 3; - guint32 diff_pixel = 0; - - /* calculate a difference value for all 4 channels */ - for (channel = 0; channel < 4; channel++) { - int value_a = (row_a[x] >> (channel*8)) & 0xff; - int value_b = (row_b[x] >> (channel*8)) & 0xff; - unsigned int diff; - diff = ABS (value_a -...
2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
...*) (buf_a + y * stride); + row_b = (guint32 *) (buf_b + y * stride); + row = (guint32 *) (buf_diff + y * stride); + for (x = 0; x < width; x++) { + /* check if the pixels are the same */ + if (row_a[x] != row_b[x]) { + int channel; + static const unsigned int threshold = 3; + guint32 diff_pixel = 0; + + /* calculate a difference value for all 4 channels */ + for (channel = 0; channel < 4; channel++) { + int value_a = (row_a[x] >> (channel*8)) & 0xff; + int value_b = (row_b[x] >> (channel*8)) & 0xff; + unsigned int diff; + diff = ABS (value_a -...
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
...*) (buf_a + y * stride); + row_b = (guint32 *) (buf_b + y * stride); + row = (guint32 *) (buf_diff + y * stride); + for (x = 0; x < width; x++) { + /* check if the pixels are the same */ + if (row_a[x] != row_b[x]) { + int channel; + static const unsigned int threshold = 3; + guint32 diff_pixel = 0; + + /* calculate a difference value for all 4 channels */ + for (channel = 0; channel < 4; channel++) { + int value_a = (row_a[x] >> (channel*8)) & 0xff; + int value_b = (row_b[x] >> (channel*8)) & 0xff; + unsigned int diff; + diff = ABS (value_a -...