]> git.sesse.net Git - nageru/commitdiff
Run IWYU on quicksync_encoder.{cpp,h}.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 2 Aug 2016 20:46:01 +0000 (22:46 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 2 Aug 2016 20:46:01 +0000 (22:46 +0200)
quicksync_encoder.cpp
quicksync_encoder.h

index 5bba54632907216d79fcc6801f1c8299e85eb56f..55a0eabb5e3a5d191cbe90e8a889ac118ac10b6a 100644 (file)
@@ -1,18 +1,22 @@
 //#include "sysdeps.h"
 #include "quicksync_encoder.h"
 
-#include <movit/resource_pool.h>
+#include <movit/resource_pool.h>  // Must be above the Xlib includes.
 #include <movit/util.h>
+
 #include <EGL/eglplatform.h>
-#include <X11/X.h>
 #include <X11/Xlib.h>
 #include <assert.h>
 #include <epoxy/egl.h>
+#include <fcntl.h>
+#include <libavcodec/avcodec.h>
+#include <libavformat/avio.h>
+#include <libavutil/error.h>
 #include <libdrm/drm_fourcc.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <fcntl.h>
+#include <unistd.h>
 #include <va/va.h>
 #include <va/va_drm.h>
 #include <va/va_drmcommon.h>
 #include <va/va_x11.h>
 #include <algorithm>
 #include <condition_variable>
+#include <cstddef>
 #include <cstdint>
 #include <map>
 #include <memory>
 #include <mutex>
 #include <queue>
+#include <stack>
 #include <string>
 #include <thread>
 #include <utility>
 #include "audio_encoder.h"
 #include "context.h"
 #include "defs.h"
+#include "ffmpeg_raii.h"
 #include "flags.h"
 #include "mux.h"
+#include "ref_counted_frame.h"
 #include "timebase.h"
 #include "x264_encoder.h"
 
@@ -1716,10 +1724,6 @@ int QuickSyncEncoderImpl::deinit_va()
     return 0;
 }
 
-namespace {
-
-}  // namespace
-
 QuickSyncEncoderImpl::QuickSyncEncoderImpl(const std::string &filename, movit::ResourcePool *resource_pool, QSurface *surface, const string &va_display, int width, int height, AVOutputFormat *oformat, X264Encoder *x264_encoder)
        : current_storage_frame(0), resource_pool(resource_pool), surface(surface), x264_encoder(x264_encoder), frame_width(width), frame_height(height)
 {
index e55fd4dce115f7c6720de791bda963c8e0f89304..c1e844bdab05332c10262a4a0def1890148f626a 100644 (file)
@@ -27,6 +27,7 @@
 #define _H264ENCODE_H
 
 #include <epoxy/gl.h>
+#include <stdbool.h>
 #include <stdint.h>
 #include <atomic>
 #include <memory>
@@ -42,8 +43,9 @@ extern "C" {
 
 class AudioEncoder;
 class Mux;
-class QuickSyncEncoderImpl;
 class QSurface;
+class QuickSyncEncoderImpl;
+class RefCountedFrame;
 class X264Encoder;
 
 namespace movit {