deinterlace: Add some useful debug logging

This commit is contained in:
Robert Swain 2012-09-25 10:43:28 +02:00
parent 33dd81569f
commit 03e5376827

View 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)) {