Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
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, image_t::w, and v4l2_device::w.

Referenced by bebop_front_camera_thread(), and 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: