xref: /haiku/src/add-ons/media/media-add-ons/usb_webcam/cstransforms/Bayer.cpp (revision 0d452c8f34013b611a54c746a71c05e28796eae2)
1 /*
2  * Copyright 2004-2008, François Revol, <revol@free.fr>.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 /*
7  * Bayer to RGB32 colorspace transformation
8  */
9 
10 #include "CamColorSpaceTransform.h"
11 
12 class BayerTransform : public CamColorSpaceTransform
13 {
14 	public:
15 						BayerTransform();
16 	virtual				~BayerTransform();
17 
18 	virtual const char*	Name();
19 	virtual color_space	OutputSpace();
20 
21 //	virtual status_t	SetVideoFrame(BRect rect);
22 //	virtual BRect		VideoFrame() const { return fVideoFrame; };
23 
24 	private:
25 };
26 
27 // -----------------------------------------------------------------------------
28 BayerTransform::BayerTransform()
29 {
30 }
31 
32 // -----------------------------------------------------------------------------
33 BayerTransform::~BayerTransform()
34 {
35 }
36 
37 // -----------------------------------------------------------------------------
38 const char *
39 BayerTransform::Name()
40 {
41 	return "bayer";
42 }
43 
44 // -----------------------------------------------------------------------------
45 color_space
46 BayerTransform::OutputSpace()
47 {
48 	return B_RGB32;
49 }
50 
51 // -----------------------------------------------------------------------------
52 
53 
54 
55 B_WEBCAM_DECLARE_CSTRANSFORM(BayerTransform, bayer)
56 
57