]> git.sesse.net Git - x264/commitdiff
Add mono frame packing value
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 20 Jan 2015 16:15:56 +0000 (16:15 +0000)
committerAnton Mitrofanov <BugMaster@narod.ru>
Mon, 23 Feb 2015 17:09:29 +0000 (20:09 +0300)
Defined in 2013-04 edition.

encoder/encoder.c
encoder/set.c
output/matroska.c
x264.c
x264.h

index 644ddb0de40359b810322be08a10871f7e0c011f..cfaf3cda2151f1e9ac976e4c350f46478f093448 100644 (file)
@@ -586,7 +586,7 @@ static int x264_validate_parameters( x264_t *h, int b_open )
         h->param.i_dpb_size = 1;
     }
 
-    if( h->param.i_frame_packing < -1 || h->param.i_frame_packing > 5 )
+    if( h->param.i_frame_packing < -1 || h->param.i_frame_packing > 6 )
     {
         x264_log( h, X264_LOG_WARNING, "ignoring unknown frame packing value\n" );
         h->param.i_frame_packing = -1;
index 0cdaf274d42ca96f6c92d87d33315f0e28317b16..9e65e6289f1d66796632aacbfee8d21a5cbf9a63 100644 (file)
@@ -663,7 +663,7 @@ void x264_sei_frame_packing_write( x264_t *h, bs_t *s )
     bs_write1( &q, quincunx_sampling_flag );      // quincunx_sampling_flag
 
     // 0: views are unrelated, 1: left view is on the left, 2: left view is on the right
-    bs_write ( &q, 6, 1 );                        // content_interpretation_type
+    bs_write ( &q, 6, h->param.i_frame_packing != 6 ); // content_interpretation_type
 
     bs_write1( &q, 0 );                           // spatial_flipping_flag
     bs_write1( &q, 0 );                           // frame0_flipped_flag
index a74a2741b7d95470767e8214a261e915c9a00458..51dea2701c663254c47511eeaef08b9e9535565a 100644 (file)
@@ -62,10 +62,10 @@ static int open_file( char *psz_filename, hnd_t *p_handle, cli_output_opt_t *opt
     return 0;
 }
 
-#define STEREO_COUNT 6
-static const uint8_t stereo_modes[STEREO_COUNT] = {5,9,7,1,3,13};
-static const uint8_t stereo_w_div[STEREO_COUNT] = {1,2,1,2,1,1};
-static const uint8_t stereo_h_div[STEREO_COUNT] = {1,1,2,1,2,1};
+#define STEREO_COUNT 7
+static const uint8_t stereo_modes[STEREO_COUNT] = {5,9,7,1,3,13,0};
+static const uint8_t stereo_w_div[STEREO_COUNT] = {1,2,1,2,1,1,1};
+static const uint8_t stereo_h_div[STEREO_COUNT] = {1,1,2,1,2,1,1};
 
 static int set_param( hnd_t handle, x264_param_t *p_param )
 {
diff --git a/x264.c b/x264.c
index bd657f3c7d5568d20a84f9704cdc7ed42e78e82d..df15e04f0d7b521b2a7f69f47127fc5dc1d0520b 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -703,7 +703,8 @@ static void help( x264_param_t *defaults, int longhelp )
         "                                  - 2: row alternation - L and R are interlaced by row\n"
         "                                  - 3: side by side - L is on the left, R on the right\n"
         "                                  - 4: top bottom - L is on top, R on bottom\n"
-        "                                  - 5: frame alternation - one view per frame\n" );
+        "                                  - 5: frame alternation - one view per frame\n"
+        "                                  - 6: mono - 2D frame without any frame packing\n" );
     H0( "\n" );
     H0( "Ratecontrol:\n" );
     H0( "\n" );
diff --git a/x264.h b/x264.h
index 95417de1c07458da8356862b3e3d5c8f61486bf4..612d0488f87bccd670a107811f117343ff055375 100644 (file)
--- a/x264.h
+++ b/x264.h
@@ -41,7 +41,7 @@
 
 #include "x264_config.h"
 
-#define X264_BUILD 144
+#define X264_BUILD 145
 
 /* Application developers planning to link against a shared library version of
  * libx264 from a Microsoft Visual Studio or similar development environment