// one does not need to patch x264 to use it in Nageru. It still could do with
// some cleanup, but it's much, much better than just using a static preset.
-#include <stdio.h>
#include <stdint.h>
-#include <string.h>
-#include <math.h>
#include <chrono>
#include <functional>
extern "C" {
-#include "x264.h"
+#include <x264.h>
}
+#include "x264_dynamic.h"
+
class X264SpeedControl {
public:
// x264: Encoding object we are using; must be opened. Assumed to be
int dither_preset(float f);
void apply_preset(int new_preset);
+ X264Dynamic dyn;
+
// Not owned by us.
x264_t *x264;