Instrument Neutral Distributed Interface INDI  2.0.2
Macros | Functions
v4l2_colorspace.h File Reference
#include <linux/videodev2.h>

Go to the source code of 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

Definition at line 18 of file v4l2_colorspace.h.

◆ QUANTIZATION_LIM_RANGE

#define QUANTIZATION_LIM_RANGE   2

Definition at line 19 of file v4l2_colorspace.h.

◆ YCBCR_ENC_601

#define YCBCR_ENC_601   1

Definition at line 11 of file v4l2_colorspace.h.

◆ YCBCR_ENC_709

#define YCBCR_ENC_709   2

Definition at line 13 of file v4l2_colorspace.h.

◆ YCBCR_ENC_SMPTE240M

#define YCBCR_ENC_SMPTE240M   8

Definition at line 17 of file v4l2_colorspace.h.

◆ YCBCR_ENC_SYCC

#define YCBCR_ENC_SYCC   5

Definition at line 15 of file v4l2_colorspace.h.

Function Documentation

◆ getColorSpaceName()

const char* getColorSpaceName ( struct v4l2_format *  fmt)

Definition at line 81 of file v4l2_colorspace.c.

◆ getQuantization()

unsigned int getQuantization ( struct v4l2_format *  fmt)

Definition at line 156 of file v4l2_colorspace.c.

◆ getQuantizationName()

const char* getQuantizationName ( struct v4l2_format *  fmt)

Definition at line 179 of file v4l2_colorspace.c.

◆ getYCbCrEncoding()

unsigned int getYCbCrEncoding ( struct v4l2_format *  fmt)

Definition at line 112 of file v4l2_colorspace.c.

◆ getYCbCrEncodingName()

const char* getYCbCrEncodingName ( struct v4l2_format *  fmt)

Definition at line 139 of file v4l2_colorspace.c.

◆ initColorSpace()

void initColorSpace ( )

Definition at line 15 of file v4l2_colorspace.c.

◆ linearize()

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

Definition at line 39 of file v4l2_colorspace.c.

◆ rangeY8()

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

Definition at line 28 of file v4l2_colorspace.c.