[x264-devel] commit: ensure that all boolean options are {0, 1} so they print consistently in the options SEI (Loren Merritt )

git version control git at videolan.org
Wed Dec 9 01:36:11 CET 2009


x264 | branch: master | Loren Merritt <pengvado at akuvian.org> | Wed Dec  9 00:37:09 2009 +0000| [733b660f44fa4e8982cb83447f1d2cd7e31b4386] | committer: Loren Merritt 

ensure that all boolean options are {0,1} so they print consistently in the options SEI

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=733b660f44fa4e8982cb83447f1d2cd7e31b4386
---

 encoder/encoder.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/encoder/encoder.c b/encoder/encoder.c
index 5177d35..1571584 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -715,11 +715,23 @@ static int x264_validate_parameters( x264_t *h )
     /* ensure the booleans are 0 or 1 so they can be used in math */
 #define BOOLIFY(x) h->param.x = !!h->param.x
     BOOLIFY( b_cabac );
+    BOOLIFY( b_constrained_intra );
     BOOLIFY( b_deblocking_filter );
+    BOOLIFY( b_deterministic );
     BOOLIFY( b_interlaced );
+    BOOLIFY( b_visualize );
+    BOOLIFY( b_aud );
+    BOOLIFY( b_repeat_headers );
+    BOOLIFY( b_annexb );
     BOOLIFY( analyse.b_transform_8x8 );
+    BOOLIFY( analyse.b_weighted_bipred );
     BOOLIFY( analyse.b_chroma_me );
+    BOOLIFY( analyse.b_mixed_references );
     BOOLIFY( analyse.b_fast_pskip );
+    BOOLIFY( analyse.b_dct_decimate );
+    BOOLIFY( analyse.b_psy );
+    BOOLIFY( analyse.b_psnr );
+    BOOLIFY( analyse.b_ssim );
     BOOLIFY( rc.b_stat_write );
     BOOLIFY( rc.b_stat_read );
     BOOLIFY( rc.b_mb_tree );



More information about the x264-devel mailing list