* @brief A graph of FFmpeg filters.
*/
+#include "filter_graph.h"
+#include "filter.h"
+#include "exceptions.h"
+#include "image.h"
+#include "ffmpeg_content.h"
+#include "safe_stringstream.h"
+#include "compose.hpp"
extern "C" {
#include <libavfilter/avfiltergraph.h>
#include <libavfilter/buffersrc.h>
#include <libavfilter/buffersink.h>
#include <libavformat/avio.h>
}
-#include "decoder.h"
-#include "filter_graph.h"
-#include "filter.h"
-#include "exceptions.h"
-#include "image.h"
-#include "ffmpeg_content.h"
-#include "safe_stringstream.h"
+#include <iostream>
#include "i18n.h"
}
AVBufferSinkParams* sink_params = av_buffersink_params_alloc ();
- PixelFormat* pixel_fmts = new PixelFormat[2];
+ AVPixelFormat* pixel_fmts = new AVPixelFormat[2];
pixel_fmts[0] = _pixel_format;
- pixel_fmts[1] = PIX_FMT_NONE;
+ pixel_fmts[1] = AV_PIX_FMT_NONE;
sink_params->pixel_fmts = pixel_fmts;
if (avfilter_graph_create_filter (&_buffer_sink_context, buffer_sink, N_("out"), 0, sink_params, graph) < 0) {