-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add a blank implement for the linux platform
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#include <bits/stdc++.h> | ||
#include <functional> | ||
|
||
#include <termios.h> | ||
#include <unistd.h> | ||
#include <fcntl.h> | ||
#include <sys/mman.h> | ||
|
||
#include "maix_uvc_stream.hpp" | ||
|
||
extern "C" { | ||
|
||
extern int uvc_main_exist; | ||
extern int uvc_main(int argc, char *argv[]); | ||
|
||
int uvc_video_fill_mjpg_buffer(void *buf, uint32_t *size) { | ||
return -1; | ||
} | ||
|
||
} | ||
|
||
namespace maix::uvc | ||
{ | ||
int helper_fill_mjpg_image(void* buf, uint32_t* size, image::Image *img) { | ||
return -1; | ||
} | ||
|
||
// 静态成员定义 | ||
UvcServer *UvcServer::_instance = nullptr; | ||
|
||
void UvcServer::run() { } | ||
|
||
void UvcServer::stop() { } | ||
|
||
UvcStreamer::UvcStreamer(): _using_jpeg(0) { } | ||
|
||
UvcStreamer::~UvcStreamer() { } | ||
|
||
|
||
err::Err UvcStreamer::show(image::Image *img) { | ||
return err::ERR_NOT_IMPL; | ||
} | ||
|
||
} |