Commit 4f51604e authored by kostya's avatar kostya

cosmetics: break some long lines and insert few spaces

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20559 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ba795767
...@@ -61,11 +61,12 @@ static int score_tab[256]; ...@@ -61,11 +61,12 @@ static int score_tab[256];
* XXX should be optimized and moved to DSPContext * XXX should be optimized and moved to DSPContext
* TODO handle out of edge ME * 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 sum = 0;
int i, j; int i, j;
uint8_t histogram[256]={0}; uint8_t histogram[256] = {0};
*xored = 0; *xored = 0;
for(j = 0; j < bh; j++){ 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 ...@@ -78,8 +79,8 @@ static inline int block_cmp(uint8_t *src, int stride, uint8_t *src2, int stride2
src2 += stride2; src2 += stride2;
} }
for(i=1; i<256; i++) for(i = 1; i < 256; i++)
sum+= score_tab[histogram[i]]; sum += score_tab[histogram[i]];
return sum; return sum;
} }
...@@ -87,8 +88,8 @@ static inline int block_cmp(uint8_t *src, int stride, uint8_t *src2, int stride2 ...@@ -87,8 +88,8 @@ static inline int block_cmp(uint8_t *src, int stride, uint8_t *src2, int stride2
/** Motion estimation function /** Motion estimation function
* TODO make better ME decisions * TODO make better ME decisions
*/ */
static int zmbv_me(ZmbvEncContext *c, uint8_t *src, int sstride, uint8_t *prev, int pstride, static int zmbv_me(ZmbvEncContext *c, uint8_t *src, int sstride, uint8_t *prev,
int x, int y, int *mx, int *my, int *xored) int pstride, int x, int y, int *mx, int *my, int *xored)
{ {
int dx, dy, tx, ty, tv, bv, bw, bh; int dx, dy, tx, ty, tv, bv, bw, bh;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment