2017-09-01 08:50:37 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <exception>
|
2017-09-03 13:48:16 +02:00
|
|
|
// #include <linux/videodev2.h>
|
|
|
|
#include "ion.h"
|
|
|
|
#include "meson_ion.h"
|
|
|
|
#include "IonBuffer.h"
|
2017-09-01 08:50:37 +02:00
|
|
|
|
|
|
|
#define AMVIDEOCAP_IOC_MAGIC 'V'
|
|
|
|
#define CAP_FLAG_AT_CURRENT 0
|
|
|
|
#define CAP_FLAG_AT_TIME_WINDOW 1
|
|
|
|
#define CAP_FLAG_AT_END 2
|
|
|
|
|
2017-09-03 13:48:16 +02:00
|
|
|
// #define AMVIDEOCAP_IOW_SET_WANTFRAME_FORMAT _IOW(AMVIDEOCAP_IOC_MAGIC, 0x01, int)
|
2017-09-01 08:50:37 +02:00
|
|
|
#define AMVIDEOCAP_IOW_SET_WANTFRAME_WIDTH _IOW(AMVIDEOCAP_IOC_MAGIC, 0x02, int)
|
|
|
|
#define AMVIDEOCAP_IOW_SET_WANTFRAME_HEIGHT _IOW(AMVIDEOCAP_IOC_MAGIC, 0x03, int)
|
2021-04-25 16:49:42 +02:00
|
|
|
#define AMVIDEOCAP_IOW_SET_WANTFRAME_WAIT_MAX_MS _IOW(AMVIDEOCAP_IOC_MAGIC, 0x05, unsigned long long)
|
2019-03-27 09:07:20 +01:00
|
|
|
#define AMVIDEOCAP_IOW_SET_WANTFRAME_AT_FLAGS _IOW(AMVIDEOCAP_IOC_MAGIC, 0x06, int)
|
2017-09-01 08:50:37 +02:00
|
|
|
|
2017-09-03 13:48:16 +02:00
|
|
|
#define _A_M 'S'
|
|
|
|
#define AMSTREAM_IOC_GET_VIDEO_DISABLE _IOR((_A_M), 0x48, int)
|