Don't do sum/ssd analysis if weightp == 1
authorJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 13 Dec 2009 11:16:04 +0000 (03:16 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 15 Dec 2009 20:46:00 +0000 (12:46 -0800)
Typo fixes in comments and help.

encoder/encoder.c
x264.c
x264.h

index 1b1f647..82a5b8e 100644 (file)
@@ -2042,7 +2042,7 @@ int     x264_encoder_encode( x264_t *h,
 
         if( h->frames.b_have_lowres )
         {
-            if( h->param.analyse.i_weighted_pred )
+            if( h->param.analyse.i_weighted_pred == X264_WEIGHTP_FAKE || h->param.analyse.i_weighted_pred == X264_WEIGHTP_SMART )
                 x264_weight_plane_analyse( h, fenc );
             x264_frame_init_lowres( h, fenc );
         }
diff --git a/x264.c b/x264.c
index 95c2055..57db499 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -235,7 +235,7 @@ static void Help( x264_param_t *defaults, int longhelp )
         "                                    --ref {Double if >1 else 1}\n"
         "                                  - grain:\n"
         "                                    --aq-strength 0.5 --no-dct-decimate\n"
-        "                                    --deadzone inter 6 --deadzone-intra 6\n"
+        "                                    --deadzone-inter 6 --deadzone-intra 6\n"
         "                                    --deblock -2:-2 --ipratio 1.1 \n"
         "                                    --pbratio 1.1 --psy-rd <unset>:0.25\n"
         "                                    --qcomp 0.8\n"
diff --git a/x264.h b/x264.h
index f1d8202..3a65912 100644 (file)
--- a/x264.h
+++ b/x264.h
@@ -204,7 +204,7 @@ typedef struct x264_param_t
     int         i_bframe;   /* how many b-frame between 2 references pictures */
     int         i_bframe_adaptive;
     int         i_bframe_bias;
-    int         i_bframe_pyramid;   /* Keep some B-frames as references: 0=off, 1=strict heirarchical, 2=normal */
+    int         i_bframe_pyramid;   /* Keep some B-frames as references: 0=off, 1=strict hierarchical, 2=normal */
 
     int         b_deblocking_filter;
     int         i_deblocking_filter_alphac0;    /* [-6, 6] -6 light filter, 6 strong */