Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol authored on 2016/03/09 19:51:20... | ... |
@@ -688,9 +688,9 @@ static void flat(WaveformContext *s, AVFrame *in, AVFrame *out, |
688 | 688 |
target = d0 + x + d0_signed_linesize * c0; |
689 | 689 |
update(target, max, intensity); |
690 | 690 |
target = d1 + x + d1_signed_linesize * (c0 - c1); |
691 |
- update(target, max, 1); |
|
691 |
+ update(target, max, intensity); |
|
692 | 692 |
target = d1 + x + d1_signed_linesize * (c0 + c1); |
693 |
- update(target, max, 1); |
|
693 |
+ update(target, max, intensity); |
|
694 | 694 |
|
695 | 695 |
c0_data += c0_linesize; |
696 | 696 |
c1_data += c1_linesize; |
... | ... |
@@ -721,16 +721,16 @@ static void flat(WaveformContext *s, AVFrame *in, AVFrame *out, |
721 | 721 |
target = d0_data - c0; |
722 | 722 |
update(target, max, intensity); |
723 | 723 |
target = d1_data - (c0 - c1); |
724 |
- update(target, max, 1); |
|
724 |
+ update(target, max, intensity); |
|
725 | 725 |
target = d1_data - (c0 + c1); |
726 |
- update(target, max, 1); |
|
726 |
+ update(target, max, intensity); |
|
727 | 727 |
} else { |
728 | 728 |
target = d0_data + c0; |
729 | 729 |
update(target, max, intensity); |
730 | 730 |
target = d1_data + (c0 - c1); |
731 |
- update(target, max, 1); |
|
731 |
+ update(target, max, intensity); |
|
732 | 732 |
target = d1_data + (c0 + c1); |
733 |
- update(target, max, 1); |
|
733 |
+ update(target, max, intensity); |
|
734 | 734 |
} |
735 | 735 |
} |
736 | 736 |
|
... | ... |
@@ -791,10 +791,10 @@ static void aflat(WaveformContext *s, AVFrame *in, AVFrame *out, |
791 | 791 |
update(target, max, intensity); |
792 | 792 |
|
793 | 793 |
target = d1 + x + d1_signed_linesize * (c0 + c1); |
794 |
- update(target, max, 1); |
|
794 |
+ update(target, max, intensity); |
|
795 | 795 |
|
796 | 796 |
target = d2 + x + d2_signed_linesize * (c0 + c2); |
797 |
- update(target, max, 1); |
|
797 |
+ update(target, max, intensity); |
|
798 | 798 |
|
799 | 799 |
c0_data += c0_linesize; |
800 | 800 |
c1_data += c1_linesize; |
... | ... |
@@ -829,16 +829,16 @@ static void aflat(WaveformContext *s, AVFrame *in, AVFrame *out, |
829 | 829 |
target = d0_data - c0; |
830 | 830 |
update(target, max, intensity); |
831 | 831 |
target = d1_data - (c0 + c1); |
832 |
- update(target, max, 1); |
|
832 |
+ update(target, max, intensity); |
|
833 | 833 |
target = d2_data - (c0 + c2); |
834 |
- update(target, max, 1); |
|
834 |
+ update(target, max, intensity); |
|
835 | 835 |
} else { |
836 | 836 |
target = d0_data + c0; |
837 | 837 |
update(target, max, intensity); |
838 | 838 |
target = d1_data + (c0 + c1); |
839 |
- update(target, max, 1); |
|
839 |
+ update(target, max, intensity); |
|
840 | 840 |
target = d2_data + (c0 + c2); |
841 |
- update(target, max, 1); |
|
841 |
+ update(target, max, intensity); |
|
842 | 842 |
} |
843 | 843 |
} |
844 | 844 |
|