Skip to content

Instantly share code, notes, and snippets.

@zenoalbisser
Created September 11, 2013 12:54
Show Gist options
  • Save zenoalbisser/6523175 to your computer and use it in GitHub Desktop.
Save zenoalbisser/6523175 to your computer and use it in GitHub Desktop.
diff --git a/me.c b/me.c
index 8c7d49f..bd9d3c0 100644
--- a/me.c
+++ b/me.c
@@ -64,8 +64,11 @@ static void me_block_8x8(struct c63_common *cm, int mb_x, int mb_y,
/* Here, there should be a threshold on SAD that checks if the motion vector
is cheaper than intraprediction. We always assume MV to be beneficial */
- /* printf("Using motion vector (%d, %d) with SAD %d\n", mb->mv_x, mb->mv_y,
- best_sad); */
+ static int c = 0;
+ ++c;
+ if (c == 2000)
+ abort();
+ printf("Block(%d/%d): Using motion vector (%d, %d) with SAD %d mx: %d\n", mb_x, mb_y, mb->mv_x, mb->mv_y, best_sad, mx);
mb->use_mv = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment