Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bayer.h File Reference
#include "lib/vision/image.h"
+ Include dependency graph for bayer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static uint8_t clip (uint16_t x)
 
void BayerToYUV (struct image_t *in, struct image_t *out, int RedX, int RedY)
 Decode Bayer Pattern. More...
 

Function Documentation

void BayerToYUV ( struct image_t in,
struct image_t out,
int  RedX,
int  RedY 
)

Decode Bayer Pattern.

Parameters
RedX,RedYthe coordinates of the upper-rightmost green pixel which has a red pixel next to it and a blue underneath

Definition at line 55 of file bayer.h.

References image_t::buf, clip(), image_t::h, and image_t::w.

Referenced by video_thread_function().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uint8_t clip ( uint16_t  x)
inlinestatic

Definition at line 32 of file bayer.h.

Referenced by BayerToYUV().

+ Here is the caller graph for this function: