Set WIVRN_USE_V4L2 in wivrn_config.h

This commit is contained in:
Patrick Nicolas authored and xytovl committed 2026-09-29 19:22:33 +02:00
1 parent 24e4eba130
commit 07131bec85
6 files changed
+10 -10

No files matched your search

+3 -5
View File
@@ -20,13 +20,11 @@
#ifdef __ANDROID__
#include "decoder/android/android_decoder.h"
#else
#ifdef WIVRN_USE_V4L2
#elif WIVRN_USE_V4L2
#include "decoder/v4l2/v4l2_decoder.h"
#else
#include "decoder/ffmpeg/ffmpeg_decoder.h"
#endif
#endif
#include "decoder/raw_decoder.h"
wivrn::decoder::~decoder() = default;
@@ -53,7 +51,7 @@ std::shared_ptr<wivrn::decoder> wivrn::decoder::make(
stream_index,
scene,
acc);
#elifdef WIVRN_USE_V4L2
#elif WIVRN_USE_V4L2
return std::make_shared<wivrn::v4l2::decoder>(
device, phys_dev, vk_queue_family_index, description, stream_index, scene, acc);
#else
@@ -78,7 +76,7 @@ static std::vector<wivrn::video_codec> supported_codecs_()
std::vector<wivrn::video_codec> res;
#ifdef __ANDROID__
wivrn::android::decoder::supported_codecs(res);
#elifdef WIVRN_USE_V4L2
#elif WIVRN_USE_V4L2
wivrn::v4l2::decoder::supported_codecs(res);
#else
wivrn::ffmpeg::decoder::supported_codecs(res);