# HG changeset patch # User kostya # Date 1258701977 0 # Node ID b9fdb6b4c2dce28eac51c150d6fbd1c7173d0a8e # Parent 7ff7a34848bf77aaa0d59bc3f40d728cab5a073e cosmetics: break some long lines and insert few spaces diff -r 7ff7a34848bf -r b9fdb6b4c2dc zmbvenc.c --- a/zmbvenc.c Fri Nov 20 07:22:41 2009 +0000 +++ b/zmbvenc.c Fri Nov 20 07:26:17 2009 +0000 @@ -61,11 +61,12 @@ * XXX should be optimized and moved to DSPContext * TODO handle out of edge ME */ -static inline int block_cmp(uint8_t *src, int stride, uint8_t *src2, int stride2, int bw, int bh, int *xored) +static inline int block_cmp(uint8_t *src, int stride, uint8_t *src2, int stride2, + int bw, int bh, int *xored) { int sum = 0; int i, j; - uint8_t histogram[256]={0}; + uint8_t histogram[256] = {0}; *xored = 0; for(j = 0; j < bh; j++){ @@ -78,8 +79,8 @@ src2 += stride2; } - for(i=1; i<256; i++) - sum+= score_tab[histogram[i]]; + for(i = 1; i < 256; i++) + sum += score_tab[histogram[i]]; return sum; } @@ -87,8 +88,8 @@ /** Motion estimation function * TODO make better ME decisions */ -static int zmbv_me(ZmbvEncContext *c, uint8_t *src, int sstride, uint8_t *prev, int pstride, - int x, int y, int *mx, int *my, int *xored) +static int zmbv_me(ZmbvEncContext *c, uint8_t *src, int sstride, uint8_t *prev, + int pstride, int x, int y, int *mx, int *my, int *xored) { int dx, dy, tx, ty, tv, bv, bw, bh;