#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/kref.h>
#include <linux/usb.h>
#include <media/v4l2-common.h>
#include "stk11xx.h"
Go to the source code of this file.
Functions | |
void | stk11xx_b2rgb24 (uint8_t *bayer, uint8_t *rgb, struct stk11xx_coord *image, struct stk11xx_coord *view, const int hflip, const int vflip, const int factor) |
This function permits to convert an image from bayer to RGB24. | |
void | stk11xx_b2rgb32 (uint8_t *bayer, uint8_t *rgb, struct stk11xx_coord *image, struct stk11xx_coord *view, const int hflip, const int vflip, const int factor) |
This function permits to convert an image from bayer to RGB32. | |
void | stk11xx_b2bgr24 (uint8_t *bayer, uint8_t *bgr, struct stk11xx_coord *image, struct stk11xx_coord *view, const int hflip, const int vflip, const int factor) |
This function permits to convert an image from bayer to BGR24. | |
void | stk11xx_b2bgr32 (uint8_t *bayer, uint8_t *bgr, struct stk11xx_coord *image, struct stk11xx_coord *view, const int hflip, const int vflip, const int factor) |
This function permits to convert an image from bayer to BGR32. | |
void | stk11xx_b2yv12 (uint8_t *bayer, uint8_t *yuv, struct stk11xx_coord *image, struct stk11xx_coord *view, const int hflip, const int vflip, const int factor) |
This function permits to convert an image from bayer to YUV YV12. | |
void | stk11xx_correct_brightness (uint8_t *rgb, const int width, const int height, const int brightness, int depth) |
Correct the brightness of an image. | |
int | stk11xx_decompress (struct usb_stk11xx *dev) |
Decompress a frame. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Definition in file stk11xx-bayer.c.
void stk11xx_b2bgr24 | ( | uint8_t * | bayer, | |
uint8_t * | bgr, | |||
struct stk11xx_coord * | image, | |||
struct stk11xx_coord * | view, | |||
const int | hflip, | |||
const int | vflip, | |||
const int | factor | |||
) |
This function permits to convert an image from bayer to BGR24.
bayer | Buffer with the bayer data | |
image | Size of image | |
view | Size of view | |
hflip | Horizontal flip | |
vflip | Vertical flip | |
factor | Factor of redimensioning |
bgr | Buffer with the BGR data |
Definition at line 512 of file stk11xx-bayer.c.
References stk11xx_coord::x, and stk11xx_coord::y.
Referenced by stk11xx_decompress().
void stk11xx_b2bgr32 | ( | uint8_t * | bayer, | |
uint8_t * | bgr, | |||
struct stk11xx_coord * | image, | |||
struct stk11xx_coord * | view, | |||
const int | hflip, | |||
const int | vflip, | |||
const int | factor | |||
) |
This function permits to convert an image from bayer to BGR32.
bayer | Buffer with the bayer data | |
image | Size of image | |
view | Size of view | |
hflip | Horizontal flip | |
vflip | Vertical flip | |
factor | Factor of redimensioning |
bgr | Buffer with the BGR data |
Definition at line 651 of file stk11xx-bayer.c.
References stk11xx_coord::x, and stk11xx_coord::y.
Referenced by stk11xx_decompress().
void stk11xx_b2rgb24 | ( | uint8_t * | bayer, | |
uint8_t * | rgb, | |||
struct stk11xx_coord * | image, | |||
struct stk11xx_coord * | view, | |||
const int | hflip, | |||
const int | vflip, | |||
const int | factor | |||
) |
This function permits to convert an image from bayer to RGB24.
bayer | Buffer with the bayer data | |
image | Size of image | |
view | Size of view | |
hflip | Horizontal flip | |
vflip | Vertical flip | |
factor | Factor of redimensioning |
rgb | Buffer with the RGB data |
Definition at line 226 of file stk11xx-bayer.c.
References stk11xx_coord::x, and stk11xx_coord::y.
Referenced by stk11xx_decompress().
void stk11xx_b2rgb32 | ( | uint8_t * | bayer, | |
uint8_t * | rgb, | |||
struct stk11xx_coord * | image, | |||
struct stk11xx_coord * | view, | |||
const int | hflip, | |||
const int | vflip, | |||
const int | factor | |||
) |
This function permits to convert an image from bayer to RGB32.
bayer | Buffer with the bayer data | |
image | Size of image | |
view | Size of view | |
hflip | Horizontal flip | |
vflip | Vertical flip | |
factor | Factor of redimensioning |
rgb | Buffer with the RGB data |
Definition at line 365 of file stk11xx-bayer.c.
References stk11xx_coord::x, and stk11xx_coord::y.
Referenced by stk11xx_decompress().
void stk11xx_b2yv12 | ( | uint8_t * | bayer, | |
uint8_t * | yuv, | |||
struct stk11xx_coord * | image, | |||
struct stk11xx_coord * | view, | |||
const int | hflip, | |||
const int | vflip, | |||
const int | factor | |||
) |
This function permits to convert an image from bayer to YUV YV12.
bayer | Buffer with the bayer data | |
image | Size of image | |
view | Size of view | |
hflip | Horizontal flip | |
vflip | Vertical flip | |
factor | Factor of redimensioning |
yuv | Buffer with the YUV data |
Definition at line 798 of file stk11xx-bayer.c.
void stk11xx_correct_brightness | ( | uint8_t * | rgb, | |
const int | width, | |||
const int | height, | |||
const int | brightness, | |||
int | depth | |||
) |
Correct the brightness of an image.
This function permits to correct the brightness of an image.
rgb | Buffer to RGB data | |
width | Width of frame | |
height | Height of frame | |
brightness | Brightness correction | |
depth | Color depth |
rgb | Buffer to RGB data |
Definition at line 183 of file stk11xx-bayer.c.
Referenced by stk11xx_decompress().
int stk11xx_decompress | ( | struct usb_stk11xx * | dev | ) |
Decompress a frame.
This function permits to decompress a frame from the video stream.
dev | Device structure |
Definition at line 78 of file stk11xx-bayer.c.
Referenced by stk11xx_handle_frame().