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 12class 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// ----------------------------------------------------------------------------- 28BayerTransform::BayerTransform() 29{ 30} 31 32// ----------------------------------------------------------------------------- 33BayerTransform::~BayerTransform() 34{ 35} 36 37// ----------------------------------------------------------------------------- 38const char * 39BayerTransform::Name() 40{ 41 return "bayer"; 42} 43 44// ----------------------------------------------------------------------------- 45color_space 46BayerTransform::OutputSpace() 47{ 48 return B_RGB32; 49} 50 51// ----------------------------------------------------------------------------- 52 53 54 55B_WEBCAM_DECLARE_CSTRANSFORM(BayerTransform, bayer) 56 57