5#include <sys/videoio.h>
7#include <linux/videodev2.h>
15#define YCBCR_ENC_601 1
17#define YCBCR_ENC_709 2
19#define YCBCR_ENC_SYCC 5
21#define YCBCR_ENC_SMPTE240M 8
22#define QUANTIZATION_FULL_RANGE 1
23#define QUANTIZATION_LIM_RANGE 2
32void rangeY8(
unsigned char *buf,
unsigned int len);
33void linearize(
float *buf,
unsigned int len,
struct v4l2_format *
fmt);
std::string fmt(const char *fmt,...)
const char * getColorSpaceName(struct v4l2_format *fmt)
void rangeY8(unsigned char *buf, unsigned int len)
unsigned int getQuantization(struct v4l2_format *fmt)
const char * getQuantizationName(struct v4l2_format *fmt)
void linearize(float *buf, unsigned int len, struct v4l2_format *fmt)
unsigned int getYCbCrEncoding(struct v4l2_format *fmt)
const char * getYCbCrEncodingName(struct v4l2_format *fmt)