summaryrefslogtreecommitdiff
path: root/gst/ivtc
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2013-03-12 17:47:52 -0700
committerDavid Schleef <ds@schleef.org>2013-03-19 16:26:45 -0700
commitf1993545cfe81512174d97e8382924049f6a8a97 (patch)
tree55a86634d5bd45dd5abda685a6585525cc8fa35e /gst/ivtc
parentcac6b949225278227e0439ca261d78800173ca32 (diff)
downloadgstreamer-plugins-bad-f1993545cfe81512174d97e8382924049f6a8a97.tar.gz
combdetect: switch to zebra striping
Diffstat (limited to 'gst/ivtc')
-rw-r--r--gst/ivtc/gstcombdetect.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/ivtc/gstcombdetect.c b/gst/ivtc/gstcombdetect.c
index 456b6bf11..1b709aaa4 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];
}
}
}