diff options
author | John Koleszar <jkoleszar@google.com> | 2012-07-13 15:21:29 -0700 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2012-07-17 11:46:03 -0700 |
commit | c6b9039fd94aede59ac1086a379955137fc8e1b8 (patch) | |
tree | f9b20b2ca2114fe9303c8226bb3b368568fd5509 /vp8/encoder/encodemb.h | |
parent | 8697c6e454e02c6cf644daa9d29fabd07e846f18 (diff) | |
download | libvpx-c6b9039fd94aede59ac1086a379955137fc8e1b8.tar libvpx-c6b9039fd94aede59ac1086a379955137fc8e1b8.tar.gz libvpx-c6b9039fd94aede59ac1086a379955137fc8e1b8.tar.bz2 libvpx-c6b9039fd94aede59ac1086a379955137fc8e1b8.zip |
Restyle code
Approximate the Google style guide[1] so that that there's a written
document to follow and tools to check compliance[2].
[1]: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
[2]: http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py
Change-Id: Idf40e3d8dddcc72150f6af127b13e5dab838685f
Diffstat (limited to 'vp8/encoder/encodemb.h')
-rw-r--r-- | vp8/encoder/encodemb.h | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/vp8/encoder/encodemb.h b/vp8/encoder/encodemb.h index 396a15196..bfcd0f92c 100644 --- a/vp8/encoder/encodemb.h +++ b/vp8/encoder/encodemb.h @@ -16,23 +16,23 @@ #include "block.h" #define prototype_mberr(sym) \ - int (sym)(MACROBLOCK *mb, int dc) + int (sym)(MACROBLOCK *mb, int dc) #define prototype_berr(sym) \ - int (sym)(short *coeff, short *dqcoeff) + int (sym)(short *coeff, short *dqcoeff) #define prototype_mbuverr(sym) \ - int (sym)(MACROBLOCK *mb) + int (sym)(MACROBLOCK *mb) #define prototype_subb(sym) \ - void (sym)(BLOCK *be,BLOCKD *bd, int pitch) + void (sym)(BLOCK *be,BLOCKD *bd, int pitch) #define prototype_submby(sym) \ - void (sym)(short *diff, unsigned char *src, unsigned char *pred, int stride) + void (sym)(short *diff, unsigned char *src, unsigned char *pred, int stride) #define prototype_submbuv(sym) \ - void (sym)(short *diff, unsigned char *usrc, unsigned char *vsrc,\ - unsigned char *pred, int stride) + void (sym)(short *diff, unsigned char *usrc, unsigned char *vsrc,\ + unsigned char *pred, int stride) #if ARCH_X86 || ARCH_X86_64 #include "x86/encodemb_x86.h" @@ -73,23 +73,21 @@ extern prototype_submby(vp8_encodemb_submby); extern prototype_submbuv(vp8_encodemb_submbuv); -typedef struct -{ - prototype_berr(*berr); - prototype_mberr(*mberr); - prototype_mbuverr(*mbuverr); - prototype_subb(*subb); - prototype_submby(*submby); - prototype_submbuv(*submbuv); +typedef struct { + prototype_berr(*berr); + prototype_mberr(*mberr); + prototype_mbuverr(*mbuverr); + prototype_subb(*subb); + prototype_submby(*submby); + prototype_submbuv(*submbuv); } vp8_encodemb_rtcd_vtable_t; -typedef struct -{ - MB_PREDICTION_MODE mode; - MV_REFERENCE_FRAME ref_frame; - MV_REFERENCE_FRAME second_ref_frame; +typedef struct { + MB_PREDICTION_MODE mode; + MV_REFERENCE_FRAME ref_frame; + MV_REFERENCE_FRAME second_ref_frame; #if CONFIG_PRED_FILTER - int pred_filter_flag; + int pred_filter_flag; #endif } MODE_DEFINITION; |