xref: /haiku/src/add-ons/media/media-add-ons/usb_webcam/cstransforms/Bayer.cpp (revision 1acbe440b8dd798953bec31d18ee589aa3f71b73)
1 /*
2  * Bayer to RGB32 colorspace transformation
3  */
4 
5 #include "CamColorSpaceTransform.h"
6 
7 class BayerTransform : public CamColorSpaceTransform
8 {
9 	public:
10 						BayerTransform();
11 	virtual				~BayerTransform();
12 
13 	virtual const char*	Name();
14 	virtual color_space	OutputSpace();
15 
16 //	virtual status_t	SetVideoFrame(BRect rect);
17 //	virtual BRect		VideoFrame() const { return fVideoFrame; };
18 
19 	private:
20 };
21 
22 // -----------------------------------------------------------------------------
23 BayerTransform::BayerTransform()
24 {
25 }
26 
27 // -----------------------------------------------------------------------------
28 BayerTransform::~BayerTransform()
29 {
30 }
31 
32 // -----------------------------------------------------------------------------
33 const char *
34 BayerTransform::Name()
35 {
36 	return "bayer";
37 }
38 
39 // -----------------------------------------------------------------------------
40 color_space
41 BayerTransform::OutputSpace()
42 {
43 	return B_RGB32;
44 }
45 
46 // -----------------------------------------------------------------------------
47 
48 
49 
50 B_WEBCAM_DECLARE_CSTRANSFORM(BayerTransform, bayer)
51 
52