#ifndef _QUICKSYNC_ENCODER_IMPL_H
#define _QUICKSYNC_ENCODER_IMPL_H 1
+#include <stddef.h>
+#include <stdint.h>
#include <epoxy/egl.h>
+#include <epoxy/gl.h>
#include <movit/image_format.h>
#include <va/va.h>
+#include <va/va_enc_h264.h>
+#include <atomic>
#include <condition_variable>
+#include <deque>
#include <map>
#include <memory>
#include <mutex>
#include <queue>
#include <string>
-#include <stack>
#include <thread>
#include <unordered_map>
+#include <vector>
#include "audio_encoder.h"
#include "defs.h"
#include "shared/timebase.h"
#include "print_latency.h"
+#include "ref_counted_frame.h"
#include "shared/ref_counted_gl_sync.h"
#include "shared/va_display.h"
#include "v4l_output.h"
+extern "C" {
+#include <libavformat/avformat.h>
+}
+
#define SURFACE_NUM 16 /* 16 surfaces for source YUV */
#define MAX_NUM_REF1 16 // Seemingly a hardware-fixed value, not related to SURFACE_NUM
#define MAX_NUM_REF2 32 // Seemingly a hardware-fixed value, not related to SURFACE_NUM
{
http_mux = mux;
}
+ void set_srt_mux(Mux *mux)
+ {
+ srt_mux = mux;
+ }
// So we never get negative dts.
int64_t global_delay() const {
std::unique_ptr<V4LOutput> v4l_output; // nullptr if not using V4L2 output.
Mux* http_mux = nullptr; // To the HTTP server.
+ Mux* srt_mux = nullptr; // To the remote SRT endpoint, if any.
std::unique_ptr<Mux> file_mux; // To local disk.
// Encoder parameters