vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / media / media-add-ons / usb_webcam / cstransforms / Bayer.cpp
blob661679257dd1561147d7a7ff8f4aeee2936eb33e
1 /*
2 * Copyright 2004-2008, François Revol, <revol@free.fr>.
3 * Distributed under the terms of the MIT License.
4 */
6 /*
7 * Bayer to RGB32 colorspace transformation
8 */
10 #include "CamColorSpaceTransform.h"
12 class BayerTransform : public CamColorSpaceTransform
14 public:
15 BayerTransform();
16 virtual ~BayerTransform();
18 virtual const char* Name();
19 virtual color_space OutputSpace();
21 // virtual status_t SetVideoFrame(BRect rect);
22 // virtual BRect VideoFrame() const { return fVideoFrame; };
24 private:
27 // -----------------------------------------------------------------------------
28 BayerTransform::BayerTransform()
32 // -----------------------------------------------------------------------------
33 BayerTransform::~BayerTransform()
37 // -----------------------------------------------------------------------------
38 const char *
39 BayerTransform::Name()
41 return "bayer";
44 // -----------------------------------------------------------------------------
45 color_space
46 BayerTransform::OutputSpace()
48 return B_RGB32;
51 // -----------------------------------------------------------------------------
55 B_WEBCAM_DECLARE_CSTRANSFORM(BayerTransform, bayer)