Skip to content

Instantly share code, notes, and snippets.

@batousik
batousik / file.cpp
Created February 3, 2020 12:17
v4l2-cpp jpeg frame reader
#pragma ide diagnostic ignored "hicpp-signed-bitwise"
#include "CameraExtractor.h"
#include <boost/log/trivial.hpp>
#include <boost/format.hpp>
#include <boost/chrono/chrono.hpp>
#include <fcntl.h> /* low-level i/o */
@batousik
batousik / CMakeLists.txt
Created July 20, 2019 20:34
CMake file to compile live555 for android
cmake_minimum_required(VERSION 3.10.2)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -Wall -fexceptions -DXLOCALE_NOT_USED=1 -DNULL=0 -DNO_SSTREAM=1 -DSOCKLEN_T=socklen_t -UIP_ADD_SOURCE_MEMBERSHIP")
#live555 include directories
include_directories(
live/BasicUsageEnvironment/include
live/liveMedia/include
live/groupsock/include
@batousik
batousik / opengl.cpp
Created July 14, 2019 04:16
opengl_test
//#include <iostream>
//
//
//#include <cstdio>
//#include <cstdlib>
//#include <iostream>
//#include <fstream>
//#include <sstream>
//#include <glad/glad.h>
workbench.main.js:2370 Error
onDidNotificationChange @ workbench.main.js:2370
_register.model.onDidNotificationChange.e @ workbench.main.js:2370
fire @ workbench.main.js:75
notify @ workbench.main.js:2425
error @ workbench.main.js:3690
telemetryActionsListener.toolBar.actionRunner.onDidRun.e @ workbench.main.js:4881
fire @ workbench.main.js:75
e.enabled.runAction.then.t @ workbench.main.js:93
_tickCallback @ internal/process/next_tick.js:68