/*****************************************************************************
* common.h: misc common functions
*****************************************************************************
- * Copyright (C) 2003-2014 x264 project
+ * Copyright (C) 2003-2016 x264 project
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Loren Merritt <lorenm@u.washington.edu>
} x264_lookahead_t;
typedef struct x264_ratecontrol_t x264_ratecontrol_t;
+typedef struct x264_speedcontrol_t x264_speedcontrol_t;
typedef struct x264_left_table_t
{
/* rate control encoding only */
x264_ratecontrol_t *rc;
+ x264_speedcontrol_t *sc;
/* stats */
struct
{
- /* Current frame stats */
- x264_frame_stat_t frame;
-
/* Cumulated stats */
/* per slice info */
/* num p-frames weighted */
int i_wpred[2];
+ /* Current frame stats */
+ x264_frame_stat_t frame;
} stat;
/* 0 = luma 4x4, 1 = luma 8x8, 2 = chroma 4x4, 3 = chroma 8x8 */
#endif
};
+typedef struct
+{
+ int sad;
+ int16_t mv[2];
+} mvsad_t;
+
// included at the end because it needs x264_t
#include "macroblock.h"