wivrn namespace: move all server classes
This commit is contained in:
@@ -61,6 +61,9 @@ bool set_log_level()
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
bool VideoEncoderFFMPEG::once = set_log_level();
|
||||
|
||||
std::optional<wivrn::VideoEncoder::data> VideoEncoderFFMPEG::encode(bool idr, std::chrono::steady_clock::time_point target_timestamp, uint8_t slot)
|
||||
@@ -94,3 +97,4 @@ VideoEncoderFFMPEG::mute_logs::~mute_logs()
|
||||
{
|
||||
set_log_level();
|
||||
}
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
#include "ffmpeg_helper.h"
|
||||
#include <chrono>
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
class VideoEncoderFFMPEG : public wivrn::VideoEncoder
|
||||
{
|
||||
public:
|
||||
@@ -47,3 +50,4 @@ protected:
|
||||
private:
|
||||
static bool once;
|
||||
};
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -40,6 +40,9 @@ extern "C"
|
||||
#include <libavutil/pixdesc.h>
|
||||
}
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
namespace
|
||||
{
|
||||
const char *
|
||||
@@ -475,3 +478,4 @@ void video_encoder_va::push_frame(bool idr, std::chrono::steady_clock::time_poin
|
||||
throw std::system_error(err, av_error_category(), "avcodec_send_frame failed");
|
||||
}
|
||||
}
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
namespace wivrn
|
||||
{
|
||||
struct encoder_settings;
|
||||
}
|
||||
|
||||
class video_encoder_va : public VideoEncoderFFMPEG
|
||||
{
|
||||
@@ -52,3 +51,4 @@ public:
|
||||
protected:
|
||||
void push_frame(bool idr, std::chrono::steady_clock::time_point pts, uint8_t slot) override;
|
||||
};
|
||||
} // namespace wivrn
|
||||
|
||||
Reference in New Issue
Block a user