]> git.sesse.net Git - nageru/commitdiff
Move everything into a separate futatabi/ subdir, for the upcoming merge with Futatabi.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 1 Dec 2018 23:06:05 +0000 (00:06 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 1 Dec 2018 23:06:05 +0000 (00:06 +0100)
158 files changed:
bmusb
meson.build
nageru/aboutdialog.cpp [moved from aboutdialog.cpp with 100% similarity]
nageru/aboutdialog.h [moved from aboutdialog.h with 100% similarity]
nageru/aboutdialog.ui [moved from aboutdialog.ui with 100% similarity]
nageru/akai_midimix.midimapping [moved from akai_midimix.midimapping with 100% similarity]
nageru/alsa_input.cpp [moved from alsa_input.cpp with 100% similarity]
nageru/alsa_input.h [moved from alsa_input.h with 100% similarity]
nageru/alsa_output.cpp [moved from alsa_output.cpp with 100% similarity]
nageru/alsa_output.h [moved from alsa_output.h with 100% similarity]
nageru/alsa_pool.cpp [moved from alsa_pool.cpp with 100% similarity]
nageru/alsa_pool.h [moved from alsa_pool.h with 100% similarity]
nageru/analyzer.cpp [moved from analyzer.cpp with 100% similarity]
nageru/analyzer.h [moved from analyzer.h with 100% similarity]
nageru/analyzer.ui [moved from analyzer.ui with 100% similarity]
nageru/audio_encoder.cpp [moved from audio_encoder.cpp with 100% similarity]
nageru/audio_encoder.h [moved from audio_encoder.h with 100% similarity]
nageru/audio_expanded_view.ui [moved from audio_expanded_view.ui with 100% similarity]
nageru/audio_miniview.ui [moved from audio_miniview.ui with 100% similarity]
nageru/audio_mixer.cpp [moved from audio_mixer.cpp with 100% similarity]
nageru/audio_mixer.h [moved from audio_mixer.h with 100% similarity]
nageru/basic_stats.cpp [moved from basic_stats.cpp with 100% similarity]
nageru/basic_stats.h [moved from basic_stats.h with 100% similarity]
nageru/benchmark_audio_mixer.cpp [moved from benchmark_audio_mixer.cpp with 100% similarity]
nageru/bg.jpeg [moved from bg.jpeg with 100% similarity]
nageru/cef_capture.cpp [moved from cef_capture.cpp with 100% similarity]
nageru/cef_capture.h [moved from cef_capture.h with 100% similarity]
nageru/chroma_subsampler.cpp [moved from chroma_subsampler.cpp with 100% similarity]
nageru/chroma_subsampler.h [moved from chroma_subsampler.h with 100% similarity]
nageru/clickable_label.h [moved from clickable_label.h with 100% similarity]
nageru/compression_reduction_meter.cpp [moved from compression_reduction_meter.cpp with 100% similarity]
nageru/compression_reduction_meter.h [moved from compression_reduction_meter.h with 100% similarity]
nageru/context.cpp [moved from context.cpp with 100% similarity]
nageru/context.h [moved from context.h with 100% similarity]
nageru/context_menus.cpp [moved from context_menus.cpp with 100% similarity]
nageru/context_menus.h [moved from context_menus.h with 100% similarity]
nageru/correlation_measurer.cpp [moved from correlation_measurer.cpp with 100% similarity]
nageru/correlation_measurer.h [moved from correlation_measurer.h with 100% similarity]
nageru/correlation_meter.cpp [moved from correlation_meter.cpp with 100% similarity]
nageru/correlation_meter.h [moved from correlation_meter.h with 100% similarity]
nageru/db.h [moved from db.h with 100% similarity]
nageru/decklink/DeckLinkAPI.h [moved from decklink/DeckLinkAPI.h with 100% similarity]
nageru/decklink/DeckLinkAPIConfiguration.h [moved from decklink/DeckLinkAPIConfiguration.h with 100% similarity]
nageru/decklink/DeckLinkAPIDeckControl.h [moved from decklink/DeckLinkAPIDeckControl.h with 100% similarity]
nageru/decklink/DeckLinkAPIDiscovery.h [moved from decklink/DeckLinkAPIDiscovery.h with 100% similarity]
nageru/decklink/DeckLinkAPIDispatch.cpp [moved from decklink/DeckLinkAPIDispatch.cpp with 100% similarity]
nageru/decklink/DeckLinkAPIModes.h [moved from decklink/DeckLinkAPIModes.h with 100% similarity]
nageru/decklink/DeckLinkAPITypes.h [moved from decklink/DeckLinkAPITypes.h with 100% similarity]
nageru/decklink/LinuxCOM.h [moved from decklink/LinuxCOM.h with 100% similarity]
nageru/decklink_capture.cpp [moved from decklink_capture.cpp with 100% similarity]
nageru/decklink_capture.h [moved from decklink_capture.h with 100% similarity]
nageru/decklink_output.cpp [moved from decklink_output.cpp with 100% similarity]
nageru/decklink_output.h [moved from decklink_output.h with 100% similarity]
nageru/decklink_util.cpp [moved from decklink_util.cpp with 100% similarity]
nageru/decklink_util.h [moved from decklink_util.h with 100% similarity]
nageru/defs.h [moved from defs.h with 100% similarity]
nageru/disk_space_estimator.cpp [moved from disk_space_estimator.cpp with 100% similarity]
nageru/disk_space_estimator.h [moved from disk_space_estimator.h with 100% similarity]
nageru/display.ui [moved from display.ui with 100% similarity]
nageru/ebu_r128_proc.cc [moved from ebu_r128_proc.cc with 100% similarity]
nageru/ebu_r128_proc.h [moved from ebu_r128_proc.h with 100% similarity]
nageru/ellipsis_label.h [moved from ellipsis_label.h with 100% similarity]
nageru/ffmpeg_capture.cpp [moved from ffmpeg_capture.cpp with 100% similarity]
nageru/ffmpeg_capture.h [moved from ffmpeg_capture.h with 100% similarity]
nageru/ffmpeg_raii.cpp [moved from ffmpeg_raii.cpp with 100% similarity]
nageru/ffmpeg_raii.h [moved from ffmpeg_raii.h with 100% similarity]
nageru/ffmpeg_util.cpp [moved from ffmpeg_util.cpp with 100% similarity]
nageru/ffmpeg_util.h [moved from ffmpeg_util.h with 100% similarity]
nageru/filter.cpp [moved from filter.cpp with 100% similarity]
nageru/filter.h [moved from filter.h with 100% similarity]
nageru/flags.cpp [moved from flags.cpp with 100% similarity]
nageru/flags.h [moved from flags.h with 100% similarity]
nageru/glwidget.cpp [moved from glwidget.cpp with 100% similarity]
nageru/glwidget.h [moved from glwidget.h with 100% similarity]
nageru/httpd.cpp [moved from httpd.cpp with 100% similarity]
nageru/httpd.h [moved from httpd.h with 100% similarity]
nageru/image_input.cpp [moved from image_input.cpp with 100% similarity]
nageru/image_input.h [moved from image_input.h with 100% similarity]
nageru/input_mapping.cpp [moved from input_mapping.cpp with 100% similarity]
nageru/input_mapping.h [moved from input_mapping.h with 100% similarity]
nageru/input_mapping.ui [moved from input_mapping.ui with 100% similarity]
nageru/input_mapping_dialog.cpp [moved from input_mapping_dialog.cpp with 100% similarity]
nageru/input_mapping_dialog.h [moved from input_mapping_dialog.h with 100% similarity]
nageru/input_state.h [moved from input_state.h with 100% similarity]
nageru/json.proto [moved from json.proto with 100% similarity]
nageru/kaeru.cpp [moved from kaeru.cpp with 100% similarity]
nageru/lrameter.cpp [moved from lrameter.cpp with 100% similarity]
nageru/lrameter.h [moved from lrameter.h with 100% similarity]
nageru/main.cpp [moved from main.cpp with 100% similarity]
nageru/mainwindow.cpp [moved from mainwindow.cpp with 100% similarity]
nageru/mainwindow.h [moved from mainwindow.h with 100% similarity]
nageru/mainwindow.ui [moved from mainwindow.ui with 100% similarity]
nageru/memcpy_interleaved.cpp [moved from memcpy_interleaved.cpp with 100% similarity]
nageru/memcpy_interleaved.h [moved from memcpy_interleaved.h with 100% similarity]
nageru/meson.build [new file with mode: 0644]
nageru/metacube2.cpp [moved from metacube2.cpp with 100% similarity]
nageru/metacube2.h [moved from metacube2.h with 100% similarity]
nageru/metrics.cpp [moved from metrics.cpp with 100% similarity]
nageru/metrics.h [moved from metrics.h with 100% similarity]
nageru/midi_mapper.cpp [moved from midi_mapper.cpp with 100% similarity]
nageru/midi_mapper.h [moved from midi_mapper.h with 100% similarity]
nageru/midi_mapping.proto [moved from midi_mapping.proto with 100% similarity]
nageru/midi_mapping.ui [moved from midi_mapping.ui with 100% similarity]
nageru/midi_mapping_dialog.cpp [moved from midi_mapping_dialog.cpp with 100% similarity]
nageru/midi_mapping_dialog.h [moved from midi_mapping_dialog.h with 100% similarity]
nageru/mixer.cpp [moved from mixer.cpp with 100% similarity]
nageru/mixer.h [moved from mixer.h with 100% similarity]
nageru/mux.cpp [moved from mux.cpp with 100% similarity]
nageru/mux.h [moved from mux.h with 100% similarity]
nageru/nageru_cef_app.cpp [moved from nageru_cef_app.cpp with 100% similarity]
nageru/nageru_cef_app.h [moved from nageru_cef_app.h with 100% similarity]
nageru/nonlinear_fader.cpp [moved from nonlinear_fader.cpp with 100% similarity]
nageru/nonlinear_fader.h [moved from nonlinear_fader.h with 100% similarity]
nageru/pbo_frame_allocator.cpp [moved from pbo_frame_allocator.cpp with 100% similarity]
nageru/pbo_frame_allocator.h [moved from pbo_frame_allocator.h with 100% similarity]
nageru/piecewise_interpolator.cpp [moved from piecewise_interpolator.cpp with 100% similarity]
nageru/piecewise_interpolator.h [moved from piecewise_interpolator.h with 100% similarity]
nageru/post_to_main_thread.h [moved from post_to_main_thread.h with 100% similarity]
nageru/print_latency.cpp [moved from print_latency.cpp with 100% similarity]
nageru/print_latency.h [moved from print_latency.h with 100% similarity]
nageru/quicksync_encoder.cpp [moved from quicksync_encoder.cpp with 100% similarity]
nageru/quicksync_encoder.h [moved from quicksync_encoder.h with 100% similarity]
nageru/quicksync_encoder_impl.h [moved from quicksync_encoder_impl.h with 100% similarity]
nageru/quittable_sleeper.h [moved from quittable_sleeper.h with 100% similarity]
nageru/ref_counted_frame.cpp [moved from ref_counted_frame.cpp with 100% similarity]
nageru/ref_counted_frame.h [moved from ref_counted_frame.h with 100% similarity]
nageru/ref_counted_gl_sync.h [moved from ref_counted_gl_sync.h with 100% similarity]
nageru/resampling_queue.cpp [moved from resampling_queue.cpp with 100% similarity]
nageru/resampling_queue.h [moved from resampling_queue.h with 100% similarity]
nageru/scripts/compile_cef_dll_wrapper.sh [moved from scripts/compile_cef_dll_wrapper.sh with 100% similarity]
nageru/scripts/setup_nageru_symlink.sh [moved from scripts/setup_nageru_symlink.sh with 100% similarity]
nageru/simple.lua [moved from simple.lua with 100% similarity]
nageru/state.proto [moved from state.proto with 100% similarity]
nageru/stereocompressor.cpp [moved from stereocompressor.cpp with 100% similarity]
nageru/stereocompressor.h [moved from stereocompressor.h with 100% similarity]
nageru/theme.cpp [moved from theme.cpp with 100% similarity]
nageru/theme.h [moved from theme.h with 100% similarity]
nageru/theme.lua [moved from theme.lua with 100% similarity]
nageru/timebase.h [moved from timebase.h with 100% similarity]
nageru/timecode_renderer.cpp [moved from timecode_renderer.cpp with 100% similarity]
nageru/timecode_renderer.h [moved from timecode_renderer.h with 100% similarity]
nageru/tweaked_inputs.cpp [moved from tweaked_inputs.cpp with 100% similarity]
nageru/tweaked_inputs.h [moved from tweaked_inputs.h with 100% similarity]
nageru/v210_converter.cpp [moved from v210_converter.cpp with 100% similarity]
nageru/v210_converter.h [moved from v210_converter.h with 100% similarity]
nageru/video_encoder.cpp [moved from video_encoder.cpp with 100% similarity]
nageru/video_encoder.h [moved from video_encoder.h with 100% similarity]
nageru/vu_common.cpp [moved from vu_common.cpp with 100% similarity]
nageru/vu_common.h [moved from vu_common.h with 100% similarity]
nageru/vumeter.cpp [moved from vumeter.cpp with 100% similarity]
nageru/vumeter.h [moved from vumeter.h with 100% similarity]
nageru/x264_dynamic.cpp [moved from x264_dynamic.cpp with 100% similarity]
nageru/x264_dynamic.h [moved from x264_dynamic.h with 100% similarity]
nageru/x264_encoder.cpp [moved from x264_encoder.cpp with 100% similarity]
nageru/x264_encoder.h [moved from x264_encoder.h with 100% similarity]
nageru/x264_speed_control.cpp [moved from x264_speed_control.cpp with 100% similarity]
nageru/x264_speed_control.h [moved from x264_speed_control.h with 100% similarity]
nageru/ycbcr_interpretation.h [moved from ycbcr_interpretation.h with 100% similarity]

diff --git a/bmusb b/bmusb
index e9aa80b8e6a09cf2c8b3458a1c395b6f1b6a58cc..5163d25c65c3028090db1aea6587ec2fb4cb823e 160000 (submodule)
--- a/bmusb
+++ b/bmusb
@@ -1 +1 @@
-Subproject commit e9aa80b8e6a09cf2c8b3458a1c395b6f1b6a58cc
+Subproject commit 5163d25c65c3028090db1aea6587ec2fb4cb823e
index cc161f2dae4e4a12576960e7c89d398289564fa7..15184b878e0298c647f8e78b99cb03a2f933567e 100644 (file)
@@ -1,252 +1,3 @@
 project('nageru', 'cpp', default_options: ['buildtype=debugoptimized'])
-qt5 = import('qt5')
-protoc = find_program('protoc')
-cxx = meson.get_compiler('cpp')
+subdir('nageru')
 
-# Use lld if we can; it links a lot faster than ld.bfd or gold.
-nageru_link_args = []
-code = '''#include <stdio.h>
-int main() { printf("Hello, world!\n"); return 0; }
-'''
-if cxx.links(code, args: '-fuse-ld=lld', name: 'check for LLD')
-       nageru_link_args += '-fuse-ld=lld'
-endif
-
-embedded_bmusb = get_option('embedded_bmusb')
-
-alsadep = dependency('alsa')
-bmusbdep = dependency('bmusb', required: not embedded_bmusb)
-dldep = cxx.find_library('dl')
-epoxydep = dependency('epoxy')
-libavcodecdep = dependency('libavcodec')
-libavformatdep = dependency('libavformat')
-libavresampledep = dependency('libavresample')
-libavutildep = dependency('libavutil')
-libjpegdep = dependency('libjpeg')
-libmicrohttpddep = dependency('libmicrohttpd')
-libswscaledep = dependency('libswscale')
-libusbdep = dependency('libusb-1.0')
-luajitdep = dependency('luajit')
-movitdep = dependency('movit')
-protobufdep = dependency('protobuf')
-qcustomplotdep = cxx.find_library('qcustomplot')
-qt5deps = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGLExtensions', 'OpenGL', 'PrintSupport'])
-threaddep = dependency('threads')
-vadrmdep = dependency('libva-drm')
-vax11dep = dependency('libva-x11')
-x11dep = dependency('x11')
-x264dep = dependency('x264')
-zitaresamplerdep = cxx.find_library('zita-resampler')
-
-srcs = []
-nageru_deps = [qt5deps, libjpegdep, movitdep, libmicrohttpddep, protobufdep,
-       vax11dep, vadrmdep, x11dep, libavformatdep, libavresampledep, libavcodecdep, libavutildep,
-       libswscaledep, libusbdep, luajitdep, dldep, x264dep, alsadep, zitaresamplerdep,
-       qcustomplotdep, threaddep]
-nageru_include_dirs = []
-nageru_link_with = []
-nageru_build_rpath = ''
-nageru_install_rpath = ''
-
-kaeru_link_with = []
-kaeru_extra_deps = []
-
-# DeckLink has these issues, and we include it from various places.
-if cxx.has_argument('-Wno-non-virtual-dtor')
-       add_project_arguments('-Wno-non-virtual-dtor', language: 'cpp')
-endif
-
-# FFmpeg has a lot of deprecated APIs whose replacements are not available
-# in Debian stable, so we suppress these warnings.
-if cxx.has_argument('-Wno-deprecated-declarations')
-       add_project_arguments('-Wno-deprecated-declarations', language: 'cpp')
-endif
-
-# Add the right MOVIT_SHADER_DIR definition.
-r = run_command('pkg-config', '--variable=shaderdir', 'movit')
-if r.returncode() != 0
-       error('Movit pkg-config installation is broken.')
-endif
-add_project_arguments('-DMOVIT_SHADER_DIR="' + r.stdout().strip() + '"', language: 'cpp')
-
-# CEF.
-exe_dir = join_paths(get_option('prefix'), 'lib/nageru')
-cef_dir = get_option('cef_dir')
-cef_build_type = get_option('cef_build_type')
-have_cef = (cef_dir != '')
-if have_cef
-       add_project_arguments('-DHAVE_CEF=1', language: 'cpp')
-
-       system_cef = (cef_build_type == 'system')
-       if system_cef
-               cef_lib_dir = cef_dir
-               cef_resource_dir = '/usr/share/cef/Resources'
-       else
-               cef_lib_dir = join_paths(cef_dir, cef_build_type)
-               cef_resource_dir = join_paths(cef_dir, 'Resources')
-
-               nageru_include_dirs += include_directories(cef_dir)
-               nageru_include_dirs += include_directories(join_paths(cef_dir, 'include'))
-               nageru_build_rpath = cef_lib_dir
-               nageru_install_rpath = '$ORIGIN/'
-       endif
-
-       cefdep = cxx.find_library('cef')
-       nageru_deps += cefdep
-
-       # CEF wrapper library; not built as part of the CEF binary distribution,
-       # but should be if CEF is installed as a system library.
-       if system_cef
-               cefdlldep = cxx.find_library('cef_dll_wrapper')
-               nageru_deps += cefdlldep
-       else
-               cmake = find_program('cmake')
-               cef_compile_script = find_program('scripts/compile_cef_dll_wrapper.sh')
-
-               cef_dll_target = custom_target('libcef_dll_wrapper',
-                       input: join_paths(cef_dir, 'libcef_dll/CMakeLists.txt'),
-                       output: ['libcef_dll_wrapper.a', 'cef-stamp'],
-                       command: [cef_compile_script, '@BUILD_DIR@', cef_dir, cmake, '@OUTPUT@'])
-
-               # Putting the .a in sources seemingly hits a bug where the .a files get sorted
-               # in the wrong order. This is a workaround; see
-               # https://github.com/mesonbuild/meson/issues/3613#issuecomment-408276296 .
-               cefdlldep = declare_dependency(sources: cef_dll_target[1], link_args: cef_dll_target.full_path())
-               nageru_deps += cefdlldep
-       endif
-
-       cef_libs = ['libEGL.so', 'libGLESv2.so', 'natives_blob.bin', 'snapshot_blob.bin', 'v8_context_snapshot.bin']
-       cef_resources = ['cef.pak', 'cef_100_percent.pak', 'cef_200_percent.pak', 'cef_extensions.pak', 'devtools_resources.pak']
-       if not get_option('cef_no_icudtl')
-               cef_resources += ['icudtl.dat']
-       endif
-       if cef_build_type != 'system'
-               cef_libs += ['libcef.so']
-       endif
-
-       # Symlink the files into the build directory, so that running nageru without ninja install works.
-       run_command('mkdir', join_paths(meson.current_build_dir(), 'locales/'))
-       foreach file : cef_libs
-               run_command('ln', '-s', join_paths(cef_lib_dir, file), meson.current_build_dir())
-               install_data(join_paths(cef_lib_dir, file), install_dir: exe_dir)
-       endforeach
-       foreach file : cef_resources
-               run_command('ln', '-s', join_paths(cef_resource_dir, file), meson.current_build_dir())
-               install_data(join_paths(cef_resource_dir, file), install_dir: exe_dir)
-       endforeach
-       run_command('ln', '-s', join_paths(cef_resource_dir, 'locales/en-US.pak'), join_paths(meson.current_build_dir(), 'locales/'))
-       install_data(join_paths(cef_resource_dir, 'locales/en-US.pak'), install_dir: join_paths(exe_dir, 'locales'))
-endif
-
-# bmusb.
-if embedded_bmusb
-       bmusb_dir = include_directories('bmusb')
-       nageru_include_dirs += bmusb_dir
-
-       bmusb = static_library('bmusb', 'bmusb/bmusb.cpp', 'bmusb/fake_capture.cpp',
-               dependencies: [libusbdep],
-               include_directories: [bmusb_dir])
-       nageru_link_with += bmusb
-       kaeru_link_with += bmusb
-else
-       nageru_deps += bmusbdep
-       kaeru_extra_deps += bmusbdep
-endif
-
-# Protobuf compilation.
-gen = generator(protoc, \
-       output    : ['@BASENAME@.pb.cc', '@BASENAME@.pb.h'],
-       arguments : ['--proto_path=@CURRENT_SOURCE_DIR@', '--cpp_out=@BUILD_DIR@', '@INPUT@'])
-proto_generated = gen.process(['state.proto', 'midi_mapping.proto', 'json.proto'])
-protobuf_lib = static_library('protobufs', proto_generated, dependencies: nageru_deps, include_directories: nageru_include_dirs)
-protobuf_hdrs = declare_dependency(sources: proto_generated)
-nageru_link_with += protobuf_lib
-
-# Preprocess Qt as needed.
-qt_files = qt5.preprocess(
-       moc_headers: ['aboutdialog.h', 'analyzer.h', 'clickable_label.h', 'compression_reduction_meter.h', 'correlation_meter.h',
-               'ellipsis_label.h', 'glwidget.h', 'input_mapping_dialog.h', 'lrameter.h', 'mainwindow.h', 'midi_mapping_dialog.h',
-               'nonlinear_fader.h', 'vumeter.h'],
-       ui_files: ['aboutdialog.ui', 'analyzer.ui', 'audio_expanded_view.ui', 'audio_miniview.ui', 'display.ui',
-               'input_mapping.ui', 'mainwindow.ui', 'midi_mapping.ui'],
-       dependencies: qt5deps)
-
-# Qt objects.
-srcs += ['glwidget.cpp', 'mainwindow.cpp', 'vumeter.cpp', 'lrameter.cpp', 'compression_reduction_meter.cpp',
-       'correlation_meter.cpp', 'aboutdialog.cpp', 'analyzer.cpp', 'input_mapping_dialog.cpp', 'midi_mapping_dialog.cpp',
-       'nonlinear_fader.cpp', 'context_menus.cpp', 'vu_common.cpp', 'piecewise_interpolator.cpp', 'midi_mapper.cpp']
-
-# Auxiliary objects used for nearly everything.
-aux_srcs = ['metrics.cpp', 'flags.cpp']
-aux = static_library('aux', aux_srcs, dependencies: nageru_deps, include_directories: nageru_include_dirs)
-nageru_link_with += aux
-
-# Audio objects.
-audio_mixer_srcs = ['audio_mixer.cpp', 'alsa_input.cpp', 'alsa_pool.cpp', 'ebu_r128_proc.cc', 'stereocompressor.cpp',
-       'resampling_queue.cpp', 'flags.cpp', 'correlation_measurer.cpp', 'filter.cpp', 'input_mapping.cpp']
-audio = static_library('audio', audio_mixer_srcs, dependencies: [nageru_deps, protobuf_hdrs], include_directories: nageru_include_dirs)
-nageru_link_with += audio
-
-# 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',
-       'disk_space_estimator.cpp', 'timecode_renderer.cpp', 'tweaked_inputs.cpp']
-
-# Streaming and encoding objects (largely the set that is shared between Nageru and Kaeru).
-stream_srcs = ['quicksync_encoder.cpp', 'x264_encoder.cpp', 'x264_dynamic.cpp', 'x264_speed_control.cpp', 'video_encoder.cpp',
-       'metacube2.cpp', 'mux.cpp', 'audio_encoder.cpp', 'ffmpeg_raii.cpp', 'ffmpeg_util.cpp', 'httpd.cpp', 'ffmpeg_capture.cpp',
-       'print_latency.cpp', 'basic_stats.cpp', 'ref_counted_frame.cpp']
-stream = static_library('stream', stream_srcs, dependencies: nageru_deps, include_directories: nageru_include_dirs)
-nageru_link_with += stream
-
-# DeckLink.
-srcs += ['decklink_capture.cpp', 'decklink_util.cpp', 'decklink_output.cpp', 'memcpy_interleaved.cpp',
-       'decklink/DeckLinkAPIDispatch.cpp']
-decklink_dir = include_directories('decklink')
-nageru_include_dirs += decklink_dir
-
-# CEF input.
-if have_cef
-       srcs += ['nageru_cef_app.cpp', 'cef_capture.cpp']
-endif
-
-srcs += qt_files
-srcs += proto_generated
-
-# Everything except main.cpp. (We do this because if you specify a .cpp file in
-# both Nageru and Kaeru, it gets compiled twice. In the older Makefiles, Kaeru
-# depended on a smaller set of objects.)
-core = static_library('core', srcs, dependencies: nageru_deps, include_directories: nageru_include_dirs)
-nageru_link_with += core
-
-# Nageru executable; it goes into /usr/lib/nageru since CEF files go there, too
-# (we can't put them straight into /usr/bin).
-executable('nageru', 'main.cpp',
-       dependencies: nageru_deps,
-       include_directories: nageru_include_dirs,
-       link_with: nageru_link_with,
-       link_args: nageru_link_args,
-       build_rpath: nageru_build_rpath,
-       install_rpath: nageru_install_rpath,
-       install: true,
-       install_dir: exe_dir
-)
-meson.add_install_script('scripts/setup_nageru_symlink.sh')
-
-# Kaeru executable.
-executable('kaeru', 'kaeru.cpp',
-       dependencies: [nageru_deps, kaeru_extra_deps],
-       include_directories: nageru_include_dirs,
-       link_with: [stream, aux, kaeru_link_with],
-       link_args: nageru_link_args,
-       install: true)
-
-# Audio mixer microbenchmark.
-executable('benchmark_audio_mixer', 'benchmark_audio_mixer.cpp', dependencies: nageru_deps, include_directories: nageru_include_dirs, link_args: nageru_link_args, link_with: [audio, aux])
-
-# These are needed for a default run.
-data_files = ['theme.lua', 'simple.lua', 'bg.jpeg', 'akai_midimix.midimapping']
-install_data(data_files, install_dir: join_paths(get_option('prefix'), 'share/nageru'))
-foreach file : data_files
-       run_command('ln', '-s', join_paths(meson.current_source_dir(), file), meson.current_build_dir())
-endforeach
similarity index 100%
rename from aboutdialog.cpp
rename to nageru/aboutdialog.cpp
similarity index 100%
rename from aboutdialog.h
rename to nageru/aboutdialog.h
similarity index 100%
rename from aboutdialog.ui
rename to nageru/aboutdialog.ui
similarity index 100%
rename from alsa_input.cpp
rename to nageru/alsa_input.cpp
similarity index 100%
rename from alsa_input.h
rename to nageru/alsa_input.h
similarity index 100%
rename from alsa_output.cpp
rename to nageru/alsa_output.cpp
similarity index 100%
rename from alsa_output.h
rename to nageru/alsa_output.h
similarity index 100%
rename from alsa_pool.cpp
rename to nageru/alsa_pool.cpp
similarity index 100%
rename from alsa_pool.h
rename to nageru/alsa_pool.h
similarity index 100%
rename from analyzer.cpp
rename to nageru/analyzer.cpp
similarity index 100%
rename from analyzer.h
rename to nageru/analyzer.h
similarity index 100%
rename from analyzer.ui
rename to nageru/analyzer.ui
similarity index 100%
rename from audio_encoder.cpp
rename to nageru/audio_encoder.cpp
similarity index 100%
rename from audio_encoder.h
rename to nageru/audio_encoder.h
similarity index 100%
rename from audio_miniview.ui
rename to nageru/audio_miniview.ui
similarity index 100%
rename from audio_mixer.cpp
rename to nageru/audio_mixer.cpp
similarity index 100%
rename from audio_mixer.h
rename to nageru/audio_mixer.h
similarity index 100%
rename from basic_stats.cpp
rename to nageru/basic_stats.cpp
similarity index 100%
rename from basic_stats.h
rename to nageru/basic_stats.h
similarity index 100%
rename from bg.jpeg
rename to nageru/bg.jpeg
similarity index 100%
rename from cef_capture.cpp
rename to nageru/cef_capture.cpp
similarity index 100%
rename from cef_capture.h
rename to nageru/cef_capture.h
similarity index 100%
rename from clickable_label.h
rename to nageru/clickable_label.h
similarity index 100%
rename from context.cpp
rename to nageru/context.cpp
similarity index 100%
rename from context.h
rename to nageru/context.h
similarity index 100%
rename from context_menus.cpp
rename to nageru/context_menus.cpp
similarity index 100%
rename from context_menus.h
rename to nageru/context_menus.h
similarity index 100%
rename from db.h
rename to nageru/db.h
similarity index 100%
rename from decklink_capture.h
rename to nageru/decklink_capture.h
similarity index 100%
rename from decklink_output.h
rename to nageru/decklink_output.h
similarity index 100%
rename from decklink_util.cpp
rename to nageru/decklink_util.cpp
similarity index 100%
rename from decklink_util.h
rename to nageru/decklink_util.h
similarity index 100%
rename from defs.h
rename to nageru/defs.h
similarity index 100%
rename from display.ui
rename to nageru/display.ui
similarity index 100%
rename from ebu_r128_proc.cc
rename to nageru/ebu_r128_proc.cc
similarity index 100%
rename from ebu_r128_proc.h
rename to nageru/ebu_r128_proc.h
similarity index 100%
rename from ellipsis_label.h
rename to nageru/ellipsis_label.h
similarity index 100%
rename from ffmpeg_capture.cpp
rename to nageru/ffmpeg_capture.cpp
similarity index 100%
rename from ffmpeg_capture.h
rename to nageru/ffmpeg_capture.h
similarity index 100%
rename from ffmpeg_raii.cpp
rename to nageru/ffmpeg_raii.cpp
similarity index 100%
rename from ffmpeg_raii.h
rename to nageru/ffmpeg_raii.h
similarity index 100%
rename from ffmpeg_util.cpp
rename to nageru/ffmpeg_util.cpp
similarity index 100%
rename from ffmpeg_util.h
rename to nageru/ffmpeg_util.h
similarity index 100%
rename from filter.cpp
rename to nageru/filter.cpp
similarity index 100%
rename from filter.h
rename to nageru/filter.h
similarity index 100%
rename from flags.cpp
rename to nageru/flags.cpp
similarity index 100%
rename from flags.h
rename to nageru/flags.h
similarity index 100%
rename from glwidget.cpp
rename to nageru/glwidget.cpp
similarity index 100%
rename from glwidget.h
rename to nageru/glwidget.h
similarity index 100%
rename from httpd.cpp
rename to nageru/httpd.cpp
similarity index 100%
rename from httpd.h
rename to nageru/httpd.h
similarity index 100%
rename from image_input.cpp
rename to nageru/image_input.cpp
similarity index 100%
rename from image_input.h
rename to nageru/image_input.h
similarity index 100%
rename from input_mapping.cpp
rename to nageru/input_mapping.cpp
similarity index 100%
rename from input_mapping.h
rename to nageru/input_mapping.h
similarity index 100%
rename from input_mapping.ui
rename to nageru/input_mapping.ui
similarity index 100%
rename from input_state.h
rename to nageru/input_state.h
similarity index 100%
rename from json.proto
rename to nageru/json.proto
similarity index 100%
rename from kaeru.cpp
rename to nageru/kaeru.cpp
similarity index 100%
rename from lrameter.cpp
rename to nageru/lrameter.cpp
similarity index 100%
rename from lrameter.h
rename to nageru/lrameter.h
similarity index 100%
rename from main.cpp
rename to nageru/main.cpp
similarity index 100%
rename from mainwindow.cpp
rename to nageru/mainwindow.cpp
similarity index 100%
rename from mainwindow.h
rename to nageru/mainwindow.h
similarity index 100%
rename from mainwindow.ui
rename to nageru/mainwindow.ui
diff --git a/nageru/meson.build b/nageru/meson.build
new file mode 100644 (file)
index 0000000..bc93a28
--- /dev/null
@@ -0,0 +1,251 @@
+qt5 = import('qt5')
+protoc = find_program('protoc')
+cxx = meson.get_compiler('cpp')
+
+# Use lld if we can; it links a lot faster than ld.bfd or gold.
+nageru_link_args = []
+code = '''#include <stdio.h>
+int main() { printf("Hello, world!\n"); return 0; }
+'''
+if cxx.links(code, args: '-fuse-ld=lld', name: 'check for LLD')
+       nageru_link_args += '-fuse-ld=lld'
+endif
+
+embedded_bmusb = get_option('embedded_bmusb')
+
+alsadep = dependency('alsa')
+bmusbdep = dependency('bmusb', required: not embedded_bmusb)
+dldep = cxx.find_library('dl')
+epoxydep = dependency('epoxy')
+libavcodecdep = dependency('libavcodec')
+libavformatdep = dependency('libavformat')
+libavresampledep = dependency('libavresample')
+libavutildep = dependency('libavutil')
+libjpegdep = dependency('libjpeg')
+libmicrohttpddep = dependency('libmicrohttpd')
+libswscaledep = dependency('libswscale')
+libusbdep = dependency('libusb-1.0')
+luajitdep = dependency('luajit')
+movitdep = dependency('movit')
+protobufdep = dependency('protobuf')
+qcustomplotdep = cxx.find_library('qcustomplot')
+qt5deps = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGLExtensions', 'OpenGL', 'PrintSupport'])
+threaddep = dependency('threads')
+vadrmdep = dependency('libva-drm')
+vax11dep = dependency('libva-x11')
+x11dep = dependency('x11')
+x264dep = dependency('x264')
+zitaresamplerdep = cxx.find_library('zita-resampler')
+
+srcs = []
+nageru_deps = [qt5deps, libjpegdep, movitdep, libmicrohttpddep, protobufdep,
+       vax11dep, vadrmdep, x11dep, libavformatdep, libavresampledep, libavcodecdep, libavutildep,
+       libswscaledep, libusbdep, luajitdep, dldep, x264dep, alsadep, zitaresamplerdep,
+       qcustomplotdep, threaddep]
+nageru_include_dirs = []
+nageru_link_with = []
+nageru_build_rpath = ''
+nageru_install_rpath = ''
+
+kaeru_link_with = []
+kaeru_extra_deps = []
+
+# DeckLink has these issues, and we include it from various places.
+if cxx.has_argument('-Wno-non-virtual-dtor')
+       add_project_arguments('-Wno-non-virtual-dtor', language: 'cpp')
+endif
+
+# FFmpeg has a lot of deprecated APIs whose replacements are not available
+# in Debian stable, so we suppress these warnings.
+if cxx.has_argument('-Wno-deprecated-declarations')
+       add_project_arguments('-Wno-deprecated-declarations', language: 'cpp')
+endif
+
+# Add the right MOVIT_SHADER_DIR definition.
+r = run_command('pkg-config', '--variable=shaderdir', 'movit')
+if r.returncode() != 0
+       error('Movit pkg-config installation is broken.')
+endif
+add_project_arguments('-DMOVIT_SHADER_DIR="' + r.stdout().strip() + '"', language: 'cpp')
+
+# CEF.
+exe_dir = join_paths(get_option('prefix'), 'lib/nageru')
+cef_dir = get_option('cef_dir')
+cef_build_type = get_option('cef_build_type')
+have_cef = (cef_dir != '')
+if have_cef
+       add_project_arguments('-DHAVE_CEF=1', language: 'cpp')
+
+       system_cef = (cef_build_type == 'system')
+       if system_cef
+               cef_lib_dir = cef_dir
+               cef_resource_dir = '/usr/share/cef/Resources'
+       else
+               cef_lib_dir = join_paths(cef_dir, cef_build_type)
+               cef_resource_dir = join_paths(cef_dir, 'Resources')
+
+               nageru_include_dirs += include_directories(cef_dir)
+               nageru_include_dirs += include_directories(join_paths(cef_dir, 'include'))
+               nageru_build_rpath = cef_lib_dir
+               nageru_install_rpath = '$ORIGIN/'
+       endif
+
+       cefdep = cxx.find_library('cef')
+       nageru_deps += cefdep
+
+       # CEF wrapper library; not built as part of the CEF binary distribution,
+       # but should be if CEF is installed as a system library.
+       if system_cef
+               cefdlldep = cxx.find_library('cef_dll_wrapper')
+               nageru_deps += cefdlldep
+       else
+               cmake = find_program('cmake')
+               cef_compile_script = find_program('scripts/compile_cef_dll_wrapper.sh')
+
+               cef_dll_target = custom_target('libcef_dll_wrapper',
+                       input: join_paths(cef_dir, 'libcef_dll/CMakeLists.txt'),
+                       output: ['libcef_dll_wrapper.a', 'cef-stamp'],
+                       command: [cef_compile_script, '@BUILD_DIR@', cef_dir, cmake, '@OUTPUT@'])
+
+               # Putting the .a in sources seemingly hits a bug where the .a files get sorted
+               # in the wrong order. This is a workaround; see
+               # https://github.com/mesonbuild/meson/issues/3613#issuecomment-408276296 .
+               cefdlldep = declare_dependency(sources: cef_dll_target[1], link_args: cef_dll_target.full_path())
+               nageru_deps += cefdlldep
+       endif
+
+       cef_libs = ['libEGL.so', 'libGLESv2.so', 'natives_blob.bin', 'snapshot_blob.bin', 'v8_context_snapshot.bin']
+       cef_resources = ['cef.pak', 'cef_100_percent.pak', 'cef_200_percent.pak', 'cef_extensions.pak', 'devtools_resources.pak']
+       if not get_option('cef_no_icudtl')
+               cef_resources += ['icudtl.dat']
+       endif
+       if cef_build_type != 'system'
+               cef_libs += ['libcef.so']
+       endif
+
+       # Symlink the files into the build directory, so that running nageru without ninja install works.
+       run_command('mkdir', join_paths(meson.current_build_dir(), 'locales/'))
+       foreach file : cef_libs
+               run_command('ln', '-s', join_paths(cef_lib_dir, file), meson.current_build_dir())
+               install_data(join_paths(cef_lib_dir, file), install_dir: exe_dir)
+       endforeach
+       foreach file : cef_resources
+               run_command('ln', '-s', join_paths(cef_resource_dir, file), meson.current_build_dir())
+               install_data(join_paths(cef_resource_dir, file), install_dir: exe_dir)
+       endforeach
+       run_command('ln', '-s', join_paths(cef_resource_dir, 'locales/en-US.pak'), join_paths(meson.current_build_dir(), 'locales/'))
+       install_data(join_paths(cef_resource_dir, 'locales/en-US.pak'), install_dir: join_paths(exe_dir, 'locales'))
+endif
+
+# bmusb.
+if embedded_bmusb
+       bmusb_dir = include_directories('bmusb')
+       nageru_include_dirs += bmusb_dir
+
+       bmusb = static_library('bmusb', 'bmusb/bmusb.cpp', 'bmusb/fake_capture.cpp',
+               dependencies: [libusbdep],
+               include_directories: [bmusb_dir])
+       nageru_link_with += bmusb
+       kaeru_link_with += bmusb
+else
+       nageru_deps += bmusbdep
+       kaeru_extra_deps += bmusbdep
+endif
+
+# Protobuf compilation.
+gen = generator(protoc, \
+       output    : ['@BASENAME@.pb.cc', '@BASENAME@.pb.h'],
+       arguments : ['--proto_path=@CURRENT_SOURCE_DIR@', '--cpp_out=@BUILD_DIR@', '@INPUT@'])
+proto_generated = gen.process(['state.proto', 'midi_mapping.proto', 'json.proto'])
+protobuf_lib = static_library('protobufs', proto_generated, dependencies: nageru_deps, include_directories: nageru_include_dirs)
+protobuf_hdrs = declare_dependency(sources: proto_generated)
+nageru_link_with += protobuf_lib
+
+# Preprocess Qt as needed.
+qt_files = qt5.preprocess(
+       moc_headers: ['aboutdialog.h', 'analyzer.h', 'clickable_label.h', 'compression_reduction_meter.h', 'correlation_meter.h',
+               'ellipsis_label.h', 'glwidget.h', 'input_mapping_dialog.h', 'lrameter.h', 'mainwindow.h', 'midi_mapping_dialog.h',
+               'nonlinear_fader.h', 'vumeter.h'],
+       ui_files: ['aboutdialog.ui', 'analyzer.ui', 'audio_expanded_view.ui', 'audio_miniview.ui', 'display.ui',
+               'input_mapping.ui', 'mainwindow.ui', 'midi_mapping.ui'],
+       dependencies: qt5deps)
+
+# Qt objects.
+srcs += ['glwidget.cpp', 'mainwindow.cpp', 'vumeter.cpp', 'lrameter.cpp', 'compression_reduction_meter.cpp',
+       'correlation_meter.cpp', 'aboutdialog.cpp', 'analyzer.cpp', 'input_mapping_dialog.cpp', 'midi_mapping_dialog.cpp',
+       'nonlinear_fader.cpp', 'context_menus.cpp', 'vu_common.cpp', 'piecewise_interpolator.cpp', 'midi_mapper.cpp']
+
+# Auxiliary objects used for nearly everything.
+aux_srcs = ['metrics.cpp', 'flags.cpp']
+aux = static_library('aux', aux_srcs, dependencies: nageru_deps, include_directories: nageru_include_dirs)
+nageru_link_with += aux
+
+# Audio objects.
+audio_mixer_srcs = ['audio_mixer.cpp', 'alsa_input.cpp', 'alsa_pool.cpp', 'ebu_r128_proc.cc', 'stereocompressor.cpp',
+       'resampling_queue.cpp', 'flags.cpp', 'correlation_measurer.cpp', 'filter.cpp', 'input_mapping.cpp']
+audio = static_library('audio', audio_mixer_srcs, dependencies: [nageru_deps, protobuf_hdrs], include_directories: nageru_include_dirs)
+nageru_link_with += audio
+
+# 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',
+       'disk_space_estimator.cpp', 'timecode_renderer.cpp', 'tweaked_inputs.cpp']
+
+# Streaming and encoding objects (largely the set that is shared between Nageru and Kaeru).
+stream_srcs = ['quicksync_encoder.cpp', 'x264_encoder.cpp', 'x264_dynamic.cpp', 'x264_speed_control.cpp', 'video_encoder.cpp',
+       'metacube2.cpp', 'mux.cpp', 'audio_encoder.cpp', 'ffmpeg_raii.cpp', 'ffmpeg_util.cpp', 'httpd.cpp', 'ffmpeg_capture.cpp',
+       'print_latency.cpp', 'basic_stats.cpp', 'ref_counted_frame.cpp']
+stream = static_library('stream', stream_srcs, dependencies: nageru_deps, include_directories: nageru_include_dirs)
+nageru_link_with += stream
+
+# DeckLink.
+srcs += ['decklink_capture.cpp', 'decklink_util.cpp', 'decklink_output.cpp', 'memcpy_interleaved.cpp',
+       'decklink/DeckLinkAPIDispatch.cpp']
+decklink_dir = include_directories('decklink')
+nageru_include_dirs += decklink_dir
+
+# CEF input.
+if have_cef
+       srcs += ['nageru_cef_app.cpp', 'cef_capture.cpp']
+endif
+
+srcs += qt_files
+srcs += proto_generated
+
+# Everything except main.cpp. (We do this because if you specify a .cpp file in
+# both Nageru and Kaeru, it gets compiled twice. In the older Makefiles, Kaeru
+# depended on a smaller set of objects.)
+core = static_library('core', srcs, dependencies: nageru_deps, include_directories: nageru_include_dirs)
+nageru_link_with += core
+
+# Nageru executable; it goes into /usr/lib/nageru since CEF files go there, too
+# (we can't put them straight into /usr/bin).
+executable('nageru', 'main.cpp',
+       dependencies: nageru_deps,
+       include_directories: nageru_include_dirs,
+       link_with: nageru_link_with,
+       link_args: nageru_link_args,
+       build_rpath: nageru_build_rpath,
+       install_rpath: nageru_install_rpath,
+       install: true,
+       install_dir: exe_dir
+)
+meson.add_install_script('scripts/setup_nageru_symlink.sh')
+
+# Kaeru executable.
+executable('kaeru', 'kaeru.cpp',
+       dependencies: [nageru_deps, kaeru_extra_deps],
+       include_directories: nageru_include_dirs,
+       link_with: [stream, aux, kaeru_link_with],
+       link_args: nageru_link_args,
+       install: true)
+
+# Audio mixer microbenchmark.
+executable('benchmark_audio_mixer', 'benchmark_audio_mixer.cpp', dependencies: nageru_deps, include_directories: nageru_include_dirs, link_args: nageru_link_args, link_with: [audio, aux])
+
+# These are needed for a default run.
+data_files = ['theme.lua', 'simple.lua', 'bg.jpeg', 'akai_midimix.midimapping']
+install_data(data_files, install_dir: join_paths(get_option('prefix'), 'share/nageru'))
+foreach file : data_files
+       run_command('ln', '-s', join_paths(meson.current_source_dir(), file), meson.current_build_dir())
+endforeach
similarity index 100%
rename from metacube2.cpp
rename to nageru/metacube2.cpp
similarity index 100%
rename from metacube2.h
rename to nageru/metacube2.h
similarity index 100%
rename from metrics.cpp
rename to nageru/metrics.cpp
similarity index 100%
rename from metrics.h
rename to nageru/metrics.h
similarity index 100%
rename from midi_mapper.cpp
rename to nageru/midi_mapper.cpp
similarity index 100%
rename from midi_mapper.h
rename to nageru/midi_mapper.h
similarity index 100%
rename from midi_mapping.proto
rename to nageru/midi_mapping.proto
similarity index 100%
rename from midi_mapping.ui
rename to nageru/midi_mapping.ui
similarity index 100%
rename from mixer.cpp
rename to nageru/mixer.cpp
similarity index 100%
rename from mixer.h
rename to nageru/mixer.h
similarity index 100%
rename from mux.cpp
rename to nageru/mux.cpp
similarity index 100%
rename from mux.h
rename to nageru/mux.h
similarity index 100%
rename from nageru_cef_app.cpp
rename to nageru/nageru_cef_app.cpp
similarity index 100%
rename from nageru_cef_app.h
rename to nageru/nageru_cef_app.h
similarity index 100%
rename from nonlinear_fader.h
rename to nageru/nonlinear_fader.h
similarity index 100%
rename from print_latency.cpp
rename to nageru/print_latency.cpp
similarity index 100%
rename from print_latency.h
rename to nageru/print_latency.h
similarity index 100%
rename from resampling_queue.h
rename to nageru/resampling_queue.h
similarity index 100%
rename from simple.lua
rename to nageru/simple.lua
similarity index 100%
rename from state.proto
rename to nageru/state.proto
similarity index 100%
rename from stereocompressor.h
rename to nageru/stereocompressor.h
similarity index 100%
rename from theme.cpp
rename to nageru/theme.cpp
similarity index 100%
rename from theme.h
rename to nageru/theme.h
similarity index 100%
rename from theme.lua
rename to nageru/theme.lua
similarity index 100%
rename from timebase.h
rename to nageru/timebase.h
similarity index 100%
rename from tweaked_inputs.cpp
rename to nageru/tweaked_inputs.cpp
similarity index 100%
rename from tweaked_inputs.h
rename to nageru/tweaked_inputs.h
similarity index 100%
rename from v210_converter.cpp
rename to nageru/v210_converter.cpp
similarity index 100%
rename from v210_converter.h
rename to nageru/v210_converter.h
similarity index 100%
rename from video_encoder.cpp
rename to nageru/video_encoder.cpp
similarity index 100%
rename from video_encoder.h
rename to nageru/video_encoder.h
similarity index 100%
rename from vu_common.cpp
rename to nageru/vu_common.cpp
similarity index 100%
rename from vu_common.h
rename to nageru/vu_common.h
similarity index 100%
rename from vumeter.cpp
rename to nageru/vumeter.cpp
similarity index 100%
rename from vumeter.h
rename to nageru/vumeter.h
similarity index 100%
rename from x264_dynamic.cpp
rename to nageru/x264_dynamic.cpp
similarity index 100%
rename from x264_dynamic.h
rename to nageru/x264_dynamic.h
similarity index 100%
rename from x264_encoder.cpp
rename to nageru/x264_encoder.cpp
similarity index 100%
rename from x264_encoder.h
rename to nageru/x264_encoder.h