[x264-devel] commit: Convert the OPT_ defines in x264.c to an enum (Diogo Franco )

git at videolan.org git at videolan.org
Tue Jun 15 10:48:25 CEST 2010


x264 | branch: master | Diogo Franco <diogomfranco at gmail.com> | Sun Jun 13 21:57:32 2010 -0300| [4d8d93019558999a95c515b6726bba02faf74d3a] | committer: Jason Garrett-Glaser 

Convert the OPT_ defines in x264.c to an enum

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

 x264.c |   46 ++++++++++++++++++++++++----------------------
 1 files changed, 24 insertions(+), 22 deletions(-)

diff --git a/x264.c b/x264.c
index 8e6a3b7..a124083 100644
--- a/x264.c
+++ b/x264.c
@@ -585,28 +585,30 @@ static void Help( x264_param_t *defaults, int longhelp )
     H0( "\n" );
 }
 
-#define OPT_FRAMES 256
-#define OPT_SEEK 257
-#define OPT_QPFILE 258
-#define OPT_THREAD_INPUT 259
-#define OPT_QUIET 260
-#define OPT_NOPROGRESS 261
-#define OPT_VISUALIZE 262
-#define OPT_LONGHELP 263
-#define OPT_PROFILE 264
-#define OPT_PRESET 265
-#define OPT_TUNE 266
-#define OPT_SLOWFIRSTPASS 267
-#define OPT_FULLHELP 268
-#define OPT_FPS 269
-#define OPT_MUXER 270
-#define OPT_DEMUXER 271
-#define OPT_INDEX 272
-#define OPT_INTERLACED 273
-#define OPT_TCFILE_IN 274
-#define OPT_TCFILE_OUT 275
-#define OPT_TIMEBASE 276
-#define OPT_PULLDOWN 277
+enum {
+    OPT_FRAMES = 256,
+    OPT_SEEK,
+    OPT_QPFILE,
+    OPT_THREAD_INPUT,
+    OPT_QUIET,
+    OPT_NOPROGRESS,
+    OPT_VISUALIZE,
+    OPT_LONGHELP,
+    OPT_PROFILE,
+    OPT_PRESET,
+    OPT_TUNE,
+    OPT_SLOWFIRSTPASS,
+    OPT_FULLHELP,
+    OPT_FPS,
+    OPT_MUXER,
+    OPT_DEMUXER,
+    OPT_INDEX,
+    OPT_INTERLACED,
+    OPT_TCFILE_IN,
+    OPT_TCFILE_OUT,
+    OPT_TIMEBASE,
+    OPT_PULLDOWN,
+} OptionsOPT;
 
 static char short_options[] = "8A:B:b:f:hI:i:m:o:p:q:r:t:Vvw";
 static struct option long_options[] =



More information about the x264-devel mailing list