Instrument Neutral Distributed Interface INDI  1.9.5
Enumerations | Functions
ccvt.h File Reference
#include <stdint.h>

Go to the source code of this file.

Enumerations

enum  Options {
  ioNoBlock = (1 << 0), ioUseSelect = (1 << 1), haveBrightness = (1 << 2), haveContrast = (1 << 3),
  haveHue = (1 << 4), haveColor = (1 << 5), haveWhiteness = (1 << 6)
}
 

Functions

void ccvt_420p_bgr24 (int width, int height, const void *src, void *dst)
 
void ccvt_420p_rgb24 (int width, int height, const void *src, void *dst)
 
void ccvt_420p_bgr32 (int width, int height, const void *src, void *dst)
 
void ccvt_420p_rgb32 (int width, int height, const void *src, void *dst)
 
void ccvt_yuyv_bgr32 (int width, int height, const void *src, void *dst)
 
void ccvt_yuyv_bgr24 (int width, int height, const void *src, void *dst)
 
void ccvt_yuyv_rgb24 (int width, int height, const void *src, void *dst)
 
void ccvt_yuyv_420p (int width, int height, const void *src, void *dsty, void *dstu, void *dstv)
 
void ccvt_rgb24_420p (int width, int height, const void *src, void *dsty, void *dstu, void *dstv)
 
void ccvt_bgr24_420p (int width, int height, const void *src, void *dsty, void *dstu, void *dstv)
 
void ccvt_bgr24_bgr32 (int width, int height, const void *const src, void *const dst)
 
void ccvt_bgr24_rgb32 (int width, int height, const void *const src, void *const dst)
 
void ccvt_bgr32_bgr24 (int width, int height, const void *const src, void *const dst)
 
void ccvt_bgr32_rgb24 (int width, int height, const void *const src, void *const dst)
 
void ccvt_rgb24_bgr32 (int width, int height, const void *const src, void *const dst)
 
void ccvt_rgb24_rgb32 (int width, int height, const void *const src, void *const dst)
 
void ccvt_rgb32_bgr24 (int width, int height, const void *const src, void *const dst)
 
void ccvt_rgb32_rgb24 (int width, int height, const void *const src, void *const dst)
 
int RGB2YUV (int x_dim, int y_dim, void *bmp, void *y_out, void *u_out, void *v_out, int flip)
 
int BGR2YUV (int x_dim, int y_dim, void *bmp, void *y_out, void *u_out, void *v_out, int flip)
 
int mjpegtoyuv420p (unsigned char *map, unsigned char *cap_map, int width, int height, unsigned int size)
 mjpegtoyuv420p MPEG to YUV 420 P More...
 
void bayer2rgb24 (unsigned char *dst, unsigned char *src, long int WIDTH, long int HEIGHT)
 
void bayer16_2_rgb24 (unsigned short *dst, unsigned short *src, long int WIDTH, long int HEIGHT)
 
void bayer_rggb_2rgb24 (unsigned char *dst, unsigned char *srcc, long int WIDTH, long int HEIGHT)
 
void bayer_grbg_to_rgb24 (unsigned char *dst, unsigned char *srcc, long int WIDTH, long int HEIGHT)
 

Enumeration Type Documentation

◆ Options

enum Options
Enumerator
ioNoBlock 
ioUseSelect 
haveBrightness 
haveContrast 
haveHue 
haveColor 
haveWhiteness 

Definition at line 198 of file ccvt.h.

Function Documentation

◆ bayer16_2_rgb24()

void bayer16_2_rgb24 ( unsigned short *  dst,
unsigned short *  src,
long int  WIDTH,
long int  HEIGHT 
)

Bayer 16 bit to RGB 24

Definition at line 357 of file ccvt_misc.c.

◆ bayer2rgb24()

void bayer2rgb24 ( unsigned char *  dst,
unsigned char *  src,
long int  WIDTH,
long int  HEIGHT 
)

Bayer 8bit to RGB 24

Definition at line 263 of file ccvt_misc.c.

◆ bayer_grbg_to_rgb24()

void bayer_grbg_to_rgb24 ( unsigned char *  dst,
unsigned char *  srcc,
long int  WIDTH,
long int  HEIGHT 
)

Definition at line 545 of file ccvt_misc.c.

◆ bayer_rggb_2rgb24()

void bayer_rggb_2rgb24 ( unsigned char *  dst,
unsigned char *  srcc,
long int  WIDTH,
long int  HEIGHT 
)

Bayer RGGB to RGB 24

Definition at line 451 of file ccvt_misc.c.

◆ BGR2YUV()

int BGR2YUV ( int  x_dim,
int  y_dim,
void *  bmp,
void *  y_out,
void *  u_out,
void *  v_out,
int  flip 
)

BGR to YUV

Definition at line 896 of file ccvt_misc.c.

◆ ccvt_420p_bgr24()

void ccvt_420p_bgr24 ( int  width,
int  height,
const void *  src,
void *  dst 
)

4:2:0 YUV planar to RGB/BGR

Definition at line 118 of file ccvt_c2.c.

◆ ccvt_420p_bgr32()

void ccvt_420p_bgr32 ( int  width,
int  height,
const void *  src,
void *  dst 
)

4:2:0 YUV planar to RGB/BGR

Definition at line 113 of file ccvt_c2.c.

◆ ccvt_420p_rgb24()

void ccvt_420p_rgb24 ( int  width,
int  height,
const void *  src,
void *  dst 
)

4:2:0 YUV planar to RGB/BGR

Definition at line 128 of file ccvt_c2.c.

◆ ccvt_420p_rgb32()

void ccvt_420p_rgb32 ( int  width,
int  height,
const void *  src,
void *  dst 
)

4:2:0 YUV planar to RGB/BGR

Definition at line 123 of file ccvt_c2.c.

◆ ccvt_bgr24_420p()

void ccvt_bgr24_420p ( int  width,
int  height,
const void *  src,
void *  dsty,
void *  dstu,
void *  dstv 
)

RGB/BGR to 4:2:0 YUV planar

◆ ccvt_bgr24_bgr32()

void ccvt_bgr24_bgr32 ( int  width,
int  height,
const void *const  src,
void *const  dst 
)

RGB/BGR to RGB/BGR

◆ ccvt_bgr24_rgb32()

void ccvt_bgr24_rgb32 ( int  width,
int  height,
const void *const  src,
void *const  dst 
)

RGB/BGR to RGB/BGR

◆ ccvt_bgr32_bgr24()

void ccvt_bgr32_bgr24 ( int  width,
int  height,
const void *const  src,
void *const  dst 
)

RGB/BGR to RGB/BGR

◆ ccvt_bgr32_rgb24()

void ccvt_bgr32_rgb24 ( int  width,
int  height,
const void *const  src,
void *const  dst 
)

RGB/BGR to RGB/BGR

◆ ccvt_rgb24_420p()

void ccvt_rgb24_420p ( int  width,
int  height,
const void *  src,
void *  dsty,
void *  dstu,
void *  dstv 
)

RGB/BGR to 4:2:0 YUV planar

◆ ccvt_rgb24_bgr32()

void ccvt_rgb24_bgr32 ( int  width,
int  height,
const void *const  src,
void *const  dst 
)

RGB/BGR to RGB/BGR

◆ ccvt_rgb24_rgb32()

void ccvt_rgb24_rgb32 ( int  width,
int  height,
const void *const  src,
void *const  dst 
)

RGB/BGR to RGB/BGR

◆ ccvt_rgb32_bgr24()

void ccvt_rgb32_bgr24 ( int  width,
int  height,
const void *const  src,
void *const  dst 
)

RGB/BGR to RGB/BGR

◆ ccvt_rgb32_rgb24()

void ccvt_rgb32_rgb24 ( int  width,
int  height,
const void *const  src,
void *const  dst 
)

RGB/BGR to RGB/BGR

◆ ccvt_yuyv_420p()

void ccvt_yuyv_420p ( int  width,
int  height,
const void *  src,
void *  dsty,
void *  dstu,
void *  dstv 
)

4:2:2 YUYV interlaced to 4:2:0 YUV planar

Definition at line 219 of file ccvt_misc.c.

◆ ccvt_yuyv_bgr24()

void ccvt_yuyv_bgr24 ( int  width,
int  height,
const void *  src,
void *  dst 
)

4:2:2 YUYV interlaced to BGR24

Definition at line 127 of file ccvt_misc.c.

◆ ccvt_yuyv_bgr32()

void ccvt_yuyv_bgr32 ( int  width,
int  height,
const void *  src,
void *  dst 
)

4:2:2 YUYV interlaced to RGB/BGR 4:2:2 YUYV interlaced to RGB/BGR

Definition at line 81 of file ccvt_misc.c.

◆ ccvt_yuyv_rgb24()

void ccvt_yuyv_rgb24 ( int  width,
int  height,
const void *  src,
void *  dst 
)

4:2:2 YUYV interlaced to RGB24

Definition at line 173 of file ccvt_misc.c.

◆ mjpegtoyuv420p()

int mjpegtoyuv420p ( unsigned char *  map,
unsigned char *  cap_map,
int  width,
int  height,
unsigned int  size 
)

mjpegtoyuv420p MPEG to YUV 420 P

Return values -1 on fatal error 0 on success 2 if jpeg lib threw a "corrupt jpeg data" warning. in this case, "a damaged output image is likely."

Copyright 2000 by Jeroen Vreeken (pe1rx.nosp@m.q@am.nosp@m.sat.o.nosp@m.rg) 2006 by Krzysztof Blaszkowski (kb@sy.nosp@m.smik.nosp@m.ro.co.nosp@m.m.pl) 2007 by Angel Carpinteo (ack@t.nosp@m.elef.nosp@m.onica.nosp@m..net)

Definition at line 723 of file ccvt_misc.c.

◆ RGB2YUV()

int RGB2YUV ( int  x_dim,
int  y_dim,
void *  bmp,
void *  y_out,
void *  u_out,
void *  v_out,
int  flip 
)

RGB to YUV

Definition at line 787 of file ccvt_misc.c.