mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 03:22:07 +08:00
ui/replay: file extensions to .cc and .h (#20805)
old-commit-hash: bdf4a94cd03746e498d21d8224e625135632b1c3
This commit is contained in:
@@ -64,7 +64,7 @@ if arch == 'x86_64' and os.path.exists(Dir("#tools/").get_abspath()):
|
||||
qt_env['CXXFLAGS'] += ["-Wno-deprecated-declarations"]
|
||||
|
||||
replay_lib_src = ["replay/replay.cc", "replay/Unlogger.cc",
|
||||
"replay/FileReader.cc", "#tools/clib/FrameReader.cpp"]
|
||||
"replay/FileReader.cc", "#tools/clib/FrameReader.cc"]
|
||||
|
||||
replay_lib = qt_env.Library("qt_replay", replay_lib_src, LIBS=base_libs)
|
||||
replay_libs = [replay_lib, 'avutil', 'avcodec', 'avformat', 'swscale', 'bz2'] + qt_libs
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "FileReader.h"
|
||||
#include "FrameReader.hpp"
|
||||
#include "FrameReader.h"
|
||||
|
||||
#include <QtNetwork>
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "cereal/gen/cpp/log.capnp.h"
|
||||
|
||||
#include <thread>
|
||||
#include "channel.hpp"
|
||||
#include "channel.h"
|
||||
|
||||
class FileReader : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "clutil.h"
|
||||
#include "messaging.hpp"
|
||||
#include "FileReader.h"
|
||||
#include "FrameReader.hpp"
|
||||
#include "FrameReader.h"
|
||||
#include "visionipc_server.h"
|
||||
|
||||
class Unlogger : public QObject {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "qt/api.h"
|
||||
#include "Unlogger.h"
|
||||
#include "FileReader.h"
|
||||
#include "FrameReader.hpp"
|
||||
#include "FrameReader.h"
|
||||
#include "visionipc_server.h"
|
||||
|
||||
#include "common/util.h"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "FrameReader.hpp"
|
||||
#include "FrameReader.h"
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <list>
|
||||
#include <condition_variable>
|
||||
|
||||
#include "channel.hpp"
|
||||
#include "channel.h"
|
||||
|
||||
// independent of QT, needs ffmpeg
|
||||
extern "C" {
|
||||
@@ -4,5 +4,5 @@ env['CPPPATH'] += [get_paths()['include']]
|
||||
|
||||
from Cython.Build import cythonize
|
||||
cythonize("cframereader.pyx")
|
||||
env.SharedLibrary(File('cframereader.so'), ['cframereader.cpp', 'FrameReader.cpp'], LIBS=['avformat', 'avcodec', 'avutil', 'swscale'])
|
||||
env.SharedLibrary(File('cframereader.so'), ['cframereader.cpp', 'FrameReader.cc'], LIBS=['avformat', 'avcodec', 'avutil', 'swscale'])
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# distutils: language = c++
|
||||
# cython: language_level=3
|
||||
|
||||
cdef extern from "FrameReader.hpp":
|
||||
cdef extern from "FrameReader.h":
|
||||
cdef cppclass CFrameReader "FrameReader":
|
||||
CFrameReader(const char *)
|
||||
char *get(int)
|
||||
|
||||
Reference in New Issue
Block a user