@@ -413,8 +413,8 @@ pub(crate) fn convolve_column_handler_floating_point<
413413 let weight1 = weights[ 1 ] . as_ ( ) ;
414414 let offset0 = src_stride * bounds_start + v_start_px;
415415 let offset1 = src_stride * ( bounds_start + 1 ) + v_start_px;
416- let src_ptr0 = & src[ offset0..( offset0 + CHANNELS * 4 ) ] ;
417- let src_ptr1 = & src[ offset1..( offset1 + CHANNELS * 4 ) ] ;
416+ let src_ptr0 = & src[ offset0..( offset0 + CHANNELS ) ] ;
417+ let src_ptr1 = & src[ offset1..( offset1 + CHANNELS ) ] ;
418418
419419 sums0 = ( fast_load_color_group_with_offset ! ( src_ptr0, CHANNELS , 0 , J ) * weight0) . mul_add (
420420 fast_load_color_group_with_offset ! ( src_ptr1, CHANNELS , 0 , J ) ,
@@ -428,9 +428,9 @@ pub(crate) fn convolve_column_handler_floating_point<
428428 let offset0 = src_stride * bounds_start + v_start_px;
429429 let offset1 = src_stride * ( bounds_start + 1 ) + v_start_px;
430430 let offset2 = src_stride * ( bounds_start + 2 ) + v_start_px;
431- let src_ptr0 = & src[ offset0..( offset0 + CHANNELS * 4 ) ] ;
432- let src_ptr1 = & src[ offset1..( offset1 + CHANNELS * 4 ) ] ;
433- let src_ptr2 = & src[ offset2..( offset2 + CHANNELS * 4 ) ] ;
431+ let src_ptr0 = & src[ offset0..( offset0 + CHANNELS ) ] ;
432+ let src_ptr1 = & src[ offset1..( offset1 + CHANNELS ) ] ;
433+ let src_ptr2 = & src[ offset2..( offset2 + CHANNELS ) ] ;
434434
435435 sums0 = ( fast_load_color_group_with_offset ! ( src_ptr0, CHANNELS , 0 , J ) * weight0)
436436 . mul_add (
@@ -451,10 +451,10 @@ pub(crate) fn convolve_column_handler_floating_point<
451451 let offset1 = src_stride * ( bounds_start + 1 ) + v_start_px;
452452 let offset2 = src_stride * ( bounds_start + 2 ) + v_start_px;
453453 let offset3 = src_stride * ( bounds_start + 3 ) + v_start_px;
454- let src_ptr0 = & src[ offset0..( offset0 + CHANNELS * 4 ) ] ;
455- let src_ptr1 = & src[ offset1..( offset1 + CHANNELS * 4 ) ] ;
456- let src_ptr2 = & src[ offset2..( offset2 + CHANNELS * 4 ) ] ;
457- let src_ptr3 = & src[ offset3..( offset3 + CHANNELS * 4 ) ] ;
454+ let src_ptr0 = & src[ offset0..( offset0 + CHANNELS ) ] ;
455+ let src_ptr1 = & src[ offset1..( offset1 + CHANNELS ) ] ;
456+ let src_ptr2 = & src[ offset2..( offset2 + CHANNELS ) ] ;
457+ let src_ptr3 = & src[ offset3..( offset3 + CHANNELS ) ] ;
458458
459459 sums0 = ( fast_load_color_group_with_offset ! ( src_ptr0, CHANNELS , 0 , J ) * weight0)
460460 . mul_add (
@@ -483,12 +483,12 @@ pub(crate) fn convolve_column_handler_floating_point<
483483 let offset3 = src_stride * ( bounds_start + 3 ) + v_start_px;
484484 let offset4 = src_stride * ( bounds_start + 4 ) + v_start_px;
485485 let offset5 = src_stride * ( bounds_start + 5 ) + v_start_px;
486- let src_ptr0 = & src[ offset0..( offset0 + CHANNELS * 4 ) ] ;
487- let src_ptr1 = & src[ offset1..( offset1 + CHANNELS * 4 ) ] ;
488- let src_ptr2 = & src[ offset2..( offset2 + CHANNELS * 4 ) ] ;
489- let src_ptr3 = & src[ offset3..( offset3 + CHANNELS * 4 ) ] ;
490- let src_ptr4 = & src[ offset4..( offset4 + CHANNELS * 4 ) ] ;
491- let src_ptr5 = & src[ offset5..( offset5 + CHANNELS * 4 ) ] ;
486+ let src_ptr0 = & src[ offset0..( offset0 + CHANNELS ) ] ;
487+ let src_ptr1 = & src[ offset1..( offset1 + CHANNELS ) ] ;
488+ let src_ptr2 = & src[ offset2..( offset2 + CHANNELS ) ] ;
489+ let src_ptr3 = & src[ offset3..( offset3 + CHANNELS ) ] ;
490+ let src_ptr4 = & src[ offset4..( offset4 + CHANNELS ) ] ;
491+ let src_ptr5 = & src[ offset5..( offset5 + CHANNELS ) ] ;
492492
493493 sums0 = ( fast_load_color_group_with_offset ! ( src_ptr0, CHANNELS , 0 , J ) * weight0)
494494 . mul_add (
0 commit comments