You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
633 B
C
41 lines
633 B
C
1 year ago
|
#pragma once
|
||
|
|
||
|
#include "message.h"
|
||
|
|
||
|
#include <stdbool.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
static const uint8_t STREAM_HOST = 1;
|
||
|
static const uint8_t STREAM_INDEX = 0;
|
||
|
|
||
|
#define STREAM_CTRL_CMD 0xD23F
|
||
|
|
||
|
#define VIDEO_STREAM_PORT 40921
|
||
|
|
||
|
enum STREAMSTATE {
|
||
|
STREAMSTATE_OFF = 0,
|
||
|
STREAMSTATE_ON = 1
|
||
|
};
|
||
|
|
||
|
enum STREAMRESOLUTION {
|
||
|
RES_720P = 0,
|
||
|
RES_360P = 1,
|
||
|
RES_540P = 2
|
||
|
};
|
||
|
|
||
|
enum STREAMCTRL {
|
||
|
STREAMCTRL_SDK = 1,
|
||
|
STREAMCTRL_VIDEO = 2,
|
||
|
STREAMCTRL_AUDIO = 3
|
||
|
};
|
||
|
|
||
|
void
|
||
|
stream_ctrl (
|
||
|
union Request* req,
|
||
|
uint16_t seq,
|
||
|
bool ack,
|
||
|
enum STREAMSTATE state,
|
||
|
enum STREAMRESOLUTION res,
|
||
|
enum STREAMCTRL ctrl );
|
||
|
|