TwiceAsNice  2019-02-18
Macros | Functions
v4l2_colorspace.h File Reference
#include <linux/videodev2.h>
Include dependency graph for v4l2_colorspace.h:
This graph shows which files directly or indirectly include this file:

Macros

#define YCBCR_ENC_601   1
 
#define YCBCR_ENC_709   2
 
#define YCBCR_ENC_SYCC   5
 
#define YCBCR_ENC_SMPTE240M   8
 
#define QUANTIZATION_FULL_RANGE   1
 
#define QUANTIZATION_LIM_RANGE   2
 

Functions

void initColorSpace ()
 
const char * getColorSpaceName (struct v4l2_format *fmt)
 
unsigned int getYCbCrEncoding (struct v4l2_format *fmt)
 
const char * getYCbCrEncodingName (struct v4l2_format *fmt)
 
unsigned int getQuantization (struct v4l2_format *fmt)
 
const char * getQuantizationName (struct v4l2_format *fmt)
 
void rangeY8 (unsigned char *buf, unsigned int len)
 
void linearize (float *buf, unsigned int len, struct v4l2_format *fmt)
 

Macro Definition Documentation

◆ QUANTIZATION_FULL_RANGE

#define QUANTIZATION_FULL_RANGE   1

◆ QUANTIZATION_LIM_RANGE

#define QUANTIZATION_LIM_RANGE   2

◆ YCBCR_ENC_601

#define YCBCR_ENC_601   1

◆ YCBCR_ENC_709

#define YCBCR_ENC_709   2

◆ YCBCR_ENC_SMPTE240M

#define YCBCR_ENC_SMPTE240M   8

◆ YCBCR_ENC_SYCC

#define YCBCR_ENC_SYCC   5

Function Documentation

◆ getColorSpaceName()

const char* getColorSpaceName ( struct v4l2_format *  fmt)

◆ getQuantization()

unsigned int getQuantization ( struct v4l2_format *  fmt)

◆ getQuantizationName()

const char* getQuantizationName ( struct v4l2_format *  fmt)

◆ getYCbCrEncoding()

unsigned int getYCbCrEncoding ( struct v4l2_format *  fmt)

◆ getYCbCrEncodingName()

const char* getYCbCrEncodingName ( struct v4l2_format *  fmt)

◆ initColorSpace()

void initColorSpace ( )

◆ linearize()

void linearize ( float *  buf,
unsigned int  len,
struct v4l2_format *  fmt 
)

◆ rangeY8()

void rangeY8 ( unsigned char *  buf,
unsigned int  len 
)