deinterlace: Add some useful debug logging
authorRobert Swain <robert.swain@collabora.co.uk>
Tue, 25 Sep 2012 08:43:28 +0000 (10:43 +0200)
committerRobert Swain <robert.swain@collabora.co.uk>
Tue, 25 Sep 2012 15:05:37 +0000 (17:05 +0200)
gst/deinterlace/gstdeinterlace.c

index ea05823..60c9bdb 100644 (file)
@@ -1439,6 +1439,15 @@ gst_deinterlace_get_pattern_lock (GstDeinterlace * self, gboolean * flush_one)
   self->output_count = 0;
   self->pattern_lock = TRUE;
 
+  for (i = 0; i < telecine_patterns[pattern].length; i++) {
+    gint state_idx =
+        self->low_latency ? (self->history_count - 1) >> 1 : self->state_count -
+        1;
+    state_idx -= i;
+    GST_LOG_OBJECT (self, "buf[%d] %s", i,
+        STATE_TO_STRING (self->buf_states[state_idx].state));
+  }
+
   /* check for the case that the first field of the pattern is an orphan */
   if (pattern > 1
       && telecine_patterns[pattern].states[phase] & (GST_ONE | GST_INT)) {