Instrument Neutral Distributed Interface INDI  2.0.2
Functions | Variables
v4l2_colorspace.c File Reference
#include "v4l2_colorspace.h"
#include <math.h>

Go to the source code of this file.

Functions

void initColorSpace ()
 
void rangeY8 (unsigned char *buf, unsigned int len)
 
void linearize (float *buf, unsigned int len, struct v4l2_format *fmt)
 
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)
 

Variables

unsigned char lutrangey8 [256]
 
unsigned short lutrangey10 [1024]
 
unsigned short lutrangey12 [4096]
 
unsigned short lutrangey16 [65536]
 
unsigned char lutrangecbcr8 [256]
 
unsigned short lutrangecbcr10 [1024]
 
unsigned short lutrangecbcr12 [4096]
 
unsigned short lutrangecbcr16 [65536]
 

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.

Variable Documentation

◆ lutrangecbcr10

unsigned short lutrangecbcr10[1024]

Definition at line 11 of file v4l2_colorspace.c.

◆ lutrangecbcr12

unsigned short lutrangecbcr12[4096]

Definition at line 12 of file v4l2_colorspace.c.

◆ lutrangecbcr16

unsigned short lutrangecbcr16[65536]

Definition at line 13 of file v4l2_colorspace.c.

◆ lutrangecbcr8

unsigned char lutrangecbcr8[256]

Definition at line 10 of file v4l2_colorspace.c.

◆ lutrangey10

unsigned short lutrangey10[1024]

Definition at line 7 of file v4l2_colorspace.c.

◆ lutrangey12

unsigned short lutrangey12[4096]

Definition at line 8 of file v4l2_colorspace.c.

◆ lutrangey16

unsigned short lutrangey16[65536]

Definition at line 9 of file v4l2_colorspace.c.

◆ lutrangey8

unsigned char lutrangey8[256]

Definition at line 6 of file v4l2_colorspace.c.