OSDN Git Service

mpegvideo: Move macros to more appropriate headers
authorVittorio Giovara <vittorio.giovara@gmail.com>
Sat, 12 Sep 2015 13:58:47 +0000 (15:58 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 13 Sep 2015 15:34:45 +0000 (17:34 +0200)
MAX_MB_BYTES -> mpegutils.h
FRAME_SKIPPED -> mpegutils.h
INPLACE_OFFSET -> mpegutils.h
ME_MAP_SIZE -> motion_est.h

libavcodec/motion_est.h
libavcodec/mpegutils.h
libavcodec/mpegvideo.h

index a5c662f..3b63972 100644 (file)
@@ -30,6 +30,7 @@
 struct MpegEncContext;
 
 #define MAX_MV 2048
+#define ME_MAP_SIZE 64
 
 #define FF_ME_ZERO 0
 #define FF_ME_EPZS 1
index 9b5a576..60f9712 100644 (file)
 #include "avcodec.h"
 #include "version.h"
 
+/**
+ * Return value for header parsers if frame is not coded.
+ * */
+#define FRAME_SKIPPED 100
 
 /* picture type */
 #define PICT_TOP_FIELD     1
@@ -40,6 +44,8 @@
  */
 #define DELAYED_PIC_REF 4
 
+#define MAX_MB_BYTES    (30 * 16 * 16 * 3 / 8 + 120)
+#define MAX_FCODE        7
 
 /* MB types */
 #if !FF_API_MB_TYPE
 
 #define CANDIDATE_MB_TYPE_DIRECT0    (1 << 12)
 
+#define INPLACE_OFFSET 16
 
 enum OutputFormat {
     FMT_MPEG1,
index cb449fa..52c6f91 100644 (file)
 
 #include "libavutil/opt.h"
 
-#define FRAME_SKIPPED 100 ///< return value for header parsers if frame is not coded
-
-#define MAX_FCODE 7
-
 #define MAX_THREADS 16
 
 #define MAX_B_FRAMES 16
 
-#define ME_MAP_SIZE 64
-
-#define MAX_MB_BYTES (30*16*16*3/8 + 120)
-
-#define INPLACE_OFFSET 16
-
 /* Start codes. */
 #define SEQ_END_CODE            0x000001b7
 #define SEQ_START_CODE          0x000001b3