Skip to content

Instantly share code, notes, and snippets.

View clausecker's full-sized avatar

Robert Clausecker clausecker

View GitHub Profile
@clausecker
clausecker / tcc.c
Created August 18, 2012 20:48 — forked from anonymous/blocks.c
Simple block-based intra-frame-coding using a ring-buffer
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include "image.h"
#include "ppm.h"
#include "databuffer.h"
#include "rangecode.h"
@clausecker
clausecker / goscore.c
Last active August 29, 2015 14:15 — forked from anonymous/goscore.c
/*
* access the array b at row d, column e. Allow extra index parts before the
* closing bracket. Usually used as I] to get b[d * g + e]. All occurances of
* this macros are commented in the next parts.
*/
#define I b[d*g+e
/* int */ a; /* updated content of cell at b[d*g+e] */
/* int */ b[65536]; /* array containing the board */
/* int */ c; /* cleared if the flood-fill fills something, score */