mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-05-27 07:46:15 +00:00
codebase refactoring
This commit is contained in:
@@ -39,9 +39,10 @@
|
||||
#include <linux/videodev2.h>
|
||||
#include <linux/v4l2-controls.h>
|
||||
|
||||
#include "tools.h"
|
||||
#include "logging.h"
|
||||
#include "threading.h"
|
||||
#include "../common/tools.h"
|
||||
#include "../common/logging.h"
|
||||
#include "../common/threading.h"
|
||||
|
||||
#include "xioctl.h"
|
||||
#include "picture.h"
|
||||
|
||||
@@ -29,9 +29,10 @@
|
||||
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
#include "tools.h"
|
||||
#include "threading.h"
|
||||
#include "logging.h"
|
||||
#include "../common/tools.h"
|
||||
#include "../common/threading.h"
|
||||
#include "../common/logging.h"
|
||||
|
||||
#include "device.h"
|
||||
|
||||
#include "encoders/cpu/encoder.h"
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
#include "../../tools.h"
|
||||
#include "../../../common/tools.h"
|
||||
#include "../../picture.h"
|
||||
#include "../../device.h"
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
#include "../../tools.h"
|
||||
#include "../../logging.h"
|
||||
#include "../../../common/tools.h"
|
||||
#include "../../../common/logging.h"
|
||||
#include "../../xioctl.h"
|
||||
#include "../../picture.h"
|
||||
#include "../../device.h"
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <IL/OMX_Core.h>
|
||||
#include <IL/OMX_Component.h>
|
||||
|
||||
#include "../../logging.h"
|
||||
#include "../../../common/logging.h"
|
||||
|
||||
#include "formatters.h"
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
#include <IL/OMX_Broadcom.h>
|
||||
#include <interface/vcos/vcos_semaphore.h>
|
||||
|
||||
#include "../../logging.h"
|
||||
#include "../../tools.h"
|
||||
#include "../../../common/logging.h"
|
||||
#include "../../../common/tools.h"
|
||||
#include "../../picture.h"
|
||||
#include "../../device.h"
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <IL/OMX_IVCommon.h>
|
||||
#include <IL/OMX_Core.h>
|
||||
|
||||
#include "../../tools.h"
|
||||
#include "../../../common/tools.h"
|
||||
|
||||
|
||||
#define CASE_TO_STRING(_value) \
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <IL/OMX_Core.h>
|
||||
#include <IL/OMX_Image.h>
|
||||
|
||||
#include "../../logging.h"
|
||||
#include "../../../common/logging.h"
|
||||
|
||||
|
||||
#define LOG_ERROR_OMX(_error, _msg, ...) { \
|
||||
@@ -30,9 +30,9 @@
|
||||
#include <pthread.h>
|
||||
#include <gpiod.h>
|
||||
|
||||
#include "../tools.h"
|
||||
#include "../logging.h"
|
||||
#include "../threading.h"
|
||||
#include "../../common/tools.h"
|
||||
#include "../../common/logging.h"
|
||||
#include "../../common/threading.h"
|
||||
|
||||
|
||||
struct gpio_t gpio = {
|
||||
@@ -27,8 +27,8 @@
|
||||
#include <pthread.h>
|
||||
#include <gpiod.h>
|
||||
|
||||
#include "../tools.h"
|
||||
#include "../logging.h"
|
||||
#include "../../common/tools.h"
|
||||
#include "../../common/logging.h"
|
||||
|
||||
|
||||
struct gpio_output_t {
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../tools.h"
|
||||
#include "../../common/tools.h"
|
||||
|
||||
|
||||
static const char _ENCODING_TABLE[] = {
|
||||
@@ -28,8 +28,8 @@
|
||||
|
||||
#include <jpeglib.h>
|
||||
|
||||
#include "../tools.h"
|
||||
#include "../logging.h"
|
||||
#include "../../common/tools.h"
|
||||
#include "../../common/logging.h"
|
||||
#include "../picture.h"
|
||||
|
||||
#include "data/blank_jpeg.h"
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@@ -22,7 +22,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../../config.h"
|
||||
#include "../../../common/config.h"
|
||||
|
||||
|
||||
const char HTML_INDEX_PAGE[] = " \
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include <event2/util.h>
|
||||
|
||||
#include "../tools.h"
|
||||
#include "../../common/tools.h"
|
||||
|
||||
|
||||
static const struct {
|
||||
@@ -28,7 +28,7 @@
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
||||
#include "../tools.h"
|
||||
#include "../../common/tools.h"
|
||||
|
||||
|
||||
char *simplify_request_path(const char *str) {
|
||||
@@ -51,10 +51,10 @@
|
||||
# error Required libevent-pthreads support
|
||||
#endif
|
||||
|
||||
#include "../tools.h"
|
||||
#include "../threading.h"
|
||||
#include "../logging.h"
|
||||
#include "../process.h"
|
||||
#include "../../common/tools.h"
|
||||
#include "../../common/threading.h"
|
||||
#include "../../common/logging.h"
|
||||
#include "../../common/process.h"
|
||||
#include "../picture.h"
|
||||
#include "../encoder.h"
|
||||
#include "../stream.h"
|
||||
@@ -29,8 +29,8 @@
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "../tools.h"
|
||||
#include "../logging.h"
|
||||
#include "../../common/tools.h"
|
||||
#include "../../common/logging.h"
|
||||
|
||||
#include "path.h"
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
#include <event2/http.h>
|
||||
#include <event2/util.h>
|
||||
|
||||
#include "../tools.h"
|
||||
#include "../logging.h"
|
||||
#include "../../common/tools.h"
|
||||
#include "../../common/logging.h"
|
||||
|
||||
|
||||
evutil_socket_t evhttp_my_bind_unix(struct evhttp *http, const char *path, bool rm, mode_t mode) {
|
||||
@@ -36,9 +36,10 @@
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#include "tools.h"
|
||||
#include "threading.h"
|
||||
#include "logging.h"
|
||||
#include "../common/tools.h"
|
||||
#include "../common/threading.h"
|
||||
#include "../common/logging.h"
|
||||
|
||||
#include "options.h"
|
||||
#include "device.h"
|
||||
#include "encoder.h"
|
||||
@@ -33,9 +33,10 @@
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "logging.h"
|
||||
#include "process.h"
|
||||
#include "../common/config.h"
|
||||
#include "../common/logging.h"
|
||||
#include "../common/process.h"
|
||||
|
||||
#include "device.h"
|
||||
#include "encoder.h"
|
||||
#include "http/server.h"
|
||||
@@ -27,8 +27,8 @@
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "tools.h"
|
||||
#include "logging.h"
|
||||
#include "../common/tools.h"
|
||||
#include "../common/logging.h"
|
||||
|
||||
|
||||
struct picture_t *picture_init(void) {
|
||||
@@ -31,9 +31,10 @@
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#include "tools.h"
|
||||
#include "threading.h"
|
||||
#include "logging.h"
|
||||
#include "../common/tools.h"
|
||||
#include "../common/threading.h"
|
||||
#include "../common/logging.h"
|
||||
|
||||
#include "picture.h"
|
||||
#include "device.h"
|
||||
#include "encoder.h"
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include "tools.h"
|
||||
#include "logging.h"
|
||||
#include "../common/tools.h"
|
||||
#include "../common/logging.h"
|
||||
|
||||
|
||||
#ifndef CFG_XIOCTL_RETRIES
|
||||
Reference in New Issue
Block a user