From f1993545cfe81512174d97e8382924049f6a8a97 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 12 Mar 2013 17:47:52 -0700 Subject: [PATCH] combdetect: switch to zebra striping --- gst/ivtc/gstcombdetect.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gst/ivtc/gstcombdetect.c b/gst/ivtc/gstcombdetect.c index 456b6bf116..1b709aaa4b 100644 --- a/gst/ivtc/gstcombdetect.c +++ b/gst/ivtc/gstcombdetect.c @@ -218,6 +218,7 @@ static GstFlowReturn gst_comb_detect_transform_frame (GstVideoFilter * filter, GstVideoFrame * inframe, GstVideoFrame * outframe) { + static int z; int k; int height; int width; @@ -225,6 +226,8 @@ gst_comb_detect_transform_frame (GstVideoFilter * filter, #define GET_LINE(frame,comp,line) (((unsigned char *)(frame)->data[k]) + \ (line) * GST_VIDEO_FRAME_COMP_STRIDE((frame), (comp))) + z++; + for (k = 1; k < 3; k++) { int i; height = GST_VIDEO_FRAME_COMP_HEIGHT (outframe, k); @@ -273,10 +276,10 @@ gst_comb_detect_transform_frame (GstVideoFilter * filter, thisline[i] = 0; } if (thisline[i] > 100) { - dest[i] = 255; + dest[i] = ((i + j + z) & 0x4) ? 235 : 16; score++; } else { - dest[i] = src2[i] / 2; + dest[i] = src2[i]; } } }