]> git.sesse.net Git - nageru/blobdiff - nageru/quicksync_encoder_impl.h
IWYU-fix nageru/*.h.
[nageru] / nageru / quicksync_encoder_impl.h
index ee8ec4789dec6926dee6c81b1e7463aec8de81d6..6d8463db76aef4e3a897a35e9aff49e9c8891e7d 100644 (file)
@@ -1,28 +1,39 @@
 #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
@@ -56,6 +67,10 @@ public:
        {
                http_mux = mux;
        }
+       void set_srt_mux(Mux *mux)
+       {
+               srt_mux = mux;
+       }
 
        // So we never get negative dts.
        int64_t global_delay() const {
@@ -175,6 +190,7 @@ private:
        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