summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_scale_sample.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-04-23 01:22:17 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-04-23 01:22:17 +0000
commit8cca4234c46ebb442fd152aae51044c8aef1a55e (patch)
treed5dc31f4f5e87056b09470902f98ed3d88e13b7d /legacy/evas/src/lib/engines/common/evas_scale_sample.c
parent6282cc0a6d1e767e53b699b6127f7c5fd6ad8efa (diff)
comments for nash
SVN revision: 58837
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_scale_sample.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_scale_sample.c b/legacy/evas/src/lib/engines/common/evas_scale_sample.c
index 68d9e4990d..6feb8e646e 100644
--- a/legacy/evas/src/lib/engines/common/evas_scale_sample.c
+++ b/legacy/evas/src/lib/engines/common/evas_scale_sample.c
@@ -242,6 +242,7 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst,
242 func = evas_common_gfx_func_composite_pixel_mask_span_get(src, dst, dst_clip_w, dc->render_op); 242 func = evas_common_gfx_func_composite_pixel_mask_span_get(src, dst, dst_clip_w, dc->render_op);
243 maskobj = dc->mask.mask; 243 maskobj = dc->mask.mask;
244 mask = maskobj->mask.mask; 244 mask = maskobj->mask.mask;
245/*
245 if (1 || dst_region_w > src_region_w || dst_region_h > src_region_h){ 246 if (1 || dst_region_w > src_region_w || dst_region_h > src_region_h){
246 printf("Mask w/h: %d/%d\n",maskobj->cache_entry.w, 247 printf("Mask w/h: %d/%d\n",maskobj->cache_entry.w,
247 maskobj->cache_entry.h); 248 maskobj->cache_entry.h);
@@ -249,6 +250,7 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst,
249 dst_region_w,src_region_w, 250 dst_region_w,src_region_w,
250 dst_region_h,src_region_h); 251 dst_region_h,src_region_h);
251 } 252 }
253 */
252 } 254 }
253 else if (dc->mul.use) 255 else if (dc->mul.use)
254 func = evas_common_gfx_func_composite_pixel_color_span_get(src, dc->mul.col, dst, dst_clip_w, dc->render_op); 256 func = evas_common_gfx_func_composite_pixel_color_span_get(src, dc->mul.col, dst, dst_clip_w, dc->render_op);
@@ -286,6 +288,13 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst,
286 /* * blend here [clip_w *] ptr -> dst_ptr * */ 288 /* * blend here [clip_w *] ptr -> dst_ptr * */
287 if (mask) 289 if (mask)
288 { 290 {
291 // nash: problem here. normally dst_clip_x == dc->mask.x
292 // but then... at some point they cease to be equal
293 // and thus you add a negative value to mask here
294 // in fact... u simply don't handle the mask being
295 // disjoint from the object. now maybe the test in
296 // expedite has a bug where it moves the mask img
297 // wrongly - but... i can see this code is fragile
289 mask += dst_clip_x - dc->mask.x; 298 mask += dst_clip_x - dc->mask.x;
290 mask += (dst_clip_y - dc->mask.y) * maskobj->cache_entry.w; 299 mask += (dst_clip_y - dc->mask.y) * maskobj->cache_entry.w;
291 } 300 }