This file contains hidden or 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
#include "channelwriter.hpp" | |
#include <cstdint> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <dirent.h> | |
#include <fcntl.h> | |
#include <iostream> | |
#include <libgen.h> |
This file contains hidden or 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
#ifndef DESKTOP_COMPILATION | |
#include "dv_source.hpp" | |
#endif | |
#include "tcp_source.hpp" | |
#include "Samples.h" | |
#include "Include_i.h" | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains hidden or 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
CXX := arm-hisiv300-linux-g++ | |
CC := arm-hisiv300-linux-gcc | |
BIN := REVOSender | |
INC_FLAGS := -I ../libStreamServer/libGetDVStream | |
INC_FLAGS += -I ../libStreamServer/libDVStream | |
INC_FLAGS += -I ../libStreamServer/libIpcUtils | |
INC_FLAGS += -I../REVOServer | |
INC_FLAGS += -I../libCipher |
This file contains hidden or 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
: | |
CC=arm-hisiv300-linux-gcc CXX=arm-hisiv300-linux-g++ AR=arm-hisiv300-linux-ar cmake .. -DBUILD_OPENSSL=TRUE -DBUILD_OPENSSL_PLATFORM=linux-generic32 -DBUILD_LIBSRTP_HOST_PLATFORM=x86_64-unknown-linux-gnu -DBUILD_LIBSRTP_DESTINATION_PLATFORM=arm-unknown-linux-uclibcgnueabi |
This file contains hidden or 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
#include "shared_memory_communicator.hpp" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
enum | |
{ | |
MSG_DV_TYPE_START = 0, | |
MSG_DV_TYPE_MSG1, |
This file contains hidden or 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
<html> | |
<body> | |
</body> | |
</html> | |
<!-- Reference: https://github.com/brkho/client-server-webrtc-example/blob/master/client/example-client.js --> | |
<!-- stund -v -h 192.168.18.3 -a 127.0.0.1 --> | |
<script> | |
var config = {iceServers: [{ url: 'stun:localhost:3478'}]}; | |
rtcPeerConnection = new RTCPeerConnection(config); | |
var dataChannelConfig = {ordered: true, maxRetransmits: 10}; |
This file contains hidden or 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
Connect to serial on Linux: | |
sudo chmod 777 /dev/ttyUSB0 | |
screen -L /dev/ttyUSB0 115200 | |
This file contains hidden or 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
#include <stdio.h> | |
#include <errno.h> | |
#include <netdb.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
int main(int argc, char *argv[]) | |
{ |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <stdint.h> | |
int main() | |
{ | |
time_t currentTime = time(NULL); | |
struct tm* localTime = localtime(¤tTime); | |
char dateStr[100]; |
This file contains hidden or 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
void extractRoi(cv::Mat& inImage, cv::Mat& outImage, cv::Rect roi) | |
{ | |
/* Create the image */ | |
outImage = cv::Mat(roi.height, roi.width, inImage.type()); | |
/* Populate the image */ | |
for (int i = roi.y; i < (roi.y+roi.height); i++) | |
{ | |
uint16_t* inP = inImage.ptr<uint16_t>(i); | |
uint16_t* outP = outImage.ptr<uint16_t>(i-roi.y); |