[vlc-commits] x264: use a list for frame packing options.

Francois Cartegnie git at videolan.org
Sat Feb 25 20:37:11 CET 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Feb 25 20:23:04 2012 +0100| [48d4c48794ce91007eecc8c3bfd7a33382cef50a] | committer: Francois Cartegnie

x264: use a list for frame packing options.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=48d4c48794ce91007eecc8c3bfd7a33382cef50a
---

 modules/codec/x264.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 006c9d1..4dfca19 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -427,6 +427,11 @@ static const char *const direct_pred_list[] =
 static const char *const direct_pred_list_text[] =
   { N_("none"), N_("spatial"), N_("temporal"), N_("auto") };
 
+static const int const framepacking_list[] =
+  { -1, 0, 1, 2, 3, 4, 5 };
+static const char *const framepacking_list_text[] =
+  { "", N_("checkerboard"), N_("column alternation"), N_("row alternation"), N_("side by side"), N_("top bottom"), N_("frame alternation") };
+
 vlc_module_begin ()
     set_description( N_("H.264/MPEG4 AVC encoder (x264)"))
     set_capability( "encoder", 200 )
@@ -510,6 +515,7 @@ vlc_module_begin ()
 
 #if X264_BUILD >= 111
     add_integer( SOUT_CFG_PREFIX "frame-packing", -1, FRAMEPACKING_TEXT, FRAMEPACKING_LONGTEXT, true )
+        change_integer_list( framepacking_list, framepacking_list_text )
         change_integer_range( -1, 5)
 #endif
 



More information about the vlc-commits mailing list