-#include <stdio.h>
+#include "flags.h"
+
#include <getopt.h>
+#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
-
-#include "flags.h"
Flags global_flags;
#include <QSurfaceFormat>
#include "glwidget.h"
-#include "mainwindow.h"
#include <movit/resource_pool.h>
#include <stdio.h>
+#include <functional>
#include <mutex>
#include "context.h"
+#include "effect_chain.h"
#include "flags.h"
+#include "mainwindow.h"
#include "mixer.h"
+#include "qnamespace.h"
#include "ref_counted_gl_sync.h"
-#include "vumeter.h"
-class MainWindow;
-class QSurface;
+class QMouseEvent;
class QWidget;
#undef Success
#include <epoxy/gl.h>
#include <QGLWidget>
+#include <string>
+#include <vector>
#include "mixer.h"
+#include "qgl.h"
+#include "qobjectdefs.h"
+class QMouseEvent;
class QWidget;
namespace movit {
#include <assert.h>
#include <epoxy/egl.h>
#include <libavcodec/avcodec.h>
-#include <libavformat/avio.h>
-#include <libavutil/mathematics.h>
+#include <libavutil/channel_layout.h>
+#include <libavutil/frame.h>
#include <libavutil/rational.h>
+#include <libavutil/samplefmt.h>
#include <libdrm/drm_fourcc.h>
-#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <va/va_enc_h264.h>
#include <va/va_x11.h>
#include <condition_variable>
+#include <cstdint>
+#include <memory>
#include <mutex>
#include <queue>
#include <string>
#include <thread>
+#include <utility>
#include "context.h"
#include "httpd.h"
#define _H264ENCODE_H
extern "C" {
+#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
}
#include <epoxy/gl.h>
+#include <stdbool.h>
+#include <stdint.h>
#include <atomic>
#include <condition_variable>
#include <map>
-#include <string.h>
-#include <microhttpd.h>
#include <assert.h>
+#include <microhttpd.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
extern "C" {
#include <libavcodec/avcodec.h>
+#include <libavutil/channel_layout.h>
+#include <libavutil/mathematics.h>
+#include <libavutil/mem.h>
+#include <libavutil/pixfmt.h>
+#include <libavutil/rational.h>
+#include <libavutil/samplefmt.h>
}
#include "httpd.h"
+
#include "timebase.h"
+struct MHD_Connection;
+struct MHD_Response;
+
using namespace std;
HTTPD::HTTPD(const char *output_filename, int width, int height)
// way, namely having one ffmpeg mux per output.
#include <microhttpd.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <sys/types.h>
+#include <condition_variable>
#include <deque>
-#include <string>
+#include <memory>
#include <mutex>
-#include <condition_variable>
+#include <string>
#include <vector>
+struct MHD_Connection;
+
extern "C" {
+#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
+#include <libavformat/avio.h>
}
class HTTPD {
-#include <QPainter>
-
#include "lrameter.h"
+
+#include <QPainter>
+#include <QPalette>
+#include <QPen>
#include "vu_common.h"
+class QPaintEvent;
+
using namespace std;
LRAMeter::LRAMeter(QWidget *parent)
#ifndef LRAMETER_H
#define LRAMETER_H
-#include <QWidget>
+#include <math.h>
#include <QLabel>
#include <QPaintEvent>
-
+#include <QWidget>
#include <mutex>
class LRAMeter : public QWidget
+extern "C" {
+#include <libavformat/avformat.h>
+}
+#include <stdbool.h>
+#include <stdio.h>
#include <stdlib.h>
#include <epoxy/gl.h>
#include "mainwindow.h"
-#include <thread>
-#include <vector>
+
+#include <math.h>
+#include <stdio.h>
+#include <algorithm>
#include <string>
-#include <QSignalMapper>
+#include <vector>
+#include <QBoxLayout>
+#include <QKeySequence>
+#include <QLabel>
#include <QMetaType>
-#include <QShortcut>
+#include <QPushButton>
#include <QResizeEvent>
+#include <QShortcut>
+#include <QSignalMapper>
+#include <QSize>
+#include <QString>
-#include "context.h"
+#include "glwidget.h"
+#include "lrameter.h"
#include "mixer.h"
-
#include "ui_mainwindow.h"
+#include "vumeter.h"
+
+class QResizeEvent;
using namespace std;
#define MAINWINDOW_H
#include <QMainWindow>
-#include <vector>
#include <string>
+#include <vector>
+
+class QResizeEvent;
namespace Ui {
class MainWindow;
#include "mixer.h"
#include <assert.h>
-#include <effect.h>
-#include <effect_chain.h>
-#include <effect_util.h>
#include <epoxy/egl.h>
-#include <features.h>
-#include <image_format.h>
#include <init.h>
-#include <overlay_effect.h>
-#include <padding_effect.h>
-#include <resample_effect.h>
-#include <resource_pool.h>
-#include <saturation_effect.h>
+#include <movit/effect_chain.h>
+#include <movit/effect_util.h>
+#include <movit/flat_input.h>
+#include <movit/image_format.h>
+#include <movit/resource_pool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include <util.h>
-#include <white_balance_effect.h>
-#include <ycbcr.h>
-#include <ycbcr_input.h>
+#include <algorithm>
#include <cmath>
#include <condition_variable>
#include <cstddef>
#include <mutex>
#include <string>
#include <thread>
+#include <utility>
#include <vector>
#include "bmusb/bmusb.h"
#include <epoxy/gl.h>
#undef Success
+#include <stdbool.h>
+#include <stdint.h>
+
#include <movit/effect_chain.h>
#include <movit/flat_input.h>
+#include <condition_variable>
+#include <cstddef>
#include <functional>
+#include <memory>
+#include <mutex>
+#include <string>
+#include <thread>
+#include <vector>
#include "bmusb/bmusb.h"
+#include "ebu_r128_proc.h"
#include "h264encode.h"
+#include "httpd.h"
#include "pbo_frame_allocator.h"
#include "ref_counted_frame.h"
#include "ref_counted_gl_sync.h"
-#include "theme.h"
#include "resampler.h"
+#include "theme.h"
#include "timebase.h"
-#include "httpd.h"
-#include "ebu_r128_proc.h"
+
+class H264Encoder;
+class QSurface;
+namespace movit {
+class Effect;
+class EffectChain;
+class FlatInput;
+class ResourcePool;
+} // namespace movit
namespace movit {
class YCbCrInput;
#include "pbo_frame_allocator.h"
+#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <cstddef>
#define _PBO_FRAME_ALLOCATOR 1
#include <epoxy/gl.h>
+#include <stddef.h>
+#include <memory>
#include <mutex>
#include <queue>
// Note that the important point isn't really the pointer to the Frame itself,
// it's the resources it's representing that need to go back to the allocator.
+#include <memory>
+
#include "bmusb/bmusb.h"
void release_refcounted_frame(FrameAllocator::Frame *frame);
#include "resampler.h"
+#include <math.h>
+#include <stddef.h>
#include <stdio.h>
#include <string.h>
-#include <math.h>
#include <zita-resampler/vresampler.h>
Resampler::Resampler(unsigned freq_in, unsigned freq_out, unsigned num_channels)
#include <stdint.h>
#include <stdlib.h>
+#include <sys/types.h>
#include <zita-resampler/vresampler.h>
-
#include <deque>
+#include <memory>
class Resampler {
public:
-#include <stdio.h>
+#include "theme.h"
+
+#include <assert.h>
+#include <lauxlib.h>
#include <lua.h>
#include <lualib.h>
-#include <lauxlib.h>
-#include <new>
-#include <utility>
-
+#include <movit/effect.h>
#include <movit/effect_chain.h>
-#include <movit/ycbcr_input.h>
-#include <movit/white_balance_effect.h>
-#include <movit/resample_effect.h>
-#include <movit/padding_effect.h>
+#include <movit/image_format.h>
+#include <movit/mix_effect.h>
#include <movit/overlay_effect.h>
+#include <movit/padding_effect.h>
+#include <movit/resample_effect.h>
#include <movit/resize_effect.h>
-#include <movit/mix_effect.h>
+#include <movit/white_balance_effect.h>
+#include <movit/ycbcr.h>
+#include <movit/ycbcr_input.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <cstddef>
+#include <new>
+#include <utility>
-#include "theme.h"
+namespace movit {
+class ResourcePool;
+} // namespace movit
#define WIDTH 1280 // FIXME
#define HEIGHT 720 // FIXME
#ifndef _THEME_H
#define _THEME_H 1
-#include <stdio.h>
-#include <lua.h>
+#include <epoxy/gl.h>
#include <lauxlib.h>
-
+#include <lua.h>
+#include <movit/effect_chain.h>
+#include <movit/ycbcr_input.h>
+#include <stdbool.h>
+#include <stdio.h>
#include <functional>
#include <mutex>
+#include <string>
#include <utility>
+#include <vector>
-#include <movit/effect_chain.h>
-#include <movit/ycbcr_input.h>
+namespace movit {
+class ResourcePool;
+struct ImageFormat;
+struct YCbCrFormat;
+} // namespace movit
#define MAX_CARDS 16
#include "vu_common.h"
+
#include <math.h>
#include <algorithm>
+#include <QBrush>
+#include <QColor>
+#include <QPainter>
+
using namespace std;
int lufs_to_pos(float level_lu, int height)
#ifndef VUMETER_H
#define VUMETER_H
-#include <QWidget>
+#include <math.h>
#include <QLabel>
#include <QPaintEvent>
-
+#include <QWidget>
#include <mutex>
class VUMeter : public QWidget