Displaying 4 results from an estimated 4 matches for "end_ratio".
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
...b, a);
}
SwfdecGradient *
diff --git a/libswfdec/swfdec_color.c b/libswfdec/swfdec_color.c
index 0d8a8be..7761653 100644
--- a/libswfdec/swfdec_color.c
+++ b/libswfdec/swfdec_color.c
@@ -40,20 +40,20 @@ swfdec_color_apply_morph (SwfdecColor st
return end;
start_ratio = 65535 - ratio;
end_ratio = ratio;
- r = (SWF_COLOR_R (start) * start_ratio + SWF_COLOR_R (end) * end_ratio) / 65535;
- g = (SWF_COLOR_G (start) * start_ratio + SWF_COLOR_G (end) * end_ratio) / 65535;
- b = (SWF_COLOR_B (start) * start_ratio + SWF_COLOR_B (end) * end_ratio) / 65535;
- a = (SWF_COLOR_A (start) * start_ra...
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
...b, a);
}
SwfdecGradient *
diff --git a/libswfdec/swfdec_color.c b/libswfdec/swfdec_color.c
index 0d8a8be..7761653 100644
--- a/libswfdec/swfdec_color.c
+++ b/libswfdec/swfdec_color.c
@@ -40,20 +40,20 @@ swfdec_color_apply_morph (SwfdecColor st
return end;
start_ratio = 65535 - ratio;
end_ratio = ratio;
- r = (SWF_COLOR_R (start) * start_ratio + SWF_COLOR_R (end) * end_ratio) / 65535;
- g = (SWF_COLOR_G (start) * start_ratio + SWF_COLOR_G (end) * end_ratio) / 65535;
- b = (SWF_COLOR_B (start) * start_ratio + SWF_COLOR_B (end) * end_ratio) / 65535;
- a = (SWF_COLOR_A (start) * start_ra...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...color.c
@@ -28,10 +28,10 @@
#include "swfdec_debug.h"
SwfdecColor
-swfdec_color_apply_morph (SwfdecColor start, SwfdecColor end, unsigned int ratio)
+swfdec_color_apply_morph (SwfdecColor start, SwfdecColor end, guint ratio)
{
- unsigned int r, g, b, a;
- unsigned int start_ratio, end_ratio;
+ guint r, g, b, a;
+ guint start_ratio, end_ratio;
g_assert (ratio < 65536);
if (ratio == 0)
diff --git a/libswfdec/swfdec_color.h b/libswfdec/swfdec_color.h
index 878ec66..296311b 100644
--- a/libswfdec/swfdec_color.h
+++ b/libswfdec/swfdec_color.h
@@ -40,7 +40,7 @@ struct swfdec_gr...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...color.c
@@ -28,10 +28,10 @@
#include "swfdec_debug.h"
SwfdecColor
-swfdec_color_apply_morph (SwfdecColor start, SwfdecColor end, unsigned int ratio)
+swfdec_color_apply_morph (SwfdecColor start, SwfdecColor end, guint ratio)
{
- unsigned int r, g, b, a;
- unsigned int start_ratio, end_ratio;
+ guint r, g, b, a;
+ guint start_ratio, end_ratio;
g_assert (ratio < 65536);
if (ratio == 0)
diff --git a/libswfdec/swfdec_color.h b/libswfdec/swfdec_color.h
index 878ec66..296311b 100644
--- a/libswfdec/swfdec_color.h
+++ b/libswfdec/swfdec_color.h
@@ -40,7 +40,7 @@ struct swfdec_gr...