aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-11-20 07:26:17 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-11-20 07:26:17 +0000
commite4de5b0fb54d227d2683a7c69641a6369492680c (patch)
tree44ef847c747e68cce5fbf698c34ef056ab3a7192 /libavcodec
parentdd562761d95148c52e4be6d6b516407abf1815ee (diff)
downloadffmpeg-e4de5b0fb54d227d2683a7c69641a6369492680c.tar.gz
cosmetics: break some long lines and insert few spaces
Originally committed as revision 20559 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/zmbvenc.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c
index d3838904cc..a04c0597ee 100644
--- a/libavcodec/zmbvenc.c
+++ b/libavcodec/zmbvenc.c
@@ -61,11 +61,12 @@ static int score_tab[256];
* 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 @@ static inline int block_cmp(uint8_t *src, int stride, uint8_t *src2, int stride2
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 @@ static inline int block_cmp(uint8_t *src, int stride, uint8_t *src2, int stride2
/** 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;