mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-12 02:23:43 +00:00
refactoring
This commit is contained in:
@@ -22,6 +22,33 @@
|
|||||||
|
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdatomic.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
|
#include <pthread.h>
|
||||||
|
|
||||||
|
#include "../libs/types.h"
|
||||||
|
#include "../libs/tools.h"
|
||||||
|
#include "../libs/threading.h"
|
||||||
|
#include "../libs/process.h"
|
||||||
|
#include "../libs/logging.h"
|
||||||
|
#include "../libs/ring.h"
|
||||||
|
#include "../libs/frame.h"
|
||||||
|
#include "../libs/memsink.h"
|
||||||
|
#include "../libs/device.h"
|
||||||
|
|
||||||
|
#include "blank.h"
|
||||||
|
#include "encoder.h"
|
||||||
|
#include "workers.h"
|
||||||
|
#include "h264.h"
|
||||||
|
#ifdef WITH_GPIO
|
||||||
|
# include "gpio/gpio.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static bool _stream_is_stopped(us_stream_s *stream);
|
static bool _stream_is_stopped(us_stream_s *stream);
|
||||||
static bool _stream_has_any_clients(us_stream_s *stream);
|
static bool _stream_has_any_clients(us_stream_s *stream);
|
||||||
|
|||||||
@@ -22,32 +22,16 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
#include <pthread.h>
|
#include "../libs/types.h"
|
||||||
#include <linux/videodev2.h>
|
|
||||||
|
|
||||||
#include "../libs/tools.h"
|
|
||||||
#include "../libs/threading.h"
|
|
||||||
#include "../libs/process.h"
|
|
||||||
#include "../libs/logging.h"
|
|
||||||
#include "../libs/ring.h"
|
#include "../libs/ring.h"
|
||||||
#include "../libs/frame.h"
|
|
||||||
#include "../libs/memsink.h"
|
#include "../libs/memsink.h"
|
||||||
#include "../libs/device.h"
|
#include "../libs/device.h"
|
||||||
|
|
||||||
#include "blank.h"
|
#include "blank.h"
|
||||||
#include "encoder.h"
|
#include "encoder.h"
|
||||||
#include "workers.h"
|
|
||||||
#include "h264.h"
|
#include "h264.h"
|
||||||
#ifdef WITH_GPIO
|
|
||||||
# include "gpio/gpio.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user