}
#include "clip_list.h"
-#include "context.h"
+#include "shared/context.h"
#include "defs.h"
#include "disk_space_estimator.h"
#include "shared/ffmpeg_raii.h"
srcs = ['flow.cpp', 'gpu_timers.cpp']
# All the other files.
-srcs += ['main.cpp', 'player.cpp', 'httpd.cpp', 'video_stream.cpp', 'context.cpp', 'chroma_subsampler.cpp']
+srcs += ['main.cpp', 'player.cpp', 'httpd.cpp', 'video_stream.cpp', 'chroma_subsampler.cpp']
srcs += ['vaapi_jpeg_decoder.cpp', 'db.cpp', 'disk_space_estimator.cpp', 'ycbcr_converter.cpp', 'flags.cpp']
srcs += ['mainwindow.cpp', 'jpeg_frame_view.cpp', 'clip_list.cpp', 'frame_on_disk.cpp']
srcs += moc_files
#include "player.h"
#include "clip_list.h"
-#include "context.h"
+#include "shared/context.h"
#include "defs.h"
#include "shared/ffmpeg_raii.h"
#include "frame_on_disk.h"
}
#include "chroma_subsampler.h"
-#include "context.h"
+#include "shared/context.h"
#include "flags.h"
#include "flow.h"
#include "httpd.h"
#include <movit/resource_pool.h>
#include <movit/util.h>
-#include "context.h"
+#include "shared/context.h"
#include "flags.h"
#include "mixer.h"
#include "ui_analyzer.h"
+++ /dev/null
-#include <stdio.h>
-
-#include <string>
-
-#include <QGL>
-#include <QOffscreenSurface>
-#include <QOpenGLContext>
-#include <QSurface>
-#include <QSurfaceFormat>
-
-QGLWidget *global_share_widget = nullptr;
-bool using_egl = false;
-
-using namespace std;
-
-QSurface *create_surface(const QSurfaceFormat &format)
-{
- QOffscreenSurface *surface = new QOffscreenSurface;
- surface->setFormat(format);
- surface->create();
- if (!surface->isValid()) {
- fprintf(stderr, "ERROR: surface not valid!\n");
- exit(1);
- }
- return surface;
-}
-
-QSurface *create_surface_with_same_format(const QSurface *surface)
-{
- return create_surface(surface->format());
-}
-
-QOpenGLContext *create_context(const QSurface *surface)
-{
- QOpenGLContext *context = new QOpenGLContext;
- context->setShareContext(global_share_widget->context()->contextHandle());
- context->setFormat(surface->format());
- context->create();
- return context;
-}
-
-bool make_current(QOpenGLContext *context, QSurface *surface)
-{
- return context->makeCurrent(surface);
-}
-
-void delete_context(QOpenGLContext *context)
-{
- delete context;
-}
#include "DeckLinkAPITypes.h"
#include "LinuxCOM.h"
-#include "context.h"
+#include "shared/context.h"
#include "print_latency.h"
#include "quittable_sleeper.h"
#include "ref_counted_frame.h"
#include <utility>
#include "audio_mixer.h"
-#include "context.h"
+#include "shared/context.h"
#include "context_menus.h"
#include "flags.h"
#include "mainwindow.h"
#ifdef HAVE_CEF
#include "nageru_cef_app.h"
#endif
-#include "context.h"
+#include "shared/context.h"
#include "flags.h"
#include "image_input.h"
#include "mainwindow.h"
// We normally use EGL for zerocopy, but if we use VA against DRM
// instead of against X11, we turn it off, and then don't need EGL.
setenv("QT_XCB_GL_INTEGRATION", "xcb_egl", 0);
- using_egl = true;
}
setlinebuf(stdout);
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 9, 100)
# Mixer objects.
srcs += ['chroma_subsampler.cpp', 'v210_converter.cpp', 'mixer.cpp', 'pbo_frame_allocator.cpp',
- 'context.cpp', 'theme.cpp', 'image_input.cpp', 'alsa_output.cpp',
+ 'theme.cpp', 'image_input.cpp', 'alsa_output.cpp',
'disk_space_estimator.cpp', 'timecode_renderer.cpp', 'tweaked_inputs.cpp']
# Streaming and encoding objects (largely the set that is shared between Nageru and Kaeru).
#include "cef_capture.h"
#endif
#include "chroma_subsampler.h"
-#include "context.h"
+#include "shared/context.h"
#include "decklink_capture.h"
#include "decklink_output.h"
#include "defs.h"
} // namespace
#include "audio_encoder.h"
-#include "context.h"
+#include "shared/context.h"
#include "defs.h"
#include "disk_space_estimator.h"
#include "shared/ffmpeg_raii.h"
+qt5 = import('qt5')
+qt5deps = dependency('qt5', modules: ['OpenGL'])
-srcs = ['memcpy_interleaved.cpp', 'metacube2.cpp', 'ffmpeg_raii.cpp', 'mux.cpp', 'metrics.cpp']
-shared = static_library('shared', srcs, include_directories: top_include)
+srcs = ['memcpy_interleaved.cpp', 'metacube2.cpp', 'ffmpeg_raii.cpp', 'mux.cpp', 'metrics.cpp', 'context.cpp']
+shared = static_library('shared', srcs, include_directories: top_include, dependencies: qt5deps)
shareddep = declare_dependency(
include_directories: top_include,
link_with: shared)